A company is developing a globally distributed retail catalog application. The database is hosted on an Azure Cosmos DB API for NoSQL account with a single write region in East US and a read-only replica in West US. The application requires that multiple independent client applications reading from the West US region must observe updates in the exact sequence they were committed in East US. To optimize performance and reduce request unit (RU) consumption, the consistency level must offer the lowest latency and resource cost possible while still guaranteeing ordered reads. Which consistency level should you configure for the Azure Cosmos DB account?
- ASession
- Consistent PrefixCevap
- CEventual
- DStrong
Cevap
Consistent Prefix
Consistent Prefix consistency guarantees that reads never see out-of-order writes. It ensures that updates are returned in the order they were made, while offering the lowest read latency and Request Unit (RU) cost (matching Eventual consistency).
Adım Adım Çözüm
Anahtar Kavram
Azure Cosmos DB Consistency Levels
Tahmini Süre:1m 30s