I have provisioned ElasticCache and launched a Redis cache cluster with Enable Replication
option selected in Single Availability Zone, now I see three cache nodes under cache cluster as following each having different endpoint like
testrdsrg-001.xx99xx.0001.euw1.cache.amazonaws.com
testrdsrg-002.xx99xx.0001.euw1.cache.amazonaws.com
testrdsrg-003.xx99xx.0001.euw1.cache.amazonaws.com
Also, under Replication Group I see another endpoint which says as
Node Group Details
Primary Endpoint (The node group's primary endpoint)
testrdsrg.xx99xx.ng.0001.euw1.cache.amazonaws.com
Here is the snap:
So, which endpoint actually should I use in my code? the one of three which are in Cache Cluster or Primary Endpoint (The node group's primary endpoint) and why and how does all this replication actually works.