Ridgeline Huts is a non-profit hut network whose wardens file trail reports, and its trail-conditions assistant answers hikers’ questions from them. It works on a laptop, and you can already trace its cost and latency. Then August arrives: the busiest week of the year, model calls that time out, and a monthly budget that’s already half spent.
In this course, you’ll keep an AI feature like this one fast, affordable, and running for real users, and you’ll prove each change with a before-and-after number: pass rate, p95 latency, cost per thousand questions, or share of questions served.
You’ll learn how to:
- Pin the model you ship and upgrade it only when your evals say so
- Budget time for every request, with retries, a fallback chain, and a circuit breaker
- Cache prompts and answers, and expire cached answers when the reports change
- Keep cost within a monthly budget with per-hiker quotas and cheaper calls
- Find where the wait goes and make streamed answers feel fast, measuring each change
The first five sections mix text lessons and short videos, and each ends with an exercise you write in the browser, where automated tests check your code without an API key. You’ll also run the assistant and its traffic simulator on your own machine.
In the project, you replay a simulated August week against the assistant and show with traces and evals that the wardens’ targets for p95 latency, cost per thousand questions, and pass rate hold, on your model and on the provider’s next one. Then you explain your numbers to the AI mentor, take a quiz, and watch a short summary.
This course is for JavaScript developers who stream model answers from Express and who read evals, traces, and cost and latency reports. It’s the third course on the Evaluating and Shipping AI Features learning path, and the code download lets you start here directly. You’ll need Node 26 and an API key for OpenAI or Anthropic. Replaying the busy week costs about thirty dollars in API calls.
What’s Included:
- 26 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 2 Downloadable Resources
- Interactive Quiz to Check Your Progress
- 9 Hands-On Coding Exercises
- Q&A With JavaScript Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths: