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 年前2080 查看次数
2 回答
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
已回答 2 年前
  • 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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则