
You are building a service that needs to send HTTP requests to a large number of URLs (for example, a simple web crawler or data fetcher). The naive implementation processes URLs sequentially in a single thread, so total runtime is long.
The interviewer asks two follow-up questions:
Describe a high-level design that:
You do not need to provide code, but clearly explain the main components (threading model, queues, rate limiting, etc.) and the trade-offs of your approach.
Login required