Design Rate Limits Against Product Page Scraping Bots
Last updated: November 29, 2026
Quick Overview
Design the protection layer that detects and limits bots scraping amazon.com product and offer pages at high rates, while keeping real shoppers, search engine crawlers and accessibility tools unaffected.
Amazon
November 29, 20260
0
0 solved
Design the protection layer that detects and limits bots scraping amazon.com product and offer pages at high rates, while keeping real shoppers, search engine crawlers and accessibility tools unaffected.
Scraping drives up infrastructure cost and powers competitors' repricers, so this is a realistic Amazon edge problem. The interviewer checks layered limits by different identities, behavioral signals beyond IP, and graduated responses rather than blunt blocking.
What the Interviewer Expects
- Choose identities to limit on: IP, subnet, session, device fingerprint, account
- Apply limits at the edge with sliding windows
- Add behavioral scoring for traffic that rotates IPs
- Use graduated responses: slow down, challenge, block
- Allowlist verified crawlers and measure false positives
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle many real users behind one carrier-grade NAT IP?
- How would you verify that a request claiming to be Googlebot is genuine?
- How do you evaluate whether a new rule hurts conversion?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: limit request rates per identity for product pages and offer APIs; challenge or block suspected bots; allow verified good bots. Non-functional: millions of page requests per second at the ...
High-Level Design
The CDN or edge layer (CloudFront plus WAF-like logic) runs a lightweight limiter per POP with sliding-window counters keyed by IP, /24 subnet, session cookie and a client fingerprint. Requests also p...