| Troubleshooting | L31-L83 | Diagnosing and fixing Cosmos DB issues across APIs and SDKs: errors (400–503, 401/403/404/409/429), timeouts, performance, connectivity, CMK/backup, and using metrics/logs for root-cause analysis. |
| Best Practices | L85-L143 | Performance, scaling, partitioning, indexing, cost optimization, SDK usage, and HA/DR best practices for Cosmos DB (NoSQL, MongoDB, Cassandra, PostgreSQL) and legacy DocumentDB. |
| Decision Making | L145-L199 | Guides for choosing Cosmos DB options (consistency, throughput, backup, analytics, vector search), estimating cost/RUs, and planning/migrating workloads across APIs (Core, Mongo, Cassandra, PostgreSQL). |
| Architecture & Design Patterns | L201-L242 | Architectural patterns for Cosmos DB and PostgreSQL: multitenancy, sharding, HA/DR, change feed, HTAP, real-time analytics, and AI/LLM agents, memory, vectors, and semantic caching. |
| Limits & Quotas | L244-L282 | Limits, quotas, and behaviors for Cosmos DB (all APIs, backup modes, autoscale, serverless, free tier), plus PostgreSQL/Cassandra/Table/MongoDB constraints, RUs, partitions, and capacity usage. |
| Security | L284-L349 | Securing Cosmos DB and related services: identity/RBAC, keys and encryption, network isolation (VNet, firewalls, Private Link), TLS, auditing, policies, and Defender-based threat protection. |
| Configuration | L351-L477 | Configuring and deploying Cosmos DB (all APIs) and DocumentDB: throughput, indexing, TTL, backup/restore, global distribution, search/vector, emulators, monitoring, and infrastructure-as-code. |
| Integrations & Coding Patterns | references/integrations.md | SDK patterns, change feed, vector search, and integration guides for Cosmos DB across APIs (NoSQL, Mongo, Cassandra, PostgreSQL, Gremlin, DocumentDB) plus Kafka, Spark, BI, and migration tools. |
| Deployment | references/deployment.md | Deploying and managing Cosmos DB and Azure DocumentDB: ARM/Bicep/Terraform templates, CI/CD, scaling, backup/restore, upgrades, maintenance, and start/stop operations for various APIs. |