LLM cost per request tripled because retries and prompt bloat, not traffic
Lance_Saul_85 · reddit · 2026-07-21
A production team found its cost per request tripled even though traffic stayed flat — and the culprit was retries plus prompt bloat, not demand.
- After instrumentation, they discovered a timeout retry path that could fire three full-price calls for one request in some failure modes.
- They also found their shared system prompt had silently grown to nearly 4k tokens over months as people kept appending guardrails without removing older ones.
- The retry bug is fixed; the remaining problem is organizational: nobody wants to delete another person’s prompt line, so the team is asking for a more boring, automatic process to keep the prompt under control.
- The post is a practical reminder that LLM spend often comes from hidden engineering debt, not just usage growth.
More from Infra
- A shopping app demo ties OpenTelemetry, Dynatrace and Port into agentic ops — Pavan_Belagatti · 2026-07-21
- Nvidia Rubin is coming, pointing to the next AI compute platform — ezyang · 2026-07-21
- Tesla’s FSD v14 Lite is reportedly headed to 4 million older HW3 cars — MatthewBerman · 2026-07-21
- TSMC’s 3nm utilization reportedly tops 120% as AI demand drives a $190B capex cycle — tengyanAI · 2026-07-21
- Nativ brings local AI model running to Mac with a desktop app and localhost API — Simon Willison · 2026-07-21
- Octen says agent search now runs at 62ms P50 with only a 6ms P90 gap — aakashgupta · 2026-07-21