Module 1 · Spending less on the same work · Lesson 2
Prompt caching as system design
Turning a per-request cache into a fleet-wide strategy, with layered prefixes, cache-aware scheduling, the arithmetic of cache lifetimes, and hit rate as a monitored objective.
By the end of this lesson you can
- Derive the break-even number of reads for a cache write, and use it to choose between 5-minute and 1-hour lifetimes
- Estimate hit probability from request arrival rates, and explain why per-case prefixes and shared prefixes need different strategies
- Design a layered prompt layout and breakpoint plan for a fleet of agents
- Schedule work so caches are warm when parallel or follow-up requests arrive
- Monitor cache hit rate per agent and diagnose drops