Managing Consistency, State and Identity in Distributed Microservices
summary
Argues that services must own their hot state and use event sourcing and an append-only event log to make identity composable, auditable and replayable rather than rely on distributed transactions. Recommends local in-memory state, snapshotting, and Akka Distributed Data or polyglot backends (Cassandra, etc.) for replication, using idempotency, causal/eventual consistency and promise-based designs to avoid cross-service obligations. Demonstrates a shopping-cart example where CRUD loses history but the event log preserves every delete so analytics, audits and self-healing reconstruction work.
AI-written summary · about
chapters (13)
- 0:00Start
- 3:37"Traditional Application Architectures and Platforms are Obsolete" -- Gartner
- 6:21Supports multiple autonomous teams organized to scale the development where the teams can develop, deploy and manage their services independently
- 7:13A system of autonomous collaborative distributed services
- 7:36Autonomy From Greek Auto-nomos: auto meaning self nomos meaning law
- 15:08Consistent State. What about it? Sounds like a problem
- 16:48One Definition Stateful means the computer or program keeps track of the state of interaction, usually by setting values in a storage field designated for that purpose.
- 23:52There is no such thing as a "stateless" architecture. It's just someone else's problem of an absolute now
- 25:03Think in terms of Consistent Boundaries
- 25:45Bounded Contexts
- 28:18Composable Identity. The meaning of life?
- 29:06Polyglot Persistence
- 29:44"The truth is the log. The database is a cache of a subset of the log." --Pat Helland
related talks
27mData Consistency in Microservices Architecture
51mPatterns & Practices of Implementing Event-driven MicroSvc...
35mConsistent Updates in a Distributed System without Transactions
01h 11mEmbracing Messaging and Eventual Consistency in your Microservices Solutions
01h 25mBuilding microservices with event sourcing and CQRS
44mBuilding event-driven microservices with Scala and Functional Domain Models
46mMicroservices architecture and data consistency
48mIntegrating microservices by accepting the data dichotomy
