Skip to main content
Advancedhow it works

One key (a very large merchant) produces far more events than the rest. How do you handle the hot partition?

Source: Apache Kafka documentation: introduction and design

Quick answerFree

Confirm it first: bytes in and consumer lag per partition. Then pick by the ordering you need. If order across that merchant's events does not matter, add a bucket suffix to the key (merchant id + N buckets) and combine downstream.

Detailed answer· 81 words

Pro

Unlock the full answer with Pro

Get a 81-word model answer, 4 key points and a visual explainer, plus 25 more Apache Kafka questions.

Key points· 4 points

Pro
Unlock with Pro

Visual explainer· animated, step by step

Pro
Unlock with Pro

+ 25 more Apache Kafka questions in Pro, each with the full answer.

Discussion