expertKafka Transactions & Exactly-Once Semantics

Does Kafka's exactly-once semantics extend to a write against an external database like Postgres?

No — that's the exact same dual-write problem from Chapter 15; Kafka transactions only cover atomicity across Kafka topics/partitions themselves, not an external system, which is why the Outbox Pattern (Chapter 18) exists as a separate solution for that boundary.

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 Design the money-movement part of a UPI-like system. What pattern do you use, and why not a single distributed transaction?← Back to all Transaction Mastery questions