[ SRE_ARENA ]
MESSAGE BROKERS & STREAMING

Message Brokers: Event-Driven Architecture

DOWNLOADING CONCEPT: 1. WHY DECOUPLE? (SYNCHRONOUS VS ASYNCHRONOUS)...
  • ↳When Service A calls Service B synchronously via HTTP, they are coupled in time.
  • ↳If Service B is slow, Service A is slow.
  • ↳If Service B crashes, Service A crashes (Cascading Failure).
Asynchronous Messaging
  • ↳fixes this.
  • ↳Service A writes a message to a Broker (which is fast and highly available) and immediately returns success to the user.
  • ↳Service B reads from the broker at its own pace.
  • ↳This protects your architecture from traffic spikes and complete meltdowns.
▲ LIVE INCIDENTUsers report their password reset emails are arriving 4 hours late.
sre@arena:~/message-brokers
sre@arena:~$ kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group email-senders