Idle compute & latency
Stop paying for idle APIs without 60-second cold starts
Gregale pauses idle HTTP instances about a second after their last request, wakes from Firecracker memory snapshots in milliseconds, and keeps WebSockets, webhooks, caching and crons working while compute sleeps.
What breaks vs. how Gregale solves it
Traditional PaaS providers bill fixed containers 24/7 or shut free apps down completely, causing minute-long cold starts and dropped sockets, webhooks and background triggers.
Problem without Gregale
Paid PaaS dynos bill 24/7 even when traffic drops overnight or between webhooks.
How Gregale solves it
Instances pause ~1 second after the last response and park to memory snapshots after 10 minutes at zero billed compute.
Problem without Gregale
Full container cold boots re-initialize Python, Node or JVM frameworks in seconds.
How Gregale solves it
Wakes restore directly from Firecracker memory snapshots on local SSD instead of cold-booting from scratch.
Problem without Gregale
WebSocket pings, Stripe webhooks and health probes keep serverless instances pinned awake.
How Gregale solves it
Managed realtime holds edge sockets, inbound webhooks queue at the edge with 202 Accepted, and gateway cache hits never wake VMs.
Deep-dive guides (6)
Scale to zero without slow cold starts
Gregale scales idle apps to zero without booting them again: an app pauses in memory about a second after its last request and resumes in about a millisecond, and after 10 minutes it parks as a memory snapshot that wakes with its process already running.
Hold WebSocket and SSE connections while your backend scales to zero
Gregale managed realtime holds client WebSocket and SSE sockets plus heartbeats at the edge while your backend microVM parks at zero billed compute, waking only on client messages or publishes. Core endpoints are in beta on every paid plan; resumable v2, history and channel rules are in per-account preview.
Receive Stripe and signed webhooks while scaled to zero
Gregale verifies Stripe and HMAC-SHA256 webhooks at the edge while your app is parked, persists them to a durable invocation queue, immediately responds `202 Accepted`, and delivers them with async retries and dead-letter replay on Hobby, Pro and Scale.
Cache public API responses at the edge without waking your app
Declare gateway caching with `gregale edge cache` using `stale-while-revalidate`, `stale-if-error`, query-order isolation and `Cache-Tag` purging, serving cache hits without waking your microVM while bypassing any request carrying cookies or `Authorization`.
Scale-to-zero cron jobs, delayed tasks and event queues without an always-on server
Run DST-safe HTTP crons (Hobby 5, Pro 20, Scale 100 per app), 365-day delayed tasks and CloudEvents app inboxes with zero idle compute and at least 30 days of dead-letter queue retention on every plan.
Deploy any Docker container at scale-to-zero without rewriting for serverless
Any stateless Linux/amd64 OCI image listening on `0.0.0.0:$PORT` runs inside a Gregale microVM with automatic kernel/Node/Python/Java snapshot reseeding, ECR/Artifact Registry/ACR pulls, Compose support and `HEALTHCHECK` conversion.
Related benchmarks & studies
Documentation references
Questions
- How fast does an idle Gregale app pause billing?
About a second after answering its last request, compute pausing stops billing immediately. After 10 minutes of inactivity, the instance parks to a Firecracker memory snapshot.
- Can my API still accept WebSockets, webhooks and crons while scaled to zero?
Yes. Managed realtime (in beta on paid plans) holds WebSocket and SSE clients at the edge, inbound webhook routes verify signatures and return
202before waking your app, and HTTP crons wake the app only for the duration of each run.- Do I have to rewrite a standard Docker container for scale-to-zero?
No. Any stateless Linux/amd64 OCI image listening on
0.0.0.0:$PORTdeploys unchanged, with automatic kernel, Node, Python and Java snapshot randomness reseeding on wake.