Skip to content
Theory · Asynchronous work · lesson 5 of 7

Event stream versus task queue

Not every message is a task. The message "video 123 published" describes a fact, and several services wait for it at once: search, notifications, analytics. A task queue does not fit here, and in an interview you are expected to name another block, the event stream.

In this lesson

  • A task and an event
  • How a stream differs from a queue
  • Partitions and the number of readers
  • When to name which
  • Common mistake
  • Key points