Quick revision
The short answer
I would prepare in five parts: classify the 90 consumers by business priority and agree in advance what may fall behind; plan capacity from last year's data against each service's throughput, partition count and downstream limits; rehearse with load tests and game days; build controls to pause or throttle low-priority groups centrally, quotas that protect brokers and dashboards of time to drain per priority class; and set governance with an owner per consumer group, a change freeze, pre-scaling the day before and a review afterwards. The aim is that during the event, falling behind is a planned state for analytics, never a surprise for fraud.
What to remember
In this answer, we turned last year's panic into a plan. We classified the 90 consumers by business priority and agreed in advance how far each class may fall behind, planned capacity from last year's rates times eight against throughput, partitions and downstream limits, and rehearsed with load tests and game days. We built central pause and throttle controls, broker quotas and time-to-drain dashboards, and set governance with owners, a change freeze, pre-scaling the day before and a review afterwards.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would prepare in five parts: classify the 90 consumers by business priority and agree in advance what may fall behind; plan capacity from last year's data against each service's throughput, partition count and downstream limits; rehearse with load tests and game days; build controls to pause or throttle low-priority groups centrally, quotas that protect brokers and dashboards of time to drain per priority class; and set governance with an owner per consumer group, a change freeze, pre-scaling the day before and a review afterwards. The aim is that during the event, falling behind is a planned state for analytics, never a surprise for fraud.
Why this question is asked
Last year's sales event is a familiar story: volume rose eight times, nobody knew which services mattered most, teams added pods that did not help, and the most important checks ran on stale data. None of that was a Kafka failure; it was a planning failure. Interviewers ask this leadership question to see whether we can turn a painful incident into an organisational plan with priorities, numbers, rehearsals and controls. In this answer, we will set priorities, plan capacity from data, rehearse, build the controls, set governance, and look at the timeline that ties them together.
1Agreeing Priorities Before the Event
During a peak, not every consumer can be current, and trying to keep all 90 current is how teams end up scaling in a panic. So the first step is to classify every consumer group by business priority, with product and business owners in the room. A simple scheme has four classes: payments and fraud, customer-facing (order confirmations, notifications, search updates), internal operations (warehouse, finance feeds) and analytics.
For each class, we agree in advance how far it may fall behind: fraud and payments within one minute, customer-facing within five minutes, internal within an hour, analytics may lag for many hours and catch up after the event. These are business decisions, made calmly months before, not by an engineer at 2 a.m. during the peak.
| Class | Examples | Allowed lag at peak |
|---|---|---|
| 1. Payments and fraud | fraud-check, payment-capture | Under 1 minute |
| 2. Customer-facing | confirmations, notifications | Under 5 minutes |
| 3. Internal | warehouse, finance feeds | Under 1 hour |
| 4. Analytics | clickstream, reporting | Hours; drain after event |
2Planning Capacity From Data
Last year's metrics give us each topic's peak rate. Multiply by eight, or by the growth forecast, and compare with each service's measured throughput per pod. A fraud consumer that handles 2,000 records per second per pod and must handle 40,000 at peak needs 20 pods, but only if its topic has at least 20 partitions, because a group cannot use more consumers than partitions. If it has 12, pods beyond 12 do nothing, which is exactly the panic scaling that failed last year. Partitions must be added weeks before the event, since adding them changes which partition each key maps to.
Downstream limits matter just as much. If the fraud service writes to a database that sustains 30,000 writes per second, 40,000 records per second cannot all be written, whatever the pod count. So the plan for each class 1 and 2 service lists its peak rate, its throughput per pod, its partition count and its downstream limits (databases and partner APIs), and raises the smallest of them before the event. Broker capacity (network and disk) is planned the same way for the total peak.
3Rehearsing
A plan that has never run is a guess. We run load tests at the expected peak on production-like data, ideally replaying last year's traffic multiplied up, in an environment sized like production or in production during quiet hours with synthetic topics. These tests reveal the real bottlenecks: the database index that collapses at 3x, the partner API that throttles at 5x.
We also run game days: pause the analytics consumers for an hour and resume them, verify that fraud stays within one minute, and practise the catch-up runbook for a service that falls behind. Each team with a class 1 or 2 service walks through its runbook with the on-call engineer who will be holding the pager during the event.
4Building the Controls
During the event we want levers, not heroics. The platform should offer a central way to pause or throttle consumer groups by priority class, for example through a small control service that calls each application's pause endpoint or uses Spring Kafka's registry, so the incident lead can pause all analytics consumers with one action and resume them afterwards. Broker-side quotas per principal protect the brokers from any single runaway client.
Dashboards show time to drain per priority class, lag divided by consumption rate, instead of raw lag. Two million records of lag on clickstream may be fine; 20,000 on fraud may not. Time to drain against the agreed limit for each class is what the incident lead watches, with alerts on class 1 and 2 only.
- Incident leadwatches time to drain per priority class
- Central pause and throttleby class, one action
- Consumer groupsowner, class, pre-scaled replicas
- Broker quotasprotect the cluster from runaway clients
- Kafka clustercapacity planned for total peak
5 layers, from the top down. Step through them one at a time.
5Governance and the Timeline
Every consumer group has a named owner and a priority class in a catalogue; a group without an owner is classed as analytics by default. Six to eight weeks before the event, partition changes and capacity upgrades are complete. Two weeks before, load tests and game days are done and runbooks signed off. A change freeze covers the 48 hours plus a few days either side, with exceptions approved by the incident lead.
The day before, services are pre-scaled to their planned peak counts rather than relying on autoscaling during the rush, since every scale event during the peak causes a rebalance. During the event, a small incident team watches the dashboards and uses the levers. Afterwards, a review compares actual lag, incidents and cost with the plan, and the numbers feed next year's plan.
- 3 months before: classify consumerspriorities and allowed lag
- 2 months before: capacity planx8 against throughput, partitions, limits
- 6 weeks before: partitions and upgrades done
- 2 weeks before: load tests, game days
- Day before: pre-scale, freeze in place
- Event: watch time to drain, pause low priority
- Afterwards: review against the plan
7 steps in order. Play them, or step through them one at a time.
6Follow-up questions
What do you do if a class 1 service falls behind during the event anyway?
Follow its runbook: pause lower-priority consumers that share its downstream resources, check whether the bottleneck is its pods, partitions or database, and apply the prepared fix. If it is beyond quick repair, shed non-essential work in that service, such as optional enrichment, to keep the core check current.
How do you get 90 teams to take part?
Make it a company programme with an executive sponsor, a single plan and clear deadlines, and keep the asks small for low-priority teams, mostly an owner, a class and a pause endpoint. Class 1 and 2 teams get the most attention and support.
Is autoscaling useless during the event?
Not useless, but not the plan. Pre-scaling covers the expected peak without rebalances; autoscaling, with damped settings and a maximum at the partition count, handles the surprises above it.
7Conclusion
In this answer, we turned last year's panic into a plan. We classified the 90 consumers by business priority and agreed in advance how far each class may fall behind, planned capacity from last year's rates times eight against throughput, partitions and downstream limits, and rehearsed with load tests and game days. We built central pause and throttle controls, broker quotas and time-to-drain dashboards, and set governance with owners, a change freeze, pre-scaling the day before and a review afterwards.
Open with
I would treat last year as a planning failure rather than a Kafka failure, and prepare in five parts. First, priorities: classify all 90 consumer groups, payments and fraud, customer-facing, internal and analytics, and agree with business owners in advance what may fall behind.
Then, if they want more
Analytics can lag for hours; fraud must stay within a minute.
Second, capacity from data: take last year's peak rates times eight and compare them with each service's measured throughput per pod, its partition count and its downstream limits like databases and partner APIs, because pods beyond the partition count or past a database limit do not help, which is exactly what teams did in the panic.
Partition changes happen weeks ahead. Third, rehearsal: load tests at the expected peak on production-like data, and game days where we pause and resume low-priority consumers and practise catch-up runbooks. Fourth, controls: a central way to pause or throttle low-priority groups, quotas that protect the brokers, and dashboards that show time to drain per priority class instead of raw lag.
Fifth, governance: an owner for every consumer group, a change freeze around the event, pre-scaling the day before, and a review afterwards comparing actual lag and cost with the plan, which feeds next year.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Apache Kafka documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "As the senior engineering leader, how do you prepare the organisation and the event...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-design/126af47b77/