New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
Your consumer crashes right before it commits its Kafka offset, and every row it just wrote lands in the table twice.
What you'll have at the end
A consumer that writes to the sink and commits its offset in the same step, tested by killing it mid-batch
You need
A consumer already reading a CDC topic's change messages and writing each one into a sink table, with no protection yet against reading the same message twice.
Not covered
What happens when the change is a delete, or when two genuinely different updates to the same row arrive out of order; both need their own handling this recipe doesn't build.
Checked 26 Aug 2026
Part of the Change Data Capture (CDC) cookbook