Interview practice question
Events processed out of order
Backend Engineering · Microservices · Intermediate
Your consumer received OrderShipped before OrderPaid for the same order, causing errors. How do you handle event ordering?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Order only guaranteed per partition.
- Partition by entity ID (order ID).
- Version numbers on events.
- Ignore stale, buffer or retry early events.
- Design for out-of-order arrival.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.