Interview practice question
CDC events breaking cross-table consistency
Data Engineering · Kafka Streaming · Experienced
Downstream consumers see an order before its order lines because CDC events from different tables arrive in different topics. How do you handle this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Each table's topic is ordered independently.
- Use transaction metadata from Debezium to group events.
- Build aggregates downstream with windows or buffering until complete.
- Or use the outbox pattern publishing complete business events.
- Design consumers to tolerate eventual consistency.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.