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

Kafka

A distributed log for high-throughput event streaming.

The idea

Topics are split into partitions replicated across brokers. Consumers in a group share partitions.

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 to partitions
  2. 2Brokers replicate
  3. 3Consumer groups read by offset
  4. 4Messages are retained for replay

Where it is used

Event pipelines and analytics.

Watch out for

Operational complexity and partition design.

Related