Start with a request you can repeat
Pick a real task such as classifying a support ticket. Save a few inputs, what a valid response looks like, and cases that should fail cleanly. Include an empty request, one that’s too large, and one that times out. Run those checks after every deploy.
If you call a hosted model, decide how you’ll handle rate limits, retries, and timeouts. If you host the model, measure how long it takes to load and how much memory it uses before choosing an instance.
Make staging use the same image
Pin the model version and application image. Put configuration references in Git and actual credentials in the runtime secret store. Keep the image you tested so you can promote it or roll back to it.
Use a startup probe for initialization and readiness to control traffic if you run on Kubernetes. Send a real inference request after startup to verify that the model responds.
Test the first request after idle
Run the same request on a warm instance, on a cold one, and during a short burst. Track p95 latency, timeout rate, and cost per successful request. For streaming, measure time to first token and time to complete the response. Check that hitting a request limit returns an error your app can handle.
Give the new version a little traffic
Start with internal callers or a small slice of production. Compare latency and errors with the previous release. Agree who can roll back and what would trigger it. Ask another engineer to find the logs and take the release out of service in a rehearsal, then save the steps they followed.
Originally published
Bring the API’s Dockerfile and one representative request. We’ll use Inframan to walk through a first rollout, check how it behaves after idle time, and show where the team would watch latency and errors before shifting more traffic.
Rehearse releasing your AI API
