Design a batch inference API for large offline jobs

HardSystem design45 minSWEREPro outline

The question

Design an API where customers upload files with up to millions of prompts, and results are due within 24 hours at a lower price than the live API.

What the interviewer is looking for

  • Uses spare capacity and explains the economics
  • Job, shard and task model with retries
  • Idempotent processing and exactly-once results
  • Fair sharing across customers
  • Progress and partial results

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: design a batch inference API or token generation at very high request rates.

Reported in: customcareer.miami.edu

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