Scale-to-zero can reduce the running compute of an idle service. Whether it reduces your total bill depends on how long instances remain billable, what resources stay provisioned and how your workload behaves when a new instance starts.
This guide shows how to estimate the opportunity without treating low CPU utilization as money that can automatically be recovered. Public Rapids pricing and documentation were checked on 2 November 2026. The examples are transparent calculations, not a customer cost study or a production benchmark.
What scale-to-zero changes
For a traffic-driven HTTP service, the platform can remove running replicas when there is no demand, then start capacity for later traffic. The first request can encounter initialization and dependency-connection work. The precise idle policy, startup path and billable intervals depend on the product and configuration; do not assume every request is followed by a fixed five-minute window.
A sleeping web service does not delete its database, object storage or domain. Those resources and the control paths around them can still cost money. Requests, builds, logs and transfer can also have their own meters. “Zero running replicas” and “zero total bill” are different observations.
Idle CPU is not the same as avoidable cost
A service using 5% average CPU may still need its allocated memory, open connections or continuous availability. A single VPS may host several services; stopping one of them does not save the whole server charge unless you can resize or remove that server. Conversely, a lightly used isolated staging environment can offer a useful saving if its persistent dependencies are also accounted for.
Measure at least:
- Allocated instance time and replica count, rather than CPU utilization alone.
- Busy windows, idle gaps, request concurrency and any minimum replicas.
- Cold and warm latency, including failures and timeout behavior.
- Peak memory, dependency connection count and persistent data needs.
- Transfer, builds, logs, storage and services that remain running.
Current Rapids pricing: profiles are not spending caps
The current public Rapids rates are €0.054 per vCPU-hour, €0.009 per GiB-hour and €0.15 per million requests. Compute is metered in seconds. Traffic, separately billed storage and other resources are additional; VAT and any pricing contract affect the final bill.
Paid-profile monthly allowances are published as 250,000 vCPU-seconds, 500,000 GiB-seconds and two million requests. Use the remaining allowance in the relevant billing scope, rather than assuming every container receives a new full allocation. The Free profile has its own resource/allowance behavior, and deployment requires a payment method.
Micro, Small, Medium and Large are resource configurations. The former €5, €10, €20 and €40 “maximum monthly cost” table was incorrect and must not be used for budgeting. Scaling to additional replicas can increase metered consumption. Check profile/team quotas, usage and alerts; none of those should be presumed a contractual hard bill cap.
The break-even calculation
Start with a complete always-on baseline you can actually avoid, then compare the equivalent service cost.
serverless_total = CPU_cost + memory_cost + request_cost
+ transfer + persistent_resources + other_fees
avoidable_baseline = current_cost_that_can_be_removed
saving = avoidable_baseline - serverless_total
resource_cost_before_allowances = billed_instance_hours
× (billed_vCPU × CPU_hour_rate + billed_GiB × memory_hour_rate)
The resource quantity and interval must match the provider's billing contract. Concurrency can let requests share instance time; multiple replicas can increase it. Startup, idle/minimum capacity and billable rounding can matter. Do not infer an exact bill from requests × average response time without checking those effects.
Illustrative duty-cycle scenarios
Assume one metered vCPU and 0.5 GiB, no parallel replicas, and the current Rapids public compute rates. Each billed instance-hour costs €0.0585 before allowances. The intervals below are inputs to the calculation, not claims that the scheduler will produce those exact intervals. Requests, transfer, persistent resources and tax are excluded.
| Illustrative measured billed time | CPU-seconds | GiB-seconds | Compute before allowance | Compute with full published allowance unused |
|---|---|---|---|---|
| 10 hours/month | 36,000 | 18,000 | €0.585 | €0.00 |
| 88 hours/month | 316,800 | 158,400 | €5.148 | €1.002 |
| 300 hours/month | 1,080,000 | 540,000 | €17.55 | €12.55 |
| 720 hours/month | 2,592,000 | 1,296,000 | €42.12 | €37.12 |
For 88 hours, CPU after allowance is (316,800 − 250,000) × €0.000015 = €1.002; memory remains within the assumed 500,000 GiB-second allowance. If those allowances were already consumed by other work, compute is €5.148. Add request fees and the other items before comparing with your server.
Suppose a removable always-on environment costs €10/month and all other costs really are equal. Before allowances and requests, €10 / €0.0585 gives about 170.94 billed hours. That is a hypothetical break-even point for these inputs, not a current VPS plan quote or a universal threshold. Changing memory, replicas, resource metering, dependencies or allowances changes the result.
Where to look for savings
Development and staging
An environment used during a few working sessions is a candidate if it can start on demand and its database state survives elsewhere. Record actual instance time, including activity from health checks, bots, uptime probes and background polling. If the database remains on its original plan, keep that charge in both sides of the comparison.
Internal tools and low-traffic APIs
Admin panels and occasional endpoints can fit when users tolerate the observed startup behavior. Check authentication redirects, dependency reconnects and timeouts after an idle period. A small number of heavy requests can still require substantial memory, so use representative payloads.
Webhook receivers
A receiver can be quiet between bursts, but it must still acknowledge within the sender's deadline and avoid duplicate effects on delivery retries. Persist accepted work durably before returning success; do not rely on a background thread continuing after the HTTP response or after scale-down. Use the durable PostgreSQL inbox pattern.
Finite scheduled commands
A report that runs briefly once per day may not need a continuously running worker. Use a finite-job facility that matches its timeout and recovery requirements rather than running an endless server as a job.
Rapids Runs are Preview for selected accounts. The timeout range is 60–3600 seconds, with one queued/running Run per parent container and no automatic retries. Overlapping schedule occurrences are recorded skips, not replayed. A failed report needs an explicit, safe replay and an artifact check; a cheap estimate does not remove those operating requirements.
For illustration, 30 executions of 600 seconds at one vCPU and 0.5 GiB represent €0.2925 of compute at the public rates before allowances. This is resource arithmetic, not a guaranteed complete Runs bill. Confirm billing rules, included usage and storage/transfer separately. See scheduled reports with deterministic S3 output.
When to retain running capacity
- Continuous demand: if at least one instance stays active nearly all month, scale-to-zero may remove little billed time. Compare an always-on service or VPS with equivalent availability and capacity.
- Continuous workers: a loop polling a queue is a different workload from an HTTP service. Choose a worker or job architecture with the required lifecycle.
- Strict first-request latency: measure startup and consider minimum capacity if the product supports it. Include its cost. No startup millisecond range is guaranteed by this guide.
- Local or in-memory state: externalize the durable state or choose a stateful service. A disposable replica cannot be the only copy of an uploaded file or a business checkpoint.
- Long-lived connections: WebSockets or streaming activity can keep replicas busy and reduce idle savings. Check protocol support and reconnection behavior rather than assuming all such services are impossible.
- Long or parallel jobs: choose a platform whose timeout, task count, retry and fan-out model fit. Current Runs are not a multi-hour batch engine.
A hybrid plan that can be measured
Classify each service by demand and lifecycle, not by a blanket “all services below one million requests” rule.
| Workload | Candidate model | Evidence needed |
|---|---|---|
| Steady production API | Always-on or minimum capacity | Measured throughput, memory, availability and sustained cost |
| Occasional internal UI | Scale-to-zero HTTP service | Cold-request behavior and complete dependency cost |
| Webhook intake | HTTP service plus durable inbox/queue | Acknowledgment latency, persistence and duplicate-delivery handling |
| Daily bounded report | Finite job | Runtime ceiling, non-overlap, deterministic output and replay procedure |
| Continuous queue processor | Worker/VPS or supported worker product | Queue latency, shutdown handling and failure recovery |
| Database and durable files | Managed data/storage services | Capacity, backup, retention and restore verification |
Record one baseline period and one representative trial. Attribute shared resources fairly and distinguish cost removal from cost reallocation. Do not multiply a new full allowance across each tenant or container. A ten-container architecture can consume a shared allowance and multiply operational work.
Migration and verification
- Inventory the runtime, startup command, port, secrets, external services and persistent paths.
- Build or select a pinned image; confirm it starts with the configured port and shuts down safely.
- Deploy through an image, Git repository or ZIP supported by the current Rapids deployment workflow. Buildpack support depends on the selected builder.
- Connect durable services using restricted credentials, certificate validation and bounded connection pools.
- Test idle-to-active behavior, ordinary requests, a burst and failure recovery before switching production traffic.
- Observe replica/resource time, requests and transfer; compare the estimated subtotal with the usage record.
- Keep the previous service until the new application is validated and the rollback/data boundary is clear.
For database-backed services, follow the PostgreSQL pooling guide. For choosing the right process lifecycle, use Containers versus Runs.
Optimize the largest measured cost
Right-size memory and CPU using representative work. Improve initialization and image contents when startup is the issue; preserve required libraries rather than choosing a smaller base blindly. Tune concurrency with load tests and database connection budgets. Make scheduled work explicit and idempotent so a recovery does not create duplicate charges or duplicate business effects.
Response-time improvements can reduce billed time, but they do not imply the same percentage reduction in the whole bill. A database, transfer-heavy response or continuously warm replica can dominate. Check the pricing comparison and meter formulas for a complete worksheet.
Frequently asked questions
Is a sleeping service free?
Running compute can stop at zero replicas, but storage, databases, logs or other retained resources may remain chargeable. Check the complete bill.
At how many requests does a VPS become cheaper?
There is no universal count. Duration, concurrency, memory, replicas, idle policy, allowances and the avoidable VPS cost determine the threshold.
Does an EU deployment guarantee all data stays in Europe?
No such conclusion follows from the compute region alone. Map logs, backups, support access and external destinations against your requirements. Do not turn a location fact into a blanket compliance promise.
Use Rapids for workloads whose supported lifecycle fits and whose measured complete cost improves on the baseline you can actually remove. Keep running capacity where it earns its cost.