Validation in an eventually consistent world
summary
Event-sourced microservice architecture uses an event stream as authoritative state, read-model projections, and aggregators that write those projections; validation choices are concrete tradeoffs. For unique emails: accept eventual-consistency checks if collisions in a 100 milliseconds window are unlikely, enforce a unique constraint on read model and let the aggregator fail/flag duplicates, or keep service-local state (Redis) to reject on write. For orders, fulfillment is multi‑phase against the warehouse system of record; payments move to background services, not inline.
AI-written summary · about
chapters (6)
- 0:00Context of microservices
- 2:50Defining services and state
- 5:39System components and flow
- 8:50Registration validation
- 17:46Order fulfillment logic
- 21:32Payment and final thoughts
related talks
43mEffective Eventual Consistency with Actor Models + Amazon Web Services
35mBeyond Validates_Presence_of: Ensuring Eventual Consistency
39mDealing with eventual consistency
36mEasy Eventual Consistency with Actor Models + Amazon Web Services
27mData Consistency in Microservices Architecture
01h 11mEmbracing Messaging and Eventual Consistency in your Microservices Solutions
56mEvents on the outside, on the inside and at the core
39mManaging Consistency, State and Identity in Distributed Microservices
