Lesson 13 of 14
23. Pub/Sub and Fan-Out

Sources

3 min read+10 XP

Source notes

  • Pub/sub, topics, subscriptions and consumer groups: Apache Kafka documentation; Google Cloud Pub/Sub documentation; Amazon SNS documentation (SNS to SQS fan-out).
  • Fan-out on write with special handling for high-follower accounts in social timelines: Raffi Krikorian (Twitter), "Timelines at Scale", QCon San Francisco 2012 (InfoQ).
  • Transactional outbox pattern: Chris Richardson, microservices.io, "Pattern: Transactional outbox"; Debezium documentation, outbox event router.
  • Event notification vs event-carried state transfer: Martin Fowler, "What do you mean by 'Event-Driven'?", 2017.
  • Follower counts, release volumes, write rates and reader numbers are illustrative assumptions; arithmetic computed 2026-10-08.
  • Level 3 and Level 4 code: tested 2026-10-08 (code/ch23_pubsub.py, all checks pass).