AI Engineering
/

Production & Reliability

Production & Reliability

Run AI features within latency, rate-limit, and cost budgets.

Start topic

Reason about latency, throughput, and rate limits, implement bounded retries, and set SLOs, rollout plans, and cost controls for an AI feature.

4 questions

Questions

Easy

Easy
Conceptual

1.5 h

Explain why a slow model provider raises concurrency and retry load, using latency, throughput, rate limits, deadlines, and a bounded response strategy.

Medium

Medium
Hands-on

3 h

Implement a pure, deterministic retry policy with attempt limits, capped jittered backoff, retry-after, and a deadline check, then fit it into an executor that handles cancellation, partial streams, and uncertain writes.

Hard

Hard
System Design

4 h

Design reliability controls for a multi-tenant AI assistant: SLOs and error budgets, quota-aware admission, fallback and cost reservations, staged rollout with a canary decision, rollback, and recovery.

Hard
Hands-on

4 h

Find why an SMS reply webhook sent duplicate texts, left some messages unanswered, and multiplied model calls under rate limits, timeouts, and redeliveries. Fix each defect with a regression test, then declare the release check for the fix.

What you will be able to do

  • Distinguish latency, throughput, and concurrency, and relate them with Little's Law
  • Explain what rate limits and quotas restrict, and how to respond when capacity is exhausted
  • Separate timeouts from deadlines, and explain why a timed-out write may still have succeeded
  • Count attempts versus retries, and explain how stacked retries amplify load
  • Judge whether a fallback or degraded response is acceptable and reported honestly
  • Compute an error budget and the cost per successful task
  • Classify failures by transience and replay safety before deciding to retry
  • Implement a pure retry policy with an attempt limit, capped exponential backoff, full jitter, and retry-after
  • Refuse a retry when the remaining deadline cannot fit the wait plus a useful attempt

Before you start

Suggested, not required.

Topic boundaries

This topic runs the application. Evaluation & Observability measures its quality, and Model Serving & Inference covers the runtime underneath.

Related on CodeSnatch