Need information on best practices for below AWS specific use case,
- Our Java web application is deployed in us-east-1 and us-west-2 regions.
- It communicates to Dynamo DB and Memcached based ElastiCache is sitting on top of Dynamo DB in both the regions.
- We have Dynamo DB replication enabled between us-east-1 and us-west-2.
- Route 53 directs API calls to the appropriate region.
Now, the issue is when we create or update a record in Dynamo DB it get's inserted in Dynamo DB and get's cached in that particular region. Record get's replicated to other regions Dynamo DB as well, but cache doesn't remain in sync since there is no replication between ElastiCache.
How do we address this issue in a best possible way?