Prompt
What should I use for a backend that sits idle most of the day?
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
For a backend that’s idle most of the day, you usually want serverless or scale-to-zero so you’re not paying for an always-on server.
Good options:
-
Serverless functions
- AWS Lambda, Google Cloud Functions, Azure Functions
- Best when requests are intermittent and stateless
- Auto-scales down to zero
- Great for APIs, webhooks, scheduled jobs
-
Serverless app platforms
- Vercel, Netlify Functions, Cloudflare Workers
- Good for lightweight APIs and edge-friendly workloads
- Very low ops overhead
-
Container platforms with scale-to-zero
- Google Cloud Run, Azure Container Apps, AWS App Runner (less “zero” oriented depending on config)
- Better if you already have a Dockerized backend
- Nice middle ground between full serverless and a VM
-
Small VM / cheap instance
- Only if you need persistent connections, custom networking, or an always-running process
- But this means you pay even when idle
Rule of thumb
- Mostly idle + simple API → serverless functions
- Mostly idle + Dockerized app → Cloud Run / Container Apps
- Needs long-lived connections, background workers, or custom software → small VM
Important caveats
Serverless can be less ideal if you need:
- long-running requests
- in-memory state
- websockets / persistent connections
- very low-latency “always hot” performance
- complex background processing
If you tell me:
- your language/framework,
- expected traffic, and
- whether it needs a database or websockets,
I can recommend a specific setup.