Updating Complex Entities Without Transactions in a Distributed System
summary
The talk addresses updating and creating complex business entities across microservices when distributed transactions aren’t available. It proposes using event-based techniques, specifically implementing a transaction-log-tailing pattern (demonstrated with MongoDB), to coordinate the multiple microservice interactions required for consistent updates.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 3:55Avoiding transactions in distributed systems
- 15:28Transaction log mining
- 21:13MongoDB change streams
- 31:44SSE vs WebSocket streaming
- 36:09Event processing daemon
- 43:04Long polling requests
- 45:19Benefits and trade-offs
- 51:25Q&A
- 54:17Q&A latency improvements
- 56:28Q&A schema changes
- 57:34Q&A multi-state objects
- 59:00Closing remarks
