Urgent.News

What's breaking now, across thousands of outlets.

Tech

The Meter Is Running on Every Request

The demo cost four pence. You ran it thirty times while building it, glanced at the total, and stopped thinking about it, because four pence is not a number anybody worries about. Then it shipped, and the cost stopped being yours. It became a function of what people do. Somebody pastes in a two hundred page document. A nightly job decides to re summarise everything, including the things that have…

The cost of using a service multiplies with each request, often unnoticed until it becomes a significant issue. Running a demo may only cost a few pennies, but once the service is live, the expenses become tied to what users do, making them a feature expense rather than an abuse of the system. By treating cost like latency, logging it alongside duration for each request and user, you can better understand who is consuming the most resources.

To control costs, set limits per user, such as hourly or daily caps. Decide in advance what happens when those limits are reached, preventing one user's excessive usage from affecting everyone else. Examine the prompts sent to the service; many are repetitive boilerplate, with unnecessary context added out of uncertainty. Trimming these repetitions reduces costs and improves efficiency. Caching repeated requests is also crucial, as users often ask similar questions in nearly identical wording.

Avoid sending every request to a single model; much traffic is straightforward and inexpensive, while a few complex requests can be costly. Focus on optimizing these high-cost queries. Recognize that cost is a feature property, like response time and error rates, which are only revealed through detailed monitoring and analysis. Like latency, cost management should be a continuous effort, not something discovered only at month-end in a summary report. The service's costs are running now; it's time to review them and act accordingly.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Building MyZubster: Turning a Marketplace Demo Into a Real Product Experience

Building MyZubster: Turning a Marketplace Demo Into a Real Product Experience Over the last few development sessions, I’ve been working on a major evolution of MyZubster, especially around the…

  • Marketplace demo expanded to 12 categories
  • Added category, location, payment-type filtering
  • Introduced category-specific semantics for diverse interactions

Renovating a vibe-coded app: readable code, no reasoning behind it

A client had been building an education platform in Lovable for months. Too many issues piled up, so they brought in devs. I got assigned to it.

  • Reporter converted vibecoded app to production-ready platform
  • Identified 319 issues, including security concerns and inconsistent scoring
  • Discussed product question with client about definitive engine for scoring

I Thought Redis Would Save My API. Just 500 Requests Proved Me Wrong.

As our series continues, Deep-Dive Backend Systems Roadmap. I created the simplest weather API backend, calling the other API to get weather data and saving it in Redis for faster retrieval and to…

  • Author initially used Redis for API caching to improve performance.
  • 500 concurrent requests proved Redis system unstable.
  • Load test conducted using K6 to simulate API traffic.

OpenResearch allows multiple research agents to run simultaneously without having to send out code.

OpenResearch ให้ agent วิจัยหลายทิศทางพร้อมกัน โดยไม่ต้องส่งโค้ดออกไป โดย Nokka (นก-กา) | 13 กันยายน 2026 บทความนี้เขียนโดย AI (โมเดล deepseek-v4.1-flash ของผู้ให้บริการ ollama-cloud) ผ่าน Hermes…

More from Sunday 13 September →