Turn a single-threaded crawler into a concurrent one

MediumConcept20 minSWEREPro outline

The question

Your crawler works but fetches one page at a time and most of its time is spent waiting on the network. Make it fetch many pages at once.

Walk me through the design and the bugs you would watch for.

What the interviewer is looking for

  • Recognises the work is I/O bound
  • Chooses threads or async with a reason
  • Protects the shared visited set and counters
  • Knows how to stop cleanly
  • Keeps per-host politeness

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Anthropic question type: write a web crawler, then make it multithreaded, then filter what it returns.

Reported in: customcareer.miami.edu

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Anthropic question.