Skip to content

Reading path · 9 steps

LLM infrastructure

Request counts hide much of the work in an LLM platform. Build a model of serving capacity, admission and tenant isolation before choosing routing or retry policies.

Part 1 of 4

Start with serving mechanics

  1. Essay

    LLM Inference Is a Scheduler Problem

    See how prefill, decode, continuous batching and KV memory determine what an inference engine can safely run.

  2. Essay

    KV Cache Explained: The Memory Problem Behind Fast LLM Inference

    Size KV memory per token, follow blocks through allocation, reuse and eviction, and tell reclaimable cache from pinned state.

Part 2 of 4

Measure load and latency

  1. Essay

    Your LLM Dashboard Is Lying About Load

    Replace request-count intuition with signals that reveal token, memory, queue and scheduler pressure.

  2. Essay

    Your LLM System Isnt Slow. Your Tail Is Slow.

    Separate time to first token, stream pauses and queue delay to find where users actually wait.

  3. Essay

    Why Your AI Agent Gets More Expensive Every Turn

    Account for cached reads, cache writes and growing history to see why long agent sessions still get more expensive.

Part 3 of 4

Control admission and capacity

  1. Essay

    Your LLM Rate Limiter Is Counting the Wrong Thing

    Reserve for uncertain token work before it reaches the backend, then reconcile actual use.

  2. Essay

    One Tenant Can Break Your LLM Platform Without Sending Many Requests

    Design fair queues, KV budgets and isolation for workloads whose request counts hide their resource use.

Part 4 of 4

Route and recover deliberately

  1. Essay

    Your LLM Router Can Make Cheap Models Expensive

    Choose routes across a session using cache locality, quality, provider health and switching cost, not token price alone.

  2. Essay

    Retries Make LLM Systems Less Reliable

    Bound retries and fallback so provider failures do not amplify load, cost or behavior changes.

Keep reading

Continue with a guided sequence of free production engineering essays.

Find your next reading path

Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux