Question bank

No. 14 · Distributed infrastructure

Design a web crawler

Advanced45 minScheduling · Rate limiting · Sharding & partitioning · Message queues · Back-pressure · Estimation

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough reading

At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.

  1. Web Crawler (problem breakdown)

    Hello Interview · Evan KingArticleFull walkthroughFreeVetted

    Free, well-structured walkthrough: queue-based frontier, retries with backoff, per-domain politeness and robots.txt, dedup with hashes or Bloom filters, and the 10B-page throughput math. Assumes fetching is the bottleneck and skims rendering JavaScript.

    Link checked 2026-12-06

  2. Mercator: A Scalable, Extensible Web Crawler

    World Wide Web journal (author copy) · Allan Heydon, Marc NajorkPaperPaperFreeVetted

    The classic production crawler design: URL frontier with per-host queues for politeness, content-seen fingerprints, DNS caching and checkpointing. Older, single-cluster scale, but the components are exactly what interviewers probe.

    Link checked 2026-12-06

  3. RFC 9309: Robots Exclusion Protocol

    IETF / RFC EditorDocsBackgroundFreeVetted

    The actual robots.txt standard, including caching rules and what to do when the file is unreachable. Read sections 2.3 and 2.4 for crawler behaviour; it does not cover crawl rate.

    Link checked 2026-12-06

  4. Googlebot

    Google Search CentralDocsBackgroundFreeVetted

    Short look at how a real crawler presents itself: user agents, crawl rate considerations and how site owners verify it. Light, but grounds the politeness discussion in practice.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 1 of 1 links from the audited catalog kept

Every recommended link was kept.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Candidate reports

Catalog tags (unverified)

AmazonGoogleMeta (Facebook)StripeSnap

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions