Prompt
I'm building a low-volume production service and want pay-per-use compute; what should I pick?
Latest observation
Oct 26, 2026
OpenAI APIWeb search: off
For a low-volume production service, the best default choice is usually serverless compute—especially if your traffic is spiky, unpredictable, or mostly idle.
Good options
1) Serverless functions
Examples: AWS Lambda, Google Cloud Functions, Azure Functions
Pick this if:
- You want to pay only when requests run
- Your app can work in short-lived request handlers
- You don’t need a long-running process
- Traffic is low or intermittent
Pros
- Very cheap at low usage
- Scales automatically
- Minimal ops
Cons
- Cold starts
- Execution/time limits
- Not ideal for heavy background jobs or stateful connections
2) Container serverless
Examples: Cloud Run, AWS App Runner, Azure Container Apps
Pick this if:
- You want pay-per-use, but with more flexibility than functions
- Your service is a web API or small service in a container
- You want easier dependency management
Pros
- Still pay mostly for active use
- Easier to run standard web apps than functions
- Better fit for HTTP services and custom runtimes
Cons
- Slightly more complex than pure functions
- Can still have cold starts depending on settings
For many low-volume production services, this is the best balance.
3) Always-on small VM
Examples: DigitalOcean Droplet, EC2 t4g.small, Hetzner VPS
Pick this if:
- You need predictable latency
- Your service uses persistent connections
- You run a long-lived worker, queue consumer, or cron-heavy app
- You want the simplest runtime model
Pros
- No cold starts
- Full control
- Easy to debug
Cons
- You pay 24/7 even when idle
- More operational responsibility
Simple recommendation
- HTTP API / web service: choose Cloud Run or equivalent container serverless
- Very small request handlers: choose Lambda / Functions
- Need long-lived processes or sockets: choose a small VM
If you want the cheapest sensible default
- Cloud Run if you’re okay packaging your app in a container
- AWS Lambda if your app fits the function model and you’re already in AWS
If you tell me:
- your cloud provider preference,
- whether it’s an API, worker, or cron job,
- whether you need websockets/background tasks,
I can recommend the best exact option.