I have integrated redis to my spring web application using jedis (redis is supporting from AWS Elastic cache). It is working fine with single node to write and read with single jedis connection factory.
I now need to extended it to a cluster for writing into primary node and reading from secondary nodes. i.e If one goes down then replication happen automatically by AWS, in that case the host name, with which I will connect , will be change.
How can read the new node that came into picture?
How can i connect to this from spring container (I mean XML file)?
please, any one have useful suggestions, to achieve above scenario.
I would appreciate any links or code that may be helpful to over come the above problem.
As of now, I am using one connection factory, with jedis and redis template for manipulation.