advancedKafka412 of 469
The DB update succeeds but Kafka publishing fails. How do you guarantee the event is not lost?
Tests whether you reach for the Transactional Outbox pattern -- writing the event to an outbox table in the same DB transaction as the business update, then a separate relay process publishes it to Kafka and marks it sent -- rather than a dual-write that can fail halfway.
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 responseNext Step
←PreviousContinue to Kafka publishing succeeds but the DB transaction rolls back. How could consumers receive an event for data that does not exist?→
← Back to all Spring Boot & Microservices questions