When working with a replication group for AWS-ElastiCache-Redis, is there a way to specify a preference to connect to a read replica?
The goal would be to provide read-only access.
In the other direction, it's easy to prefer to connect to the primary node in a way that remains consistent even if that switches.
For read-only activity, applications can connect to any node in the replication group. However, for write activity, we recommend that your applications connect to the primary endpoint for the replication group instead of connecting directly to the primary node. This will ensure that your applications can always find the current primary node, even if you decide to reconfigure your replication group by promoting a read replica to the primary role.
Aucun commentaire:
Enregistrer un commentaire