Urgent.News

What's breaking now, across thousands of outlets.

Tech

Serving a heavy model without blowing up the server bill

An AI model is heavy and demanding. If served without precaution, it blows up response times and server costs. On a SaaS audio analysis that I designed and put online alone, it was necessary to keep it fast, secure, and economically sustainable. The hosting decision. I served the model on a server that I manage, with NGINX and automatic file cleaning, rather than on...

Translated from French Read in French

A developer has shared tips on deploying an AI model for an audio analysis SaaS while keeping costs and response times low. The model was hosted on a self-managed server with NGINX instead of a usage-based infrastructure to avoid escalating costs. Two key coding rules were identified: loading the model only once at startup using FastAPI's lifespan parameter, and running long calculations in a separate thread to avoid blocking the server.

This approach allowed for a rapid, secure, and economically viable service. The developer, Amine Affif, is a full-stack developer based in Paris.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Sec-Fetch-Site filters requests, but does not authorize users

Sec-Fetch-Site filters requests, but does not authorize users Security teams often need a cheap way to reject cross-site requests before a request reaches application code.

  • Sec-Fetch-Site indicates relationship between initiating site and requested resource origin
  • Header values include same-origin, same-site, cross-site, none
  • Sec-Fetch-Site does not authorize users or establish user identity

New K72 app helps Portuguese prepare 72-hour emergency kits for disasters

The app was created in Montijo by Carlos Batista, in coordination with this municipality's civil protection, but is intended for all Portuguese people and helps them assemble a "kit" for the first 72…

  • K72 app developed for Portuguese emergency kit preparation
  • App guides users in assembling 45 essential items
  • Provides family emergency plan and alerts feature

More from Tuesday 10 November →