Design Crawl Scheduling to Keep Bing's Index Fresh
Last updated: November 29, 2026
Quick Overview
Design the component of a web crawler that decides which URLs to fetch next and how often to recrawl each one, so a search engine's index stays fresh for pages that change while respecting each website's capacity.
Microsoft
November 29, 20260
0
0 solved
Design the component of a web crawler that decides which URLs to fetch next and how often to recrawl each one, so a search engine's index stays fresh for pages that change while respecting each website's capacity.
Bing crawls billions of pages but cannot refetch everything constantly, so the core problem is prioritization: discovering new URLs, estimating change rates, and being polite to hosts. Microsoft interviewers expect a scheduler design with clear prioritization signals, per-host rate limiting, and an understanding of IndexNow-style push notifications that let sites announce changes.
What the Interviewer Expects
- Separates URL frontier, scheduler, fetchers, and parsers
- Prioritizes by importance, estimated change rate, and freshness value
- Enforces per-host politeness and robots.txt
- Deduplicates URLs and near-duplicate content
- Integrates push signals (sitemaps, IndexNow) to reduce wasted crawls
- Defines freshness and coverage metrics
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you estimate a page's change rate from a handful of past fetches?
- A news site publishes 500 articles an hour: how do you get them indexed within minutes?
- How do you detect and avoid crawler traps such as infinite calendar pages?
- How would you split the crawl budget between discovering new pages and refreshing known ones?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: maintain a frontier of known URLs, choose what to fetch next, fetch, extract links, and feed content to indexing. Non-functional: billions of URLs, tens of thousands of fetches per second,...
High-Level Design
URLs come from link extraction, sitemaps, and push APIs like IndexNow. A URL Store keyed by normalized URL hash holds metadata: last fetch time, content hash, observed change history, importance s...