LESSON 01 · Scope and budget

Define the crawl

Choose the purpose, coverage, freshness, and content types before drawing the pipeline.

SYSTEM VIEW

The crawl path

Diagram view
Fetches—
Bandwidth—
Raw bytes—

Watch a crawler turn seed URLs into pages and links, then count what 600 million fetches a month costs.

  1. A crawler starts from the Seed list, its starting URLs. The URL frontier holds URLs waiting to be fetched. The Fetch worker takes example.org/guide, downloads it from the Web host, extracts its links and sends useful new ones back to the frontier.

    What changed

    • Seed URLs in the frontier
    • example.org/guide fetched
    • New links scheduled
  2. For a search index, the output is parsed documents and metadata. An archive keeps the fetched bytes instead; Common Crawl, which publishes crawl snapshots, sits closer to the archive end. Decide the domains, content types, page count, retention and freshness first.

    In scope
    domains, content types
    Keep
    how many, how long
    Freshness
    how soon changes show

    What changed

    • Search index: documents
    • Page store: fetched bytes
    • Purpose sets what is kept
    • Seed list now in the URL frontier
  3. Capacity starts with attempts, not just stored pages. As an illustration, 600 million fetches a month is roughly 230 fetches a second on average over 30 days. Each attempt costs a request, whether or not its page is kept.

    Per month
    600 million
    Average
    about 230/s over 30 days

    What changed

    • 600 million fetches a month
    • About 230 fetches/s
  4. If pages average 150 KB, 230 fetches a second download about 35 MB a second, or about 280 Mbit/s. Over a month that is 90 TB of raw bytes, before anything is kept.

    Average page
    150 KB
    Download
    about 35 MB/s
    A month
    90 TB raw

    What changed

    • About 35 MB/s, 280 Mbit/s
    • 90 TB of raw bytes a month
  5. Keeping every fetch for five years would take 5.4 PB, 60 months of 90 TB. A search index storing only parsed text avoids it. Peak load, retries, redirects and recrawls add fetches, so the real budget is higher.

    Kept
    every fetch, 5 years
    Takes
    5.4 PB
    Adds more
    peak, retries, recrawls

    What changed

    • 5.4 PB to keep 5 years
    • Parsed text avoids it
    • Peak, retries, recrawls add more
  6. A general crawler must be polite and survive slow hosts, malformed responses, loops and changing rules, so it costs a lot to run for a narrow job. For data from three partner sites, a sitemap reader, a published API or a data feed is usually cheaper.

    Sources
    3 partner sites
    Read
    sitemap, API or feed

    What changed

    • Feed reader
    • Replaces URL frontier, Fetch worker, Page store
    • 3 partner sites

Space plays · ← → step · Home resets

THE IDEA

How it works

A crawler discovers pages by fetching seed URLs (its starting list), extracting links, and scheduling useful new URLs. For a search index, the output is a stream of documents and metadata for indexing; an archive may retain the fetched bytes instead. Common Crawl, which publishes crawl snapshots for anyone to use, sits closer to the archive end. Decide which domains and content types are in scope, how many pages to fetch, how long to retain them, and how quickly changes should appear.

Capacity starts with attempts, not just stored pages. As an illustration, 600 million fetches per month is roughly 230 fetches per second on average over 30 days. If pages average 150 KB, that is about 35 MB per second, or about 280 Mbit/s, and 90 TB of raw bytes each month. Keeping every fetch for five years would take 5.4 PB, which an index storing only parsed text can avoid. Peak load, retries, redirects, and recrawls increase the real budget.

A crawler must also be polite and robust: the public web contains slow hosts, malformed responses, loops, and changing rules. That makes one expensive to run for a narrow job. If you need data from three partner sites, a sitemap reader, a published API, or a data feed is usually cheaper than a general crawler.

DECISION POINT

A team asks for “a web crawler” but has not decided whether it is an archive or a search index. What do you ask first?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

Keep in mind

  • A crawl objective determines what to fetch, keep, and hand to consumers.
  • Estimate peak fetches, bytes, retries, and recrawls separately.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 2
RecallQUESTION 01

Which choice most changes what a crawler must store and emit?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 2 checkpoints answered correctly to complete this lesson.