Architektura
Architektura sterowana zdarzeniami
Usługi reagują na publikowane zdarzenia zamiast wywoływać się nawzajem bezpośrednio.
Artykuł
Architektura sterowana zdarzeniami: kto publikuje, kto słucha i co może pójść nie tak
Event-driven architecture w praktyce: cztery znaczenia „zdarzeń” według Fowlera, choreografia i orkiestracja, gwarancje dostarczenia, outbox, idempotentni konsumenci, kolejność i kontrakty. Kod w C#, TypeScript, Javie, Go i Pythonie.
Powiązane artykuły
- Amazon SQS w praktyce – kolejki standard i FIFO, long polling, DLQ, idempotencja, SNS fan-out i Lambda (Node.js, C#, Python)
Przenosimy obsługę zamówień pierogarni do kolejki Amazon SQS – producent i konsument w AWS SDK v3 z long pollingiem, visibility timeout i heartbeatem, kolejka martwych listów (DLQ), idempotentne…
- Obserwator (Observer): powiadom wszystkich, nie znając nikogo
Wzorzec Obserwator na przykładzie spiżarni pierogarni: gdy kończy się ser, menu, lista zakupów i alerty reagują same, a magazyn nie wie o ich istnieniu. Subskrypcja, wypisanie, pułapki i kod w…
- Mikroserwisy: niezależne wdrożenia, prawdziwe koszty i kiedy to się opłaca
Styl mikroserwisów według Lewisa i Fowlera bez marketingu: granice według zdolności biznesowych, własne dane, komunikacja synchroniczna i asynchroniczna, odporność na awarie, warunki wstępne i droga…
- Event sourcing: zapisuj fakty, a nie tylko ostatni stan
Stan jako ciąg niezmiennych zdarzeń: strumienie, odtwarzanie przez fold, optymistyczna współbieżność, projekcje, migawki i wersjonowanie zdarzeń. Agregat i magazyn zdarzeń w C# (Marten), TypeScript,…
Zadania
Materiały wokół tematu
- 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