Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

  1. AI Academy
  2. /
  3. Path 4
  4. /
  5. Scaling AI Systems
AdvancedFree coursePath 4 · Production AI at Scale · Part 3 of 4

Scaling AI Systems

Keep a fleet of agents fast and available under real load: rate limits, flow control, retries, backpressure, caching, failover, latency budgets, load tests and capacity plans.

2 modules · 7 lessons~18 hoursUpdated 2026-10-30Certificate included

See the curriculum
  • Lessons7
  • Quizzes7
  • Sources44
  • Of study~18h

About this course

About this course

What changes when one agent becomes thousands of model calls a minute across many customers and cases. The first module works inside a provider's limits: how RPM, ITPM and OTPM are enforced and read, client-side concurrency and token-bucket limiters, retries that don't turn a blip into an outage, and queues that absorb the month-end rush. The second module makes the fleet fast and sturdy: latency budgets per agent step, response and semantic caching (and where semantic caching is unsafe for case-specific work), failover across Claude on Anthropic, Bedrock and Google Cloud, and load testing against a mock model server, ending in a capacity plan built on queueing theory. Every number is recomputed in Python, every claim is tied to docs or papers, and every lesson has exercises you run with Claude.

About the running example

The examples follow a fictional property-law (conveyancing) firm in England and Wales and the other firms on the same platform, including the month-end rush of completions. It's a case study, chosen because its documents are long, structured and high-stakes. You don't need a legal background, and the same patterns apply to contracts, insurance claims, invoices, support tickets or patient records. In the lessons, a matter is one client's case and a solicitor is the lawyer who signs work off.

Outcomes

What you'll learn.

  1. 1Compute which provider limit (RPM, ITPM or OTPM) binds a workload, including the effect of prompt caching, and read the rate-limit headers to prove it
  2. 2Implement token-aware client-side limiters and concurrency control in async Python, shared across workers and fair across customers
  3. 3Design retry policies with jitter, retry budgets and deadlines that recover from 429 and 529 errors without amplifying an overload
  4. 4Absorb load spikes with priority queues, admission control, load shedding and batch processing, and compute backlog and drain times
  5. 5Set a latency budget per agent step and meet it with streaming, parallel tool calls, prompt caching and prefetching, and decide where response or semantic caching is safe
  6. 6Load test an agent fleet against a mock model server with replayed traces, and produce a capacity plan from Little's law, utilisation and tail-latency targets
Curriculum

2 modules, 7 lessons.

8h 55m of lessons

  1. Module 1 · 4 lessons · 4h 55m

    Throughput under limits

    The provider's limits, the client-side controls that keep you inside them, the retry policies that survive errors, and the queues that absorb spikes.

    1
    1. 1Rate limits and quotasHow model providers ration capacity (RPM, input and output tokens per minute, usage tiers, spend caps and acceleration limits), how the Claude API enforces and reports them, and how to compute which limit binds your fleet before it binds in production.1h 10m7-question quiz6 sources
    2. 2Concurrency and flow controlSize how many model calls to keep in flight with Little's law, build a token-aware limiter in async Python, share it across workers, adapt it to what the provider tells you, and keep one customer's backlog from starving the others.1h 15m7-question quiz6 sources
    3. 3Retries, backoff and overloadClassify every failure a model call can produce, retry only what can succeed, with capped exponential backoff, jitter, deadlines and retry budgets, and avoid the retry storms that turn a ten-second provider blip into a long outage.1h 15m7-question quiz6 sources
    4. 4Backpressure, load shedding and batchingWhat to do when demand exceeds capacity for hours, not seconds. Compute backlog and drain time, order work by criticality with aging, admit or shed at the edge, push back on producers, and move deferrable work into batches.1h 15m7-question quiz6 sources
  2. Module 2 · 3 lessons · 4h

    Latency, resilience and capacity

    Make each agent step fast, serve some answers without the model, survive a provider's bad day, and prove the whole fleet holds up under month-end load.

    2
    1. 5Latency engineering for agentsWhere an agent turn's seconds go (queueing, time to first token, thinking, generation and tools), how to set a latency budget per step, and the levers that move each term, from streaming and parallel tool calls to cache pre-warming, prefetching and speculation.1h 15m7-question quiz7 sources
    2. 6Response caching and failoverServe some answers without calling the model, exactly or by similarity, and know why similarity caching is unsafe for case-specific questions. Then keep the fleet running through provider overloads and regional incidents with Claude on several platforms, without a cold-cache stampede on the fallback.1h 15m7-question quiz7 sources
    3. 7Load testing and capacity planningProve the fleet holds under month-end load by replaying recorded traces against a mock model server, then turn the measurements into a capacity plan with Little's law, utilisation, burstiness, Erlang C and pooling, and decide what changes as customers and cases grow.1h 30m7-question quiz6 sources
Capstone

Month-end readiness for an agent fleet

Build and prove the dispatch layer for three deadline-day agents serving five synthetic customers, against a mock Claude API on two platforms. A token-aware fair limiter, a retry policy with budgets and breakers, a priority admission queue with a batch path, latency and caching work, warm-standby failover, and a month-end load test that ends in a capacity plan.

Open the project brief
Certificate · free

Finish it. Get certified.

Complete every lesson of Scaling AI Systems and you get a certificate with your name on it. Free, like the course.

  • A public page with a certificate ID anyone can check
  • Download it as a PDF
  • Add it to LinkedIn in one click
It also counts towards the Production AI at Scale path certificate, for finishing all 4 courses in Path 4.
Sample
FAQ

Scaling AI Systems, answered.

Is Scaling AI Systems free?

Yes, for everyone: all 7 lessons, 7 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.

Do I get a certificate?

Yes. Finish every lesson of Scaling AI Systems and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.

How long does Scaling AI Systems take?

About 18 hours: 2 modules and 7 lessons, at your own pace. Your progress is saved to your account, on every device.

What do I need before I start?

Infrastructure for Agents, especially the lessons on queues and schedules, and AI gateways. LLMs for Engineers, especially the lesson on context windows, KV cache and caching. Senior backend experience: HTTP, async Python, queues, Redis and load balancing. Recommended alongside LLM Cost Engineering, which covers the cost side of every lever here.

Before you start

Prerequisites

  • Infrastructure for Agents, especially the lessons on queues and schedules, and AI gateways
  • LLMs for Engineers, especially the lesson on context windows, KV cache and caching
  • Senior backend experience: HTTP, async Python, queues, Redis and load balancing
  • Recommended alongside LLM Cost Engineering, which covers the cost side of every lever here
Path 4

More in Production AI at Scale.

See the whole path
Next in Production AI at Scale · Course 4LLM Cost EngineeringKnow what each case costs in tokens, then cut that cost with caching, trimming, batching, routing, distillation and self-hosting, without losing quality.
  • AdvancedAI agents · Infrastructure

    Infrastructure for Agents

    Run a fleet of agents in production: compute, sandboxes, durable workflows, queues, state, tenant isolation, gateways and safe delivery.

    8 lessons ~16hFree
  • AdvancedAI agents · Security

    Production Agent Systems

    Take an agent from working demo to a system you can run for months: architecture, security, compliance, observability and safe change.

    6 lessons ~18hFree