Interview practice question
One partition is overloaded
System Design · Messaging and Queues · Intermediate
One Kafka partition has huge lag while others are fine. Your key is customer ID, and one customer sends 40 percent of all events. What do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Hot key on one partition.
- Add sub-key or salt for that customer.
- Preserve ordering only where needed.
- Separate topic for big customer.
- Scale that consumer's processing.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.