DesignTheSystem/dev
HARD Distributed Infrastructure

Design Distributed Web Crawler Sync

Coordinate distributed URL frontier polling and storage for 10,000 pages/sec (60% writes). Use object storage for page bodies and separate fast deduplication filters.

Category & DifficultyDistributed Infrastructure · HARD
Traffic Profile10,000 RPS sustained, 13,000 RPS spike (40% reads / 60% writes)
Latency & Availability SLAp99 < 300 ms · 99.9% availability
Monthly Infra Budget$850/month

Scale, traffic & SLA targets

To pass in the DesignTheSystem simulator, your architecture must hold all four targets simultaneously across a 60-second load run (spiking up to 13,000 RPS):

Peak traffic10,000 RPS40% reads / 60% writes
Latency (p99)< 300 ms99th percentile target
Availability99.9%Max error rate 0.10%
Monthly budget$850/moPriced per component

Functional & non-functional requirements

Functional scope

  • Serve Distributed Web Crawler Sync at the traffic below.

Non-functional goals

  • p99 latency under 300 ms at the spike.
  • At least 99.9% of requests answered.
  • Costs no more than $850 a month.

Core challenge: Don't fetch the same page twice

The crawler finds far more links than it can fetch. Keep a fast 'seen it?' check in memory and a queue of pages still to fetch, shared by all crawler workers.

What breaks first?

Run the starting design first and look at what breaks. Frontier API reaches 1523% of its capacity at the spike. About 79% of requests fail. Open Full metrics to see which requests pile up there, and ask why that part gets so much traffic.

Key architectural trade-offs

  • A Bloom filter for the 'seen it?' check has a small, tunable false-positive rate (often set near 1%), so a few new URLs are wrongly treated as seen and skipped.

Starting architecture & how to practise

The simulator starts you with a baseline setup: Crawler Agents → Frontier API → Crawl DB (Pages + State). Run the baseline under 10,000 RPS to watch exactly which component saturates first, then add caching, queues, replicas, sharding or CDN until latency, availability and cost all turn green.

Common interview questions for Distributed Web Crawler Sync

What are the target SLA and scale numbers for Distributed Web Crawler Sync?

Design for 10,000 RPS sustained (spiking to 13,000 RPS) with a 40% read / 60% write mix, keeping p99 latency under 300 ms, availability at or above 99.9%, and infrastructure spend within $850/month.

What is the main architectural bottleneck in Distributed Web Crawler Sync?

The crawler finds far more links than it can fetch. Keep a fast 'seen it?' check in memory and a queue of pages still to fetch, shared by all crawler workers.

How can I verify my Distributed Web Crawler Sync architecture works under load?

Open the live simulator to wire up load balancers, caches, queues, replicas, or shards and run a 60-second traffic simulation that grades latency, error rate, and monthly cost automatically.

Recommended lessons before you build

Related Distributed Infrastructure problems