awesome-everything RU
↑ Back to the climb

Queues, Streams, Eventing

Outbox pattern: free-recall review

Crux Free-recall prompts across the outbox unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 13 min

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the material stick.

Goal

Reconstruct the unit’s core mechanisms — the dual-write gap, the single-transaction fix, polling vs CDC, the at-least-once guarantee, idempotent consumers, and the operational tax — without looking back at the lesson.

Recall before you leave
  1. 01
    Why does a handler that writes the database and publishes to a broker have no crash-safe ordering of those two calls?
  2. 02
    How does the transactional outbox convert the dual write into something atomic, and what exactly is durable after COMMIT?
  3. 03
    Compare a polling relay and a CDC relay along latency, load on the primary, and operational cost.
  4. 04
    Why is outbox delivery at-least-once rather than exactly-once, and what does that force on consumers?
  5. 05
    You scale the polling relay to multiple replicas. What two problems appear, and how do you solve each?
  6. 06
    What causes outbox table bloat and how do you reap it without hurting the hot write path?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: a dual write across two stores has no crash-safe ordering; the outbox collapses it into one local transaction whose COMMIT durably records the intent to publish; a relay ships rows by polling (simple, interval-bounded) or CDC (fast, operationally heavier); the publish-then-mark gap makes delivery at-least-once, so consumers dedupe on a stable event id; and the operational tax — bloat, ordering, competing relays — is paid with partitioning or batched reaps, aggregate keying, and FOR UPDATE SKIP LOCKED.

Continue the climb ↑Outbox pattern: code and schema reading
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources2
expand
  1. 01
  2. 02

Trademarks belong to their respective owners. Editorial reference only.