Scrivio Interview library
ScenarioAdvanced6 min read · updated 13 November 2026

A retail site normally serves 5,000 requests per second. Over 20 minutes traffic grows to 75,000, almost all on product search and price endpoints, spread over hundreds of thousands of residential IP addresses. The autoscaler has grown the fleet tenfold and the search cluster is saturated.

Real customers see timeouts, and the cloud bill for the day has already tripled. How do you respond now, and what do you change so the next scraping or bot spike does not hurt customers or cost this much?

First we confirm it is automated traffic by its request mix, session behaviour, fingerprints and network origins, because per-IP limits fail against residential proxy networks. Then we respond at the edge with bot management, challenges and rate limits per session or fingerprint, cap autoscaling at an agreed maximum, shed unauthenticated search before checkout and logged-in traffic, and serve cached search and prices to anonymous users. Afterwards we make expensive anonymous endpoints cheap and cacheable, consider an official feed for legitimate aggregators, and add alerts on traffic mix and cost per hour with an agreed bot-spike runbook.

Why this question is asked

Not every traffic spike is good news. Price scraping by competitors and aggregators is common in retail, and modern scrapers rent hundreds of thousands of residential IP addresses so that each one looks like an ordinary home user. The autoscaler cannot tell the difference: it happily grows the fleet tenfold to serve the bots, real customers time out anyway, and the cloud bill triples. Interviewers ask this scenario to see whether a senior engineer can recognise automated traffic, protect customers and the budget at the same time, and remove the incentive. In this answer, we will confirm what the traffic is, respond at the edge, protect the core and the budget, reduce the value of scraping, and set up the alerts and runbook for next time.

1A Quick Recap of Why This Spike Is Different

Traffic grew from 5,000 to 75,000 requests per second over 20 minutes, almost all on product search and price endpoints. Real shoppers have a mix: they load pages, images and scripts, sign in, add items to carts and check out. A load made almost entirely of search and price calls is a strong hint that something is collecting data.

Residential proxy networks route requests through real home connections, so traffic comes from hundreds of thousands of ordinary-looking IP addresses, each sending only a few requests. A rate limit of, say, 100 requests per minute per IP will never trigger. That is why the usual first defence did nothing here.

2Confirming It Is Automated Traffic

We look at several signals together. The request mix: search and price calls without the static assets, images and scripts a browser always loads. Session behaviour: no logins, no carts, uniform paging through results, perfectly regular timing between requests. User agents that claim to be a browser, but TLS and HTTP fingerprints, such as the JA3 or JA4 hash of the TLS handshake and the order of HTTP headers, that do not match that browser. And network origins: many requests from known proxy provider ranges.

No single signal is proof, but together they usually separate scrapers from customers clearly. We confirm by checking a sample of suspected sessions by hand before taking strong action, because blocking real customers during an incident would add to the damage.

Signals that separate scrapers from shoppers
SignalReal shopperScraper
Requests per page viewPage, images, scripts, APIOnly search and price API
Session actionsLogin, cart, checkoutUniform paging, no cart
TLS and HTTP fingerprintMatches the claimed browserLibrary fingerprint, browser user agent
TimingIrregular, human pausesRegular intervals
Network originHome and mobile networksResidential proxy ranges

3Responding Now at the Edge

The response belongs at the edge, the CDN or web application firewall, so the traffic never reaches our services. We enable bot management rules, or write WAF rules matching the fingerprints and behaviour we found. Suspicious sessions get a challenge, a check that real browsers pass silently and simple scripts fail. Rate limits switch from per IP to per session, per fingerprint or per token, which residential proxies cannot spread out as easily.

Throughout, we watch real conversion: orders per minute, add-to-cart rates and checkout success. If a rule is blocking customers, conversion drops, and we loosen it. The aim is to remove the bots, not to win against every one of them in the first hour.

4Protecting the Core and the Budget

While edge rules take effect, we protect what matters most. First we cap autoscaling at a maximum agreed with finance; the fleet is already ten times its normal size and growing it further mainly funds the scrapers. Then we prioritise traffic: checkout and logged-in users first, anonymous search last. When the search cluster is saturated, it is better to shed anonymous search requests with a fast 429 than to let checkout time out.

