Skip to content
Artwork for Software Architecture Insights
Software Architecture Insights · Tuesday · 11 min

Your Function Call Was Free. This One Isn't.

You called that function a thousand times in a loop and never thought about it. Now the same call goes to an AI model. It takes a couple of seconds, and it sends you a bill. In this episode, Lee goes past his article "Your Function Call Was Free. This One Isn't." into the places where inference costs bite hardest. In this episode: Why an AI call is the next version of the network call Model routing, and how the prototype makes the decision when nobody else does Agents with no step limit, and what a stuck agent costs The one question to add to every design review Caching on meaning, and why its threshold is a correctness decision Latency, the other half of inference economics How your AI bill doubles without anyone shipping code Links: Read the original article The AI-Native Architecture series Episode 16: You're at Level 2 and You Think You're at Level 4 Get the SAI newsletter Atchison Academy courses

0:00-11:03

transcript

No transcript — this publisher did not publish one.

show notes

You called that function a thousand times in a loop and never thought about it. Now the same call goes to an AI model. It takes a couple of seconds, and it sends you a bill.

In this episode, Lee goes past his article "Your Function Call Was Free. This One Isn't." into the places where inference costs bite hardest.

In this episode:

  • Why an AI call is the next version of the network call
  • Model routing, and how the prototype makes the decision when nobody else does
  • Agents with no step limit, and what a stuck agent costs
  • The one question to add to every design review
  • Caching on meaning, and why its threshold is a correctness decision
  • Latency, the other half of inference economics
  • How your AI bill doubles without anyone shipping code

Links:


links5

more episodes

All episodes