Cianplan

Level 3: Distributed systems · L3.3 Queues, pub/sub & event-driven architecture

Pub/sub and fan-out

Choose queue vs pub/sub vs log for a fan-out need.

12 min · Pro

What you take away

  • A queue gives one message to one consumer; pub/sub gives a copy to every subscriber; a log lets every group read at its own pace.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. Three shapes, one question
  4. Check your understanding