Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.2.1. Core Concepts: Global Distribution and Consistency

đŸ’¡ First Principle: Cosmos DB trades simplicity and cost for global reach and performance guarantees—pay for throughput (Request Units), not just storage.

Consistency Models (Critical Exam Topic!)

Cosmos DB offers five consistency levels trading off between latency and consistency:

Consistency LevelGuaranteeLatencyUse Case
StrongLinearizable readsHighestFinancial transactions
Bounded StalenessReads lag by defined time/versionsHighNeed strong but can tolerate lag
SessionConsistent within a sessionMediumMost common; great for user sessions
Consistent PrefixNo out-of-order readsLowMessaging, feeds
EventualNo ordering guaranteesLowestAnalytics, logs
Visual: Cosmos DB Global Distribution
Loading diagram...