Skip to content
StackDecode
System Design
9. Message Queues and Event-Driven SystemsAnimated

Event Streaming

A continuous log of events many consumers can read.

The idea

Platforms such as Kafka store ordered events and let consumers read at their own offsets.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ProducerEvent brokerBillingEmailAnalytics
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A service publishes an event: "OrderPlaced".

step:
1/4
at:
Producer
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Producers append events
  2. 2The log stores them
  3. 3Consumers track an offset
  4. 4They replay when needed

Where it is used

Analytics and integration.

Watch out for

Partitioning and ordering design.

Related