Multiple ChoiceIntermediate 45s
Hot partition in Kafka
Messages are keyed by user_id and 5% of users generate 80% of traffic. What happens if you key by user_id?
Options
- 1Even distribution across all partitions because the key is hashed uniformly before being assigned
- 2A few partitions become hot and lag while others idle, because a key always maps to one partition
- 3Kafka rebalances the keys automatically across partitions so hot keys spread out on their own
- 4Messages are dropped whenever a partition's lag exceeds the configured retention threshold
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.