Skip to content

Eager initialise Lettuce Cluster Connections [DATAREDIS-1227] #1800

Open
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions