Eager initialise Lettuce Cluster Connections [DATAREDIS-1227]
@christophstrobl is already working on this.
Since Dec 30, 2020.
Assessment
This issue has not been assessed yet.
Description
ocristian opened DATAREDIS-1227 and commented
LettuceConnetionFactory has a property to eager initialize, afterPropertiesSet(), StatefulRedisConnection but it dosen't work for StatefulRedisClusterConnection.
Cluster connection can take more time to be ready, it needs to obtain the cluster topology and connect to all nodes.
It would be important to eagerly initialize Cluster connections in order to save time to serve the first requests in a service using Redis Cluster.
I have a use case with heavy load and time constraints where eager initialization will solve the problem as it would remove the delay in obtaining the first cluster connection.
As recommended by Mark Paluch, Lettuce can fully initialize shared connections on startup.
Please let me know if you need any other info.
Thanks!
4 votes, 3 watchers
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-projects/spring-data-redis
-
status: waiting-for-triage
Difficulty 1/5 Under an hour Newbie friendliness 78/100
spring-projects/spring-data-redis#3414 · 1 comment ·
-
type: enhancement
spring-projects/spring-data-redis#3439 · 2 comments · 1 assignee ·
-
status: waiting-for-triage
Difficulty 5/5 Over a week Newbie friendliness 45/100
spring-projects/spring-data-redis#3434 ·
-
type: task
Difficulty 4/5 3-5 days Newbie friendliness 15/100
spring-projects/spring-data-redis#3421 ·
-
type: task
Difficulty 5/5 Over a week Newbie friendliness 20/100
spring-projects/spring-data-redis#3420 ·
All issues in spring-projects/spring-data-redis
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·