Running LLM features in production
Running LLM features in production: tracing, budgets, caching, guardrails, versioning, reliability, release.
11 skills · 4 stages each
Skills
- Tracing and observability for LLM featuresFor engineersStart hereRecording every model call, tool call and retrieval step as spans with OpenTelemetry GenAI conventions, so a wrong, slow or costly answer can be traced to its causeneeds: Your first API call110 questions
- Cost and latency budgetsFor engineersSetting a cost and latency budget per LLM feature, measuring time to first token, p95 latency and cost per successful task, and cutting both without losing qualityneeds: Tracing and observability for LLM features110 questions
- Caching strategies for LLM appsFor engineersChoosing between provider prompt caching, exact-match response caches, semantic caches and tool-result caches, and keeping them from serving stale, leaked or wrong answersneeds: Tracing and observability for LLM features110 questions
- Guardrails for LLM featuresFor engineersInput and output checks, moderation, policy classifiers and guardrail tools, layered with tool limits and approvals, and measured for both bypasses and false blocksneeds: Tracing and observability for LLM features110 questions
- Prompt and model versioningFor engineersKeeping prompts and model settings as versioned code, rolling changes out in stages, recording which version served each request, and handling provider model deprecationsneeds: Tracing and observability for LLM features110 questions
- Reliability patterns for LLM callsFor engineersFallback models and providers, timeouts for long and streamed generations, circuit breakers, idempotent retries for side effects and graceful degradation during outagesneeds: Tracing and observability for LLM features110 questions
- Releasing LLM featuresFor engineersFeature flags, canary cohorts, launch readiness reviews, post-launch monitoring of quality, cost and abuse, and kill switches that turn a feature off without a deployneeds: Tracing and observability for LLM features110 questions
- The data flywheel for LLM featuresFor engineersTurning production traces and user feedback into labelled failure cases and new eval cases, then closing the loop with a measured fix, while respecting consent and privacyneeds: Tracing and observability for LLM features110 questions
- Incident response for LLM featuresFor engineersOn-call, runbooks, regression triage, postmortems and user communication when an LLM feature fails, drifts in quality or produces harmful outputneeds: Tracing and observability for LLM features110 questions
- Capacity, rate limits and throughputFor engineersPlanning LLM traffic against provider rate limits, sharing quota fairly across tenants, splitting traffic lanes, and deciding when reserved capacity pays offneeds: Cost and latency budgets110 questions
- Operating agents in productionFor engineersRun budgets, run-level monitoring, stuck and runaway runs, human escalation queues and audit trails for agents that take actions on their ownneeds: Tracing and observability for LLM features110 questions
Scenarios using this domain
Where to study
- Timeouts, retries and backoff with jitter (AWS Builders' Library) (opens in a new tab)ArticleFree
How to choose timeouts, cap retries and add jitter so retries do not pile onto a struggling service.
- Making retries safe with idempotent APIs (Amazon Builders' Library) (opens in a new tab)ArticleFree
The client-token pattern that makes a retried request produce one effect, not two.
- Circuit Breaker (Martin Fowler) (opens in a new tab)ArticleFree
The closed, open and half-open states in one short page.
- LiteLLM proxy: fallbacks, retries and timeouts (opens in a new tab)DocsFree
Real configuration for fallback chains, retries and timeouts across LLM providers.
- Handling Overload (Google SRE Book) (opens in a new tab)BookFree
Load shedding and criticality: which requests to drop first when capacity runs out.
- Idempotent requests (Stripe API reference) (opens in a new tab)DocsFree
A production API that uses idempotency keys, including how replayed requests behave.
- Circuit Breaker pattern (Azure Architecture Center) (opens in a new tab)ArticleFree
When to use a breaker, how half-open probing works and what to log.
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Explains why agents need stopping conditions, checkpoints and human review, and when to keep a design simple.
- How we built our multi-agent research system (Anthropic) (opens in a new tab)ArticleFree
Production lessons on tracing agent runs, resuming from errors and the cost of long agent runs.
- Semantic conventions for GenAI agent and framework spans (opens in a new tab)StandardFree
The standard span names and attributes for recording agent invocations and tool calls.
- A practical guide to building agents (OpenAI) (opens in a new tab)ArticleFree
Covers run limits, guardrails and when an agent should hand control back to a human.
- OWASP Top 10 for LLM Applications (opens in a new tab)StandardFree
Names excessive agency and unbounded consumption, the risks that budgets, queues and audit trails control.