Prompt
What should I use for a small production service that sits idle most of the day?
Latest observation
Oct 26, 2026
OpenAI APIWeb search: off
For a small production service that’s idle most of the day, you usually want something that can scale down automatically or charge only when used.
Best options
-
Serverless / functions
- Good if your service is request-driven and can be split into small handlers.
- Examples: AWS Lambda, Cloud Run, Azure Functions, Vercel/Netlify functions.
- Pros: very low cost when idle, easy scaling.
- Cons: cold starts, runtime limits, not ideal for long-lived connections or stateful apps.
-
Container platforms with scale-to-zero
- Good if you have a web app or API in a container.
- Examples: Google Cloud Run, Azure Container Apps, some Kubernetes setups with KEDA.
- Pros: can run standard containers, often scale to zero, simpler than managing servers.
- Cons: still some platform constraints and cold starts.
-
Small VPS / always-on container
- Good if you need persistent connections, background jobs, or simplicity.
- Examples: Hetzner, DigitalOcean, Linode, AWS Lightsail.
- Pros: predictable, straightforward, no cold starts.
- Cons: you pay even when idle.
My practical recommendation
- If it’s an HTTP API or web app: Cloud Run is often the best balance of cost and simplicity.
- If it’s event-driven and stateless: use serverless functions.
- If it needs always-on processes or WebSockets/long connections: use a small VPS.
If you tell me:
- the language/framework,
- whether it’s an API, web app, or worker,
- and whether it needs a database or persistent connections,
I can recommend a specific setup.