Semicolony ELI5 · comic

Kafka & pub/sub.

A newspaper: published once, and any number of subscribers read it at their own pace.

  1. Still calling everyone…
    call everyone…
    1

    The old way: phone every interested party, one by one. Slow and brittle.

  2. append, in order
    2

    Instead, publish once to an ordered log — like printing the paper.

  3. each tracks its own offset
    3

    Many subscribers read the same log, each tracking its own place.

  4. Catch up later? Fine.
    slow caught up
    4

    A slow reader doesn’t hold up the others — the paper just waits to be read.

  5. rewind and reprocess
    5

    The log is kept, so a reader can replay from the start when needed.

  6. producer log reader reader
    6

    Producers and consumers never touch directly — add either side freely.

Publish once to a log; many readers, each at their own pace.
Semicolony semicolony.dev/eli5/kafka/comic
← All ELI5 explainers