Event driven architecture
Table of Contents
TODO
- How to use step functions for event based architecture?
Problems with a system using synchronous communication
- Complex synchronous communication
- Performance issues with one/more services in the design will become bottlenecks for the entire design
- Downstream services need to be aware of upstream services’ contracts - request/response DS
- Not flexible (Introducing new services in the workflow)
- Upstream services have to be available
- We may lose requests due to any intermittent failures
Event driven architecture - Event
What is an event?
Event driven architecture - Event
Event driven architecture and services
Loosely coupled services that use asynchronous communication
- Subscribe to events generated by other services on Event store
- Truly decoupled services
- Reliable, resilient and fault-tolerant
- asynchronous
- better scalable services
- non-blocking (reactive)
Uses Event bus
To publish events/messages
e.g.
- Kafka
- Pulsar
Tags
- Comparison between Queues and Topics (SQS and SNS)
- Event Sourcing pattern
- Message Queues
- Spring Cloud Stream
- Streaming vs Messaging