Architecture
Event-Driven Architecture
Services react to published events instead of calling each other directly.
Article
Event-driven architecture: who publishes, who listens and what can go wrong
Event-driven architecture in practice: Fowler's four meanings of "events", choreography and orchestration, delivery guarantees, the outbox, idempotent consumers, ordering and contracts. Code in C#, TypeScript, Java, Go and Python.
Related articles
- Amazon SQS in practice – standard and FIFO queues, long polling, DLQ, idempotency, SNS fan-out and Lambda (Node.js, C#, Python)
We move the pierogi shop's order handling to an Amazon SQS queue – a producer and consumer with AWS SDK v3, long polling, visibility timeout and heartbeats, a dead-letter queue (DLQ), idempotent…
- Observer: notify everyone without knowing anyone
The Observer pattern through a pierogi place's pantry: when the cheese runs out, the menu, the shopping list and alerts react on their own, and the pantry does not know they exist. Subscribing,…
- Microservices: independent deployments, real costs and when it pays off
The microservice style according to Lewis and Fowler, without the marketing: boundaries by business capability, own data, synchronous and asynchronous communication, resilience, prerequisites and…
- Event sourcing: store the facts, not just the latest state
State as a sequence of immutable events: streams, rehydration by folding, optimistic concurrency, projections, snapshots and event versioning. An aggregate and an event store in C# (Marten),…
Challenges
Around the topic
- Event-Driven Architecture Style article · web · Microsoft Azure Architecture Center
- Event-Driven Architecture(EDA) vs. Request/Response (RR): System Design Explained video · youtube · Confluent, an IBM Company
- Messaging Patterns Overview - Enterprise Integration Patterns article · web · Gregor Hohpe
- Event-Driven Architectures Done Right, Apache Kafka • Tim Berglund • Devoxx Poland 2021 video · youtube · Devoxx Poland
- Microservices Pattern: Pattern: Transactional outbox article · web · Chris Richardson (microservices.io)
- Microservices Pattern: Pattern: Saga article · web · Chris Richardson (microservices.io)
- Understanding Event-Driven Architecture in a Multicloud Environment podcast · apple-podcasts · The InfoQ Podcast
- What is Event-Driven Architecture (EDA)? video · youtube · IBM Technology
- Event-Driven Architecture for Clean React Component Communication article · devto · Nicola
- Event-Driven Architecture Patterns Explained (Pub/Sub, Queues & More) video · youtube · Confluent, an IBM Company
- Software Architecture Fundamentals 2nd Edition, Chapter 15: Event-driven Architecture podcast · apple-podcasts · Software Architecture Book Club
- Anti-patterns in event-driven architecture article · web · Derek Comartin
- DevTalk #138 – O Event-Driven Architecture z Tomaszem Stolarczykiem podcast · apple-podcasts · DevTalk
- You’re Not Doing Event-Driven Architecture. You’re Doing CRUD Over Pub/Sub video · youtube · CodeOpinion
- Kelsey Hightower on Extending Kubernetes, Event-Driven Architecture, and Learning podcast · apple-podcasts · The InfoQ Podcast
- Your Event-Driven Architecture Is STILL Tightly Coupled video · youtube · CodeOpinion
- The Many Meanings of Event-Driven Architecture • Martin Fowler • GOTO 2017 video · youtube · GOTO Conferences
- Clickbait Events - EDA /Anti/Patterns | BSD 104 video · youtube · Mariusz Gil
- gvolpe/trading repo · github · gvolpe
- The Dark Side of Events (EDA) presentation · web · Vladik Khononov
- link-loom/loom-sdk repo · github · link-loom
- bitloops/ddd-hexagonal-cqrs-es-eda repo · github · bitloops
- temporalio/temporal repo · github · temporalio
- Beyond the saga pattern presentation · web · Uwe Friedrichsen
- Kafka: The Definitive Guide book · openlibrary · Neha Narkhede, Gwen Shapira, Todd Palino, Rajini Sivaram
- Twisted Network Programming Essentials: Event-driven Network Programming with Python book · openlibrary · Abe Fettig, Jessica McKellar
- Building Event-Driven Microservices book · openlibrary · Adam Bellemare