Performance and prompt caching

At scale, every second and every token counts. This course teaches architects how to make Claude applications faster, cheaper and more reliable.

Performance and Prompt Caching: Latency, Cost and Reliability at Scale

  • Duration: 1 day
  • Format: instructor-led, online or onsite, with hands-on labs
  • Level: advanced

Who should attend

  • Architects and senior developers
  • Platform engineers responsible for performance
  • Technical leads managing AI costs

Objectives

  • Measure latency, throughput and cost in Claude applications
  • Use prompt caching to reduce latency and cost
  • Choose models and settings that balance quality, speed and cost
  • Use streaming and batching where they fit
  • Design for reliability under heavy load

Course outline

  1. Performance metrics: time to first token, total latency, throughput and cost
  2. Model selection: matching Opus, Sonnet and Haiku to the task
  3. Prompt caching: how it works, cache breakpoints and cache lifetime
  4. Cache-friendly prompts: structuring prompts to maximize cache hits
  5. Streaming: improving perceived speed
  6. Batches API: non-urgent, high-volume processing
  7. Fewer tokens: shorter prompts, output limits and context management
  8. Reliability: timeouts, retries and fallback models
  9. Capstone lab: measure and optimize an existing application

Prerequisites

Claude API Fundamentals. Error Handling, Cost and Token Awareness is recommended.

Request a quote or a customized program: ask us about other Anthropic and AI topics, or a version tailored to your environment. Contact us for dates and prices.