CSE Roadmap

Core tier · about 4 hours · 6 parts

Part 1 of 6 · 1 min read

Why this page comes ninth in Level 7

In this module you will

  • Turn a message-system question into requirements for topics, publishers and subscribers.
  • Explain why a topic kept as an append-only log with offsets is easier than a queue per subscriber.
  • Give each subscriber its own position, so one slow subscriber does not hold back the others.
  • Add retries and a dead list for messages that keep failing.
  • Name what the in-memory design cannot promise, and what real brokers add.

Publish-subscribe is the observer pattern of Level 4, module 2, grown up: the listeners are decoupled in time, they may be slow, and they may fail. This page also reuses the log idea from storage systems and the queue ideas of Level 5, module 4. No book was supplied for this track, so the content is common practice, not from the books. The Java code was compiled and run before it was written here. Numbers marked "made up" only show the idea.