SpinTheMic
Pro

Interview practice question

Customer events processed out of order

Data Engineering · Kafka Streaming · Beginner

Updates for the same customer are sometimes processed out of order. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Events for the same customer must use the same key.
  • Same key goes to the same partition, preserving order.
  • Check producer is setting customer_id as the key.
  • Avoid parallel processing of a partition in the consumer.
  • Use version numbers or timestamps to detect stale updates.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics