01 - EDA Fundamentals: Domain Events, Commands and Message Bus
Event-Driven Architecture Fundamentals: Domain Events, Commands and Message Bus. Imagine an e-commerce system: when a customer completes an order…
Series “Event-Driven Architecture”: it starts with “01 - EDA Fundamentals: Domain Events, Commands and Message Bus”. Event-Driven Architecture Fundamentals: Domain Events, Commands and Message Bus. Imagine an e-commerce system: when a customer completes an order, many things must happen asynchronously. Learn domain events, commands…
This series collects 11 articles (approximately 169 minutes of total reading time), designed for a level Intermediate. The main topics covered are Event Sourcing, CQRS, Projection, Eventual Consistency.
Event-Driven Architecture Fundamentals: Domain Events, Commands and Message Bus. Imagine an e-commerce system: when a customer completes an order…
Consider how a bank works: your account balance is not just a number in a database—it is the result of every transaction in history.
A classic REST API uses the same model to read and write data. CQRS separates the two so each side can scale independently.
Event Sourcing alone handles the write side in an immutable and auditable way. CQRS alone optimizes reading and writing separately.
In microservices there is no such thing as BEGIN TRANSACTION ... COMMIT that crosses service boundaries.
Amazon EventBridge is AWS' serverless event bus: it routes events based on content towards Lambda, SQS, Step Functions, API destinations and dozens of other…
Three AWS services, three different philosophies. SQS is queue-based, SNS is topic-based pub/sub, and EventBridge is event-driven routing.
Dead Letter Queue e Resilienza nei Sistemi Asincroni In qualsiasi sistema asincrono, i messaggi falliscono. In any asynchronous system, messages fail.
You set up your event-driven system with SQS, Kafka or EventBridge. Now handle duplicate messages with deduplication and idempotency keys.
You have a service that must do two things atomically: save state to the database and publish an event. The outbox pattern solves the dual-write problem…
A user updates their profile, clicks Save and still sees the old name. Eventual consistency strategies, trade-offs and UX patterns.