expertOutbox, Inbox & CDC

Why must the outbox table live in the exact same database as the business tables it's paired with?

The entire mechanism depends on Chapter 02's local atomicity guarantee — the business write and outbox write must be part of the same physical database transaction, which is only possible if they share the same database.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to What does Kafka guarantee by default: at-most-once, at-least-once, or exactly-once?← Back to all Transaction Mastery questions