Designing NoSQL and Non-Relational Data Solutions: Cosmos DB, Table, Blob, Search, Graph and Time-Series Choices
Choosing a Non-Relational Store
| Data and need | Service |
|---|---|
| JSON documents, global, low latency, elastic | Cosmos DB (NoSQL API) |
| Existing MongoDB or Cassandra apps | Cosmos DB for MongoDB / Cassandra |
| Graph relationships | Cosmos DB for Gremlin |
| Simple key-value, cheapest | Table Storage |
| Files, images and big blobs | Blob Storage |
| Logs, telemetry and time-series analytics | Azure Data Explorer (Kusto) |
| Full-text and vector search | Azure AI Search |
| Hot cache and sessions | Azure Cache for Redis |
Cosmos DB Design Steps
- List access patterns (the queries you will run most)
- Choose the API. NoSQL for new apps
- Pick a partition key with high cardinality that appears in most queries
- Choose consistency (Session by default)
- Estimate RU/s from item size and operations per second, and choose provisioned, autoscale or serverless
- Choose regions, zone redundancy and write mode
- Plan indexing policy, TTL, change feed and backups
Consistency Choices
| Scenario | Level |
|---|---|
| Bank balance in one region | Strong (single region) or Bounded staleness |
| User profile edited and read by the same user | Session |
| Social feed counters | Eventual or Consistent prefix |
| Global with ordering needs | Bounded staleness |
Data Modeling Tips
- Model for reads: embed related data you read together, reference data that grows without limit or changes alone
- Avoid cross-partition queries on hot paths
- Keep items small (the limit is 2 MB per item) and index only what you query
- Use TTL to expire old data automatically
json
{
"id": "o1001",
"customerId": "c42",
"status": "paid",
"items": [ { "sku": "A1", "qty": 2, "price": 399.5 } ],
"ttl": 31536000
}
Global Distribution Design
- Add read regions near users. Use multi-region writes only when needed, with a conflict resolution policy
- Enable automatic failover with priorities
- Costs multiply with regions (RU/s and storage per region)
Complementary Services
- Redis in front of databases for fast reads (cache-aside)
- AI Search for rich search with text and vectors over your data
- Data Explorer for streaming telemetry with fast KQL queries
- Synapse Link or Fabric mirroring to analyze operational data without load on the live database
Scenario
An IoT platform receives 20,000 events per second. Design: devices to Event Hubs, hot path in Stream Analytics, recent data in Data Explorer for dashboards, device twin and metadata in Cosmos DB partitioned by /deviceId, raw archive in Data Lake.
Practice
- Pick a partition key for orders, devices and chat messages
- Estimate RU/s for 500 reads and 100 writes per second of 1 KB items (reads about 1 RU, writes about 5 RU)
- Choose a store for logs, search results and sessions
Conclusion
Pick the non-relational service by data shape and access pattern, design Cosmos DB around partition keys and consistency, and add Redis, Search and Data Explorer where they fit.
Quick Summary: services; Cosmos steps; consistency; modeling; distribution; companions; scenario.

