Playground · Medium line · Station M9

Web crawler

Crawl 4,000 pages a second from a frontier queue, skipping duplicates, and keep a month of pages.

You're building a search engine for Indian-language websites. The crawler must fetch 4,000 pages a second, never fetch the same page twice in a day, and never hammer one small website. Thirty days of pages must be kept for indexing.

Page fetches
4,000/s
Frontier updates
4,000/s
Crawl status checks
100/s
Budget
$1,500/mo
Speed
under 300 ms
Must
Survive a crash

Reported in interviews at Amazon, Google, Facebook, Atlassian