Course map
Stage 1: Foundations
Stage 2: Data Integration
Stage 3: Building & Shipping
Stage 4: Customer Engagement
Stage 5: Specialization

Part 08 / Topic 7 of 7

Queues and event streams

Polling asks "anything new?" on a schedule; a message queue (RabbitMQ, SQS) or event stream (Kafka) pushes each change as it happens. When the customer's systems can publish events, consuming them beats polling: lower latency, no wasted fetches, no watermark bookkeeping. The trade: queues bring their own operational weight (consumer groups, dead-letter queues, replays), and delivery guarantees still land on you — most queues are at-least-once, so your consumer sees duplicates, and the idempotent load you built remains the thing that saves you. Webhooks (Part 5) are the lightweight version of the same idea; a queue is what you graduate to when volume or reliability demands it.

Done here? The practice set for Part 8 — 4 exercises with solutions — is on the part page.

Search the guide