Event-driven system on Azure CosmosDB
summary
Migrates Skype contacts to an event-driven model using Azure Cosmos DB change feed and multi-partition collections, storing snapshots plus events atomically via stored procedures per-partition. System serves about 2 billion address books across ~270 regions with 150 TB of data and peaks of 5k–15k reads/sec while targeting three nines SLA. Builds a background processor that uses retries and a retry + dead-letter queue, adds property-level versioning and conflict-resolution, and validates via in-memory functional tests with Kestrel; demos and libs are open source.
AI-written summary · about
chapters (11)
- 0:00Introduction to the system
- 6:31Splitting domain and integration
- 13:02Why Cosmos DB was chosen
- 15:31Storing data with transactions
- 18:20Change feed and event streaming
- 23:02Building the event processor
- 27:21Handling system outages
- 28:03Testing the solution
- 31:15Monitoring and observability
- 32:00Summary and resources
- 33:10Q&A session
