Eager initialise Lettuce Cluster Connections [DATAREDIS-1227]

Open
#1,800 3 comments 2 reactions 1 assignee View on GitHub

@christophstrobl is already working on this.

Since Dec 30, 2020.

Assessment

This issue has not been assessed yet.

Description

in: lettuce type: enhancement

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-data-redis

All issues in spring-projects/spring-data-redis

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.