Skip to content
StackDecode
System Design
20. System Design Case StudiesAnimated

Web Crawler

Fetch pages across the web politely.

The idea

A frontier queue of URLs, fetchers, a parser and a deduplication store.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Seed URLsURL frontierFetchersParserDedupContent store
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Start from seed URLs in a priority queue.

step:
1/4
at:
Seed URLs
1/10

The green dot is a request moving through the system.

Step by step

  1. 1Take a URL from the frontier
  2. 2Fetch it politely
  3. 3Parse and extract links
  4. 4Deduplicate and enqueue

Where it is used

Search and data collection.

Watch out for

Politeness, traps and duplicates.

Related