Finally, we serve anonymous users cached search and price results. Prices change rarely compared with how often they are read, so a cache time of a minute or two for anonymous visitors is harmless for customers and removes most of the load from the search cluster, whoever is asking.

Step throughOrder of protection during the spike
  1. Edge bot rules and challengesremove confirmed automated traffic
  2. Rate limits per session or fingerprintnot per IP
  3. Autoscaling capagreed maximum, stops funding the bots
  4. Priority sheddinganonymous search shed before checkout and logged-in users
  5. Cached search and prices for anonymous usersshort TTL, search cluster relieved

5 layers, from the top down. Step through them one at a time.

5Reducing the Value of the Attack

Scrapers come because the data is valuable and cheap to collect. We can make it cheaper for us to serve: anonymous search and price endpoints become cacheable at the CDN, pagination gets limits so one query cannot walk through the whole catalogue, and expensive filters require a signed-in session.

We can also ask who the scrapers are. Some are price comparison sites and aggregators that send us customers. Offering them an official feed or API, with terms and a rate limit, gives them the data at a fraction of the cost to us, and makes the remaining scraping easier to identify and block. Competitors who scrape aggressively will remain, but they now face cached data and edge rules.

6Afterwards: Alerts and a Runbook

This spike was noticed through timeouts and the bill. Next time it should be noticed through its shape. We add alerts on traffic mix, such as the share of API calls without matching page loads or a sudden fall in conversion per request, and on cost per hour, not just on load. An autoscaler growing tenfold should page someone.

And we agree a runbook with the security team: what counts as a bot spike, which edge rules can be enabled, who may enable stricter rules or challenges without waiting for approval, and the autoscaling cap. With that in place, the next spike is handled in minutes instead of hours.

7Follow-up questions

How do you measure whether your bot rules are blocking real customers?

Watch conversion and customer behaviour around every rule change: orders per minute, add-to-cart rates and checkout success for challenged and unchallenged traffic. Sample sessions that were blocked or challenged and check whether they had human behaviour, such as logins or past orders. Track challenge pass rates and support complaints. Many bot management tools can run a rule in log-only mode first, which shows what it would have blocked before it blocks anything.

Why not block the IP ranges of residential proxy providers?

Those addresses are real home connections, shared with ordinary customers. Blocking them by range would block many real shoppers. Fingerprints and behaviour target the automation itself rather than the network it hides behind.

Should the autoscaler have a maximum at all?

Yes. An unbounded autoscaler turns any abusive traffic into an unbounded bill and can also exhaust shared resources like database connections. The cap should be well above the largest legitimate peak and paired with an alert, so reaching it is a signal that something unusual is happening.

8Conclusion

In this answer, we handled a scraping spike from residential proxies. We confirmed it was automated through request mix, session behaviour, fingerprints and network origins, because per-IP limits cannot stop it. We responded at the edge with bot rules, challenges and per-session limits while watching conversion, capped autoscaling, shed anonymous search before customers and served cached results to anonymous users. Then we reduced the value of scraping with cacheable endpoints, pagination limits and an official feed, and added alerts on traffic mix and cost with an agreed runbook.

What to say in the interviewAbout 80 seconds aloud

Open with

First I would confirm it is automated, because the response depends on it. Almost all the traffic is search and price calls, so I would look for sessions with no static assets, no logins or carts, uniform paging, and TLS or HTTP fingerprints that do not match the browser the user agent claims.

Then, if they want more

Per-IP limits do not help, because residential proxies spread the traffic over hundreds of thousands of addresses. Then I respond at the edge: enable bot management or WAF rules for those fingerprints and behaviours, challenge suspicious sessions, and rate limit per session or fingerprint, while watching real conversion so we do not block customers.

At the same time I protect the core and the budget: cap autoscaling at a maximum agreed with finance, shed anonymous search before checkout and logged-in users, and serve cached search and price results to anonymous users with a short TTL.

Afterwards I would make expensive anonymous endpoints cacheable and paginated with limits, and consider an official feed for legitimate aggregators. And I would add alerts on traffic mix and cost per hour, not just load, and agree a bot-spike runbook with security, including who may turn on stricter edge rules.

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 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 "Real customers see timeouts, and the cloud bill for the day has already tripled. How do...": https://scrivio-interview-library.netlify.app/architecture/high-availability/2ef9399f50/