Design an image crawler for unlimited URLs
AtlassianSoftware Engineer · OnsiteLast updated
This question evaluates a candidate's ability to design scalable, fault-tolerant distributed systems for web crawling, covering competencies in concurrency, queueing and scheduling, deduplication, storage architecture, and observability.
Design a service that crawls images starting from a set of root URLs.
Requirements:
- Input: one or more root URLs.
- Crawl pages, discover links, and download image resources.
- Support unlimited number of root URLs and unlimited crawl depth.
- Must handle failures (network errors, timeouts, crashes) and avoid re-crawling the same URL excessively.
- Discuss storage for downloaded images and metadata.
Deliverables:
- High-level architecture (components, data flow).
- Queue/scheduler design and politeness (per-host rate limiting).
- Deduplication strategy.
- DB schema for crawl state and results.
- Failure/retry model and monitoring.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.