#ai-engineering

Simulated model provider outage drill comparing retry policies, a circuit breaker and a fallback on 12,000 AI requests

Outage drill: a fallback saved 2,452 failed AI requests

When a model provider slowed down for 60 seconds in a simulation of 12,000 requests, a client with plain retries failed 18.5 percent of them and sent 1.62 provider calls for every user request. Adding

Fri Oct 23 2026 · 11 min read · 0 views

AI

AI agent jobs with checkpoints, comparing whole-job retries against per-step checkpointing on wasted model calls and duplicate side effects

Checkpointed agent jobs wasted 5x fewer model calls

Retrying a whole ten-step AI agent job after any failure wasted 4,143 model calls on 2,000 jobs, lost 75 jobs for good, and ran the email step twice for 273 jobs. Saving a checkpoint after each step

Fri Oct 23 2026 · 10 min read · 0 views

AI

Usage metering for AI SaaS billing, comparing a naive counter with a deduplicating ledger on 200,000 usage events

Duplicate usage events overbilled an AI SaaS bill by $115

A plain usage counter overbilled $3,266.75 of AI usage by $114.86, a 3.5 percent error, because the queue delivered 6,984 events twice. All 500 tenants were billed wrongly. Recording each event once

Fri Oct 23 2026 · 9 min read · 0 views

AI

Multi-tenant AI SaaS job queue where one noisy tenant delays other tenants, compared across four scheduling fixes

A noisy tenant made everyone wait 9.6 seconds: four fixes

In a shared FIFO queue, one tenant's burst of 2,000 AI jobs made every other tenant wait 9.6 seconds at the 95th percentile. A fair queue with no hard cap cut that to 27 milliseconds, and the noisy

Fri Oct 23 2026 · 10 min read · 0 views

AI

Cost model for an AI support chat in a SaaS product, comparing per-request cost across caching and model routing

What an AI chat request really costs: $0.017 or $0.0035

One request to an AI support chat costs $0.0168 on Claude Sonnet 5.5 when every call resends the full prompt. Two changes cut that to $0.0035: prompt caching and sending easy questions to a cheaper

Fri Oct 23 2026 · 10 min read · 0 views

AI