You are designing a globally distributed IoT monitoring solution using Azure Cosmos DB. The account is configured with multi-region writes enabled across East US, West US, and North Europe. The container holding the sensor data was initially partitioned by Region, which resulted in poor write performance and partition rate-limiting. To resolve this, you repartition the container using a high-cardinality key, DeviceId. A stateless analytics service deployed on scaled-out container instances in all three regions reads from the container. Because the instances are stateless and dynamically scaled, they do not share state or Azure Cosmos DB SDK session tokens. The analytics service requires that reads must never see out-of-order writes (writes must be read in the order they were committed). However, the service must also minimize write latency and Request Unit (RU) costs. Which consistency level should you set as the default for the Azure Cosmos DB account to meet these requirements?
- Consistent PrefixCevap
- BSession
- CStrong
- DEventual