gpt4 book ai didi

amazon-web-services - 失效在 AWS DynamoDB DAX 多区域中如何工作

转载 作者:行者123 更新时间:2023-12-01 11:14:13 28 4
gpt4 key购买 nike

我们正在使用 DynamoDB 全局表并计划在 DynamoDB 的顶部使用 DAX 来启用缓存。但我没有看到任何关于 DAX 失效将如何在多区域设置中发生的提及。

例如,假设有 2 个集群,一个在 us-west-2 中,一个在 us-east-2 中。如果我们使用 DAX 客户端更新 us-east-2 中的某些内容,它的缓存将被更新,但在将数据复制到 us-west-2 时,全局表更新缓存也会在 us-west-2 中吗?我在 DynamoDB documentation 中没有看到任何提及.

最佳答案

DAX 缓存不会更新 .全局表将复制其他区域的数据。但是,它不会更新缓存。甚至,query cacheitem cache是独立的。

DAX does not refresh result sets in the query cache with the most current data from DynamoDB. Each result set in the query cache is current as of the time that the Query or Scan operation was performed. Thus, Charlie's Query results do not reflect his PutItem operation. This will be the case until DAX evicts the result set from the query cache.



写通策略:-

The DAX item cache implements a write-through policy (see How DAX Processes Writes). When you write an item, DAX ensures that the cached item is synchronized with the item as it exists in DynamoDB. This is helpful for applications that need to re-read an item immediately after writing it. However, if other applications write directly to a DynamoDB table, the item in the DAX item cache will no longer be in sync with DynamoDB.



DAX Consistency

在上面的语句中,可以考虑 other application字为 global table复制。 DAX 不会知道为全局表完成的复制。

关于amazon-web-services - 失效在 AWS DynamoDB DAX 多区域中如何工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55104651/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com