-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Consider Lettuce instead of Jedis as default Redis driver dependency #10480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm now in favour of making this switch in 2.0. |
3 x 👍 so I guess we're all in agreement. |
This has the interesting side effect of not requiring a dedicated "reactive" starter for redis anymore so it will be removed as part of this change. |
Hmm, doesn't the starter also provide Project Reactor? For example |
Lettuce already uses reactor. The reason for a separate starter is because the driver is different (as for MongoDB). I don't think we should duplicate the starter only for that reason. |
Yes, I'm aware, but if I'm not mistaken reactive dependencies are optional to Lettuce. So the net effect is that the user needs to provide additional dependencies on top of I don't have a preference whether |
The dep is mandatory so nothing is really lost. I wonder about the naming inconsistency now. Let's reopen and see what the rest of the team thinks. |
Update `LettuceConnectionConfiguration` so that `commons-pool2` can be an optional dependency. See gh-10480
My mistake, I've misread the POM. Sorry for the noise. |
I think the naming is fine. We have |
Uh oh!
There was an error while loading. Please reload this page.
Lettuce is the preferred Redis driver for Spring Data Redis and Spring Session supporting the most recent Redis versions. We should consider whether to replace Jedis with the Lettuce driver in
spring-boot-starter-data-redis
. There are a couple of aspects that play into this request:On the other side, Lettuce 5 requires Java 8, netty 4.1 and Project Reactor 3.1. It no longer requires Google Guava.
Related issues:
spring-boot-starter-data-redis
#9536spring-session-data-redis
spring-session#802/cc @christophstrobl @rwinch @vpavic
The text was updated successfully, but these errors were encountered: