Skip to content

08. Inference Serving & Deployment ​

Engineering·Chapter 08

Throughput, TTFT and scaling out

In preparation

Where this chapter fits: inference cost is “how many tokens per second,” and experience is “how fast the first token arrives.” This chapter covers serving-engine scheduling, KV cache and memory accounting, batching and concurrency, quantization options, and the rate limiting, degradation and canary rollouts required for launch.

Questions this chapter answers ​

  • Build your own engine or use a managed service?
  • When throughput and latency conflict, where do you draw the trade-off line?
  • How far can quantization go while preserving accuracy, and how do you verify it?

Article index ​

Articles for this chapter are being written and will be linked here once published.

The topic backlog below shows what this chapter will cover.

Topic backlog ​

  • Continuous batching and scheduling: balancing throughput against tail latency
  • KV cache memory accounting and maximum-context estimation
  • Concurrency, queues and timeouts: the real sources of tail latency
  • Quantization option comparison and accuracy verification methods
  • Streaming output and time-to-first-token optimization
  • Rate limiting, degradation and canary rollouts
  • GPU selection and per-token cost accounting

OpenAIChat · Full-stack engineering for LLM-powered conversations and apps