Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Web Crawler

Design a scalable, polite crawler that discovers, fetches, deduplicates, and stores public web pages.

Problem statement

Design a web crawler that begins from approved seed URLs, discovers allowed links, schedules and fetches public pages politely, deduplicates URL and content work, persists crawl results, and safely resumes after failures.

The source provides only the explicit high-level prompt ‘Design Web Crawler’; it does not specify scope, scale, freshness, politeness, content types, storage, or result semantics, so state those as assumptions rather than source facts.

What to build

  1. Authorized users can submit seed URLs, scope, priority, and bounded crawl or recrawl policies.
  2. The frontier schedules only allowed URLs while enforcing robots policy and coordinated per-host limits.
  3. Workers safely fetch supported pages, persist outcomes, and discover bounded outgoing links.
  4. The platform normalizes URLs and detects duplicate URL or content work without losing crawl provenance.
  5. Users and operators can inspect crawl status, fetch metadata, stored content references, and failure reasons.
  6. The system retries transient failures within a budget and can resume or recrawl without stale workers corrupting newer state.

At scale

  • Source fact: the Amazon onsite high-level design prompt was ‘Design Web Crawler’.
  • No crawl scope, numeric throughput, freshness, politeness, content type, storage, or result-delivery requirement was supplied; candidates must state those assumptions.
  • Authoring assumption for practice: crawl only approved public HTTP and HTTPS pages, obey robots policy, and coordinate per-host concurrency and delay.
  • Authoring assumption for practice: large response bodies live in object storage, URL and fetch state are durable, and work delivery may occur more than once.
  • Authoring assumption for practice: authenticated pages, browser automation, form submission, and arbitrary binary mirroring are out of scope for the first version.