gpt4 book ai didi

azure - cosmosdb/documentdb 中的多主机

转载 作者:行者123 更新时间:2023-12-04 18:25:01 27 4
gpt4 key购买 nike

如何在 cosmosdb 中设置多个写入区域,以便不需要在应用层合并两个或多个不同区域的查询结果?从本文档来看,cosmosdb 全局分布似乎是具有一个写入器和多个读取辅助的全局复制,而不是真正的多主复制。 https://learn.microsoft.com/en-us/azure/documentdb/documentdb-multi-region-writers

最佳答案

自 2018 年 5 月起,Cosmos DB 现已使用 CRDT 数据类型和自动冲突解决的组合来原生支持多主机。

Multi-master in Azure Cosmos DB provides high levels of availability (99.999%), single-digit millisecond latency to write data and scalability with built-in comprehensive and flexible conflict resolution support.

Multi-master is composed of multiple master regions that equally participate in a write-anywhere model (active-active pattern) and it is used to ensure that data is available at any time where you need it. Updates made to an individual region are asynchronously propagated to all other regions (which in turn are master regions in their own). Azure Cosmos DB regions operating as master regions in a multi-master configuration automatically work to converge the data of all replicas and ensure global consistency and data integrity.

Azure Cosmos DB implements the logic for handling conflicting writes inside the database engine itself. Azure Cosmos DB offers comprehensive and flexible conflict resolution support by offering several conflict resolution models, including Automatic (CRDT- conflict-free replicated data types), Last Write Wins (LWW), and Custom (Stored Procedure) for automatic conflict resolution. The conflict resolution models provide correctness and consistency guarantees and remove the burden from developers to have to think about consistency, availability, performance, replication latency, and complex combinations of events under geo-failovers and cross-region write conflicts.

更多详细信息请参见:https://learn.microsoft.com/en-us/azure/cosmos-db/multi-region-writers

<小时/>

目前正处于预览阶段,可能需要获得批准才能使用:

enter image description here

关于azure - cosmosdb/documentdb 中的多主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43948157/

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