The delivery pipeline: guarantees, priorities and preferences
One festive-sale campaign, six failures, and the pipeline that prevents them: an idempotency key from the business event, committed with the outbox; preferences checked at routing and again at the last mile; quiet hours in the user's clock; batching that turns 50 pushes into 2; three priority lanes with their own topics, workers and quota; the inbox written before any push; at-least-once with dedup at every hop instead of exactly-once; classified retries cut at expiry; per-zone waves; an escalation saga on durable timers; and why a 10M campaign takes about 22 minutes whatever you add.
01 · Previously
W06 · DAY 02 · The Delivery Pipeline: Guarantees, Priorities and Preferences
Day 2: the delivery pipeline.
Previously: the boxes
Previously, on Day 1, you drew the boxes: a Send API, an outbox, Kafka topics by priority, a router, and a worker pool per channel.
0:00 / 23:03