Two modes: offline batch (large jobs, cheap, results in hours) and online dynamic batching (requests grouped within a few milliseconds).
Offline: inputs in object storage, a job queue, workers sending requests under a concurrency limit, results and failures written to a store, retries with backoff, and an idempotency key per item so reruns do not duplicate work.
Online: a request queue plus a scheduler that groups requests by model and similar length; continuous batching in the serving engine (for example vLLM) adds new requests to the running batch at each decoding step.
Trade-off: bigger batches raise throughput but add latency, so set a max wait time and a max batch size.
Add priority queues, per-tenant quotas, and a dead-letter queue for items that keep failing.
Track queue depth, batch size, GPU utilization, and p50/p95/p99 latency.
Loading…