Prompt
Do I need serverless to run scheduled jobs cheaply?
Latest observation
Not necessarily.
If your main goal is cheap scheduled jobs, you do not need “serverless” specifically. You need a setup that is:
- idle most of the time
- easy to wake on a schedule
- cheap when not running
Good cheap options
1) Cron on a small VM
Run a tiny VPS and use cron, systemd timers, or a task scheduler.
- Pros: simple, predictable, usually very cheap
- Cons: you manage the server, patching, uptime, logs
This is often the cheapest and simplest if you already have a server.
2) Serverless scheduled functions
Use something like:
-
AWS Lambda + EventBridge
-
Google Cloud Functions / Cloud Run jobs + scheduler
-
Azure Functions timer trigger
-
Pros: no server management, scales down to near-zero, good for infrequent jobs
-
Cons: can get awkward for longer jobs, cold starts, platform limits, sometimes not actually cheapest at moderate/high frequency
This is best when jobs are short and infrequent.
3) Managed job runners / background task services
Examples vary by cloud/provider.
- Pros: less ops than a VM, more flexible than pure serverless
- Cons: can cost more, depends on provider
When serverless is a good fit
Choose serverless if your jobs are:
- short-lived
- run on a schedule like hourly/daily
- bursty or infrequent
- okay with cloud platform limits
When a VM is better
A cheap VM is usually better if your jobs:
- run for a long time
- need custom dependencies or background daemons
- need easy access to local state/files
- run often enough that serverless pricing becomes less attractive
Rule of thumb
- 1–10 short jobs/day: serverless is often convenient and cheap
- many jobs / long-running tasks: a small VM is often cheaper and simpler
- want zero ops: serverless
- want lowest cost with control: small VM + cron
If you want, I can help you compare serverless vs VPS for your exact job frequency and runtime.
Brands