Quick revision
The short answer
I would decide with data: each large customer's share of traffic and peak load, and what it costs to serve them. Strict limits protect everyone else but can lose revenue; dedicated capacity or cells isolate large customers at a cost that pricing must cover. Whatever we choose, limits, plans and contracts must be aligned with sales and finance, customers get tools to behave well such as bulk APIs and webhooks, and we revisit the policy as the customer mix changes.
What to remember
In this answer, we saw that the choice between strict limits, dedicated capacity and pricing starts with measuring each customer's share of traffic, peak load and cost. Strict limits protect others quickly but risk revenue; cells isolate large customers at a cost that pricing should cover. We combined the options, aligned limits with plans and contracts through sales and finance, gave customers bulk APIs, webhooks and clear headers so they can behave well, and planned to revisit the policy as the customer mix changes.
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 decide with data: each large customer's share of traffic and peak load, and what it costs to serve them. Strict limits protect everyone else but can lose revenue; dedicated capacity or cells isolate large customers at a cost that pricing must cover. Whatever we choose, limits, plans and contracts must be aligned with sales and finance, customers get tools to behave well such as bulk APIs and webhooks, and we revisit the policy as the customer mix changes.
Why this question is asked
When a handful of customers drive most of an API's growth, their success is the company's success, and their traffic spikes are also everyone else's outages. The technical options are familiar, but each one has a commercial side: a strict limit can push a big customer to a competitor, dedicated capacity costs money, and a pricing change needs sales and finance on board. Interviewers ask this question at the senior level to see whether we can frame a decision that is half engineering and half business. In this answer, we will measure the problem, compare the three options and what each costs, see how to combine them, align them with contracts, give customers tools to behave well, and plan to revisit the policy.
1Measuring Before Deciding
I would first replace impressions with numbers. For each customer: share of total requests, share of peak load (the busiest five minutes matter more than the monthly average), the shape of their traffic (steady, daily batch, unpredictable bursts), the infrastructure cost to serve them and their revenue. A common finding is something like this: three customers produce 45 percent of requests, one of them produces 70 percent of peak load because it runs a nightly sync that sends 15,000 requests per second for 20 minutes, and its revenue is 8 percent of the total.
This tells us which problem we actually have. If the issue is one customer's bursty sync job, the answer may be a better API for that job, not a change for everyone. If several large customers are growing steadily, it is a capacity and pricing question.
| Customer | Share of requests | Share of peak load | Share of revenue |
|---|---|---|---|
| A (nightly sync) | 12 percent | 70 percent | 8 percent |
| B (steady, growing) | 18 percent | 15 percent | 22 percent |
| C (polling for updates) | 15 percent | 6 percent | 5 percent |
| Everyone else (1,200) | 55 percent | 9 percent | 65 percent |
2Option 1: Strict Rate Limits
Strict per-customer limits are the fastest and cheapest protection. A cap of 2,000 requests per second for every customer stops customer A's sync from hurting anyone else, and it can be live in days. The cost is commercial: customer A's integration starts receiving 429 errors, its sync takes hours instead of minutes, and if the contract or their expectations promised more, we have a dispute, possibly a lost account.
So strict limits are right as a safety net for everyone, set high enough that normal use never hits them, but they are a poor long-term answer for a customer who legitimately needs more and is willing to pay for it.
3Option 2: Dedicated Capacity or Cells
Isolation means the large customer's traffic runs on capacity that nobody else shares. A cell is a complete, independent copy of the service stack serving a subset of customers; a large customer can get its own cell, or a dedicated pool of instances and database capacity. Then its spikes only affect itself, and we can size its cell for its peak.
The cost is real: more infrastructure, more deployments to manage, and engineering work if the system was not built for cells. A dedicated cell for customer A might cost 20,000 dollars a month. That is only sustainable if pricing covers it, which leads to the third option.
4Option 3: Pricing That Matches Cost
Pricing shapes behaviour. If customer A pays the same as a customer with a tenth of the load, nothing encourages them to change. Plans with higher tiers that include more throughput, an enterprise tier with dedicated capacity at a price that covers the cell, or charges for peak throughput rather than only request volume all align what customers pay with what they cost us. Pricing changes are slow, need notice periods and touch existing contracts, so they are the long-term lever rather than this week's fix.
In practice I would combine all three: a high strict limit as a safety net for everyone, dedicated capacity offered to customers whose needs exceed it, and pricing that funds that capacity.
- Measure load, peak shape, cost and revenue
- Can a better API remove the peak?bulk export, webhooks, schedulingYesOffer it, with a migration windowNoContinue
- Does revenue cover dedicated capacity?YesOffer a cell or dedicated tierNoContinue
- Will they accept a higher plan?YesRaise plan and limitNoApply the standard limit
- Record the decision in the contractlimits, plans and capacity agree
5 steps in order. Play them, or step through them one at a time.
5Aligning Limits, Plans and Contracts
The most painful situations come from mismatched promises: sales signs a contract that promises "unlimited API usage" while engineering enforces 1,000 requests per second. I would work with sales and finance to make the published limits, the plan tiers and the contract terms the same numbers, and to make engineering review any non-standard contract that promises throughput or isolation. Finance needs the cost-to-serve figures to price tiers; sales needs a clear upgrade path to offer customers who hit the limits, which turns a complaint into a revenue opportunity.
6Helping Customers Behave Well
Much heavy traffic is caused by API design, not by customer intent. Customer C polls every resource every 30 seconds because we offer no change notifications; webhooks or an events endpoint would replace millions of requests with a few thousand. Customer A's nightly sync downloads records one by one; a bulk export API that returns a file of changed records would replace 15,000 requests per second with one job. Clear rate limit headers, Retry-After, and SDKs that back off automatically let integrations slow down gracefully instead of hammering us.
I would offer these tools together with any limit change, with a migration window and engineering help for the largest customers. Customers usually prefer a better integration over a throttled one.
7Revisiting the Policy
The customer mix changes: today's three giants may be twenty mid-size customers next year, and a new market can bring different traffic shapes. I would review the per-customer numbers quarterly with sales and finance, track how many customers hit their limits and how often, and adjust tiers and limits accordingly. The decision and its reasoning are written down, so the next review starts from what we learned rather than from scratch.
8Follow-up questions
What would you do this week, before any pricing change?
Put a high safety-net limit in place for every customer so that no single one can take the service down, sized so that only the extreme peaks are cut, and talk to customer A directly about scheduling or spreading its sync. At the same time, start building or offering the bulk API. That stops the outages now and buys time for the commercial changes, which take months.
How do you avoid losing a large customer when you introduce limits?
By involving the account team early, giving notice, showing the customer their own usage data, and offering a path that serves them better: a bulk API, a dedicated tier, or a scheduled window. Customers rarely leave over a fair, well-explained limit with a clear alternative. They leave over surprise 429 errors in the middle of their business day.
9Conclusion
In this answer, we saw that the choice between strict limits, dedicated capacity and pricing starts with measuring each customer's share of traffic, peak load and cost. Strict limits protect others quickly but risk revenue; cells isolate large customers at a cost that pricing should cover. We combined the options, aligned limits with plans and contracts through sales and finance, gave customers bulk APIs, webhooks and clear headers so they can behave well, and planned to revisit the policy as the customer mix changes.
Open with
I would start by measuring, because large customers is usually too broad a description of the problem. For each customer I want their share of requests, their share of peak load, the shape of their traffic, the cost to serve them and their revenue.
Then, if they want more
Often it turns out that one traffic pattern, like a nightly sync or aggressive polling, causes most of the damage. Then I look at the three options as a combination rather than a choice.
Strict per-customer limits are fast and protect everyone, but they can cost revenue if a big customer legitimately needs more, so I set them as a high safety net.
Dedicated capacity or a cell per large customer isolates their spikes completely, but it costs real money, so it only works if pricing covers it, which is where an enterprise tier or throughput-based pricing comes in. Pricing changes take months and need notice, so they are the long-term lever.
Crucially, I would align all of this with sales and finance, so published limits, plan tiers and contracts say the same thing and nobody sells unlimited usage we cannot serve.
I would also give customers better tools: bulk export APIs, webhooks instead of polling, clear limit headers and SDKs that back off, because a lot of heavy traffic is caused by our API design. And I would review the numbers quarterly, since the customer mix keeps changing.
About this answer
- Last updated
- 12 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 official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
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 "Your public API's growth is driven by a few very large customers whose traffic spikes...": https://scrivio-interview-library.netlify.app/spring-boot/scalability/f6e01c8c20/