aws Redis cluster from spring using jedis client -


i have integrated redis spring web application using jedis (redis supporting aws elastic cache). working fine single node write , read single jedis connection factory.

i need extended cluster writing primary node , reading secondary nodes. i.e if 1 goes down replication happen automatically aws, in case host name, connect , change.

how can read new node came picture?

how can connect spring container (i mean xml file)?

please, 1 have useful suggestions, achieve above scenario.

i appreciate links or code may helpful on come above problem.

as of now, using 1 connection factory, jedis , redis template manipulation.

you don't have on side, aws elasticache handle failover.

you have redis cluster 2 nodes, primary , replica. if happens primary node, there automatic failover replica node. the failover happens @ replication group node dns level

it important application connects replication group node , not primary node url/ip directly

you can find replication group endpoint in elasticache -> replication groups -> (select replication group) , in bottom section there's node group details primary endpoint example myreplicationgroup.8asdas.ng.0001.use1.cache.amazonaws.com:6379

in case of failover there bit of downtime. experience it's less 1 minute.

after failed node comes back, may became secondary node , stay if have multi-az enabled


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -