Design web crawler for 1000 devices

Quick Overview

This interview question evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer for Design web crawler for 1000 devices states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Design web crawler for 1000 devices

Company: Lyft

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

##### Question Design a web crawler that starts from a single link and distributes crawling across 1,000 different devices; address coordination, load balancing, fault tolerance, and scalability follow-ups

Quick Answer: This interview question evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer for Design web crawler for 1000 devices states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

|Home/System Design/Lyft
Lyft logo
Lyft
Aug 4, 2025, 10:55 AM
hardSoftware EngineerOnsiteSystem Design
24
0

Design web crawler for 1000 devices

Distributed Web Crawler: Design for 1,000 Devices

Context

Design a production-ready web crawler that starts from a single seed URL and scales crawling across 1,000 heterogeneous devices. The crawler should respect robots.txt and per-host politeness constraints, deduplicate URLs/content, and persist pages and metadata.

Requirements

  • Start from one seed link and discover new URLs recursively.
  • Distribute crawling across ~1,000 devices.
  • Address:
    1. Coordination of work and state
    2. Load balancing and throttling
    3. Fault tolerance and recovery
    4. Scalability and typical follow-ups
  • Assume an internet-scale target with diverse domains and varying latency.

Deliverables

  • High-level architecture and data flow
  • How URLs are assigned, deduplicated, and scheduled
  • Policies for robots.txt, per-host rate limits, retries
  • Storage approach for frontier state and fetched content
  • Specific mechanisms for coordination, load balancing, fault tolerance, and scaling

Clarifying Questions to Ask Guidance

  • Clarify users, core use cases, read/write patterns, scale, latency, availability, and data retention.
  • State explicit assumptions before making sizing or architecture decisions.
  • Prioritize the functional path first, then address reliability, security, observability, and rollout.

What a Strong Answer Covers Guidance

  • A scoped requirements summary with concrete non-goals and success metrics.
  • API, data model, architecture, consistency, capacity, and operations.
  • Reasoned trade-offs among simple and scalable designs, including bottlenecks and failure modes.
  • A validation, monitoring, migration, and launch plan appropriate for the risk level.

Follow-up Questions Guidance

  • What breaks first at 10x traffic or data volume?
  • How would you degrade gracefully during dependency failures?
  • What metrics and alerts would prove the design is healthy after launch?

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...