Recommended way to failover with DynamoDB Global tables?

0

We are using Global tables in multiple regions with a single region for write operations. For automatic failover to a different region, can we use something on the application layer to change the writer region? Something like DNS to pick a healhy region, can result in writes to multiple regions while DNS propagates which is not safe as we use Transactions (not supported across multiple regions).

2 Answers
0

When using Global Tables, DynamoDB is expected to handle this for you. The documentation does indicate that when you're using "strongly consistent reads" you may get stale data until the degradation is resolved.

However... whether a region is degraded or not, "Transactions are not supported across regions in global tables. Changes will eventually be replicated to other regions once they have been committed in the source region." See Using transactional APIs with global tables.

profile picture
answered 2 years ago
  • My Question is more around how to fix a particular region as primary. I can still do transactions when I fix one region and use other regions as passive backups. The question is what's the safest and quickest way to switch to another region for writing when the primary region is down.

0

Please refer to the following Stack Overflow as it may be helpful. [1]

[1] amazon web services - DynamoDB Global Table - Stack Overflow
https://stackoverflow.com/questions/59211708/dynamodb-global-table

profile picture
mn87
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions