1/41
Part 1 of 7 · The batch APILearn

Review a design doc for a batch sampling service

Some design rounds hand you a finished design instead of a blank page. The interviewer shares a doc and says:

A teammate wrote this design for our batch sampling service and wants a review before it goes to architecture review. Read it, then give me your review: what's wrong, how bad each problem is, and what you'd change. We have about 45 minutes.

The doc opens like this:

Batch Sampling Service: design doc, draft v0.3

Customers upload a file of sampling requests and get results within 24 hours at half the interactive price. Batch work runs on the same GPU pools as interactive traffic, so it costs us almost nothing extra.

It goes on for a page: the API, two tables, seven steps from submit to completion, failure handling, deploys, capacity and monitoring. Every part of it works on the happy path.

You don't review it yet. First you build a model of a batch service good enough to notice what's missing: what a batch API promises, the pieces from submit to results, how many GPUs it takes, how it shares GPUs with people, and how it handles failure and overload. The lesson ends on a mock interview with follow-ups, asked in the order a 45-minute review runs.