Runtime
GA & BetaFree, Hobby, Pro, ScaleIsolated microVMs that park to $0 and pre-wake downstream services automatically
Every workload runs in its own Firecracker microVM that snapshots to disk at zero RAM cost (SSD platform-only snapshot-restore p95 target: below 350 ms) and pre-wakes internal service dependencies automatically.
Configure after_restore hooks and multi-service wake-ahead in YAML
Most scale-to-zero platforms force either shared container kernels, multi-second cold starts, or cascading delays when an edge API calls internal microservices. Gregale pairs hardware-virtualized Firecracker snapshots with Service Wake-Ahead, after-restore lifecycle hooks, and zero-rewrite OCI compatibility.
# gregale.yaml — refresh in-memory connections right after snapshot restore
lifecycle:
after_restore:
path: /internal/after-restore
timeout_ms: 500
# compose.yaml — toggle automatic wake-ahead per dependent service
services:
billing:
build: ./billing
x-gregale-wake-ahead: true
Key capabilities
MicroVM snapshot restore
Idle instances park to snapshot on disk at zero resident RAM. SSD platform-only snapshot-restore p95 target: below 350 ms. Public request latency also includes network transit and can be higher. A fresh cold boot is a separate path.
Service wake-ahead
When an app wakes, Gregale automatically starts waking its parked internal dependencies right away so multi-service chains avoid serialized cold-start stacks.
After-restore hooks & automatic fallback
Run an idempotent loopback hook (X-Faas-After-Restore: 1) after guest clock and entropy repair; if it fails or times out, Gregale falls back cleanly to a fresh cold boot.
Warm pools, wake pages & timelines
Inspect exact phase timings per wake in the Wake Timeline, show branded waiting pages to browser visitors if needed, or keep warm paused capacity on paid plans.
Typical PaaS vs. Gregale
| Capability | Typical PaaS | Gregale |
|---|---|---|
| Workload isolation boundary | Shared Linux kernel / cgroup containers | Dedicated Firecracker KVM microVM per instance |
| Cascading microservice wakes | Downstream services stay cold until caller reaches them | Service wake-ahead wakes declared dependencies immediately |
| Post-restore connection refresh | Stale sockets discovered on live user request | lifecycle.after_restore hook with cold-boot fallback |
Deep-dive guides (4)
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.
A microVM for every app
Gregale runs every app instance in its own Firecracker microVM, with its own kernel, network namespace, memory limit and jailed process. Your existing Dockerfile works unchanged.
Private service-to-service networking with caller allowlists and no VPC
Apps in the same account reach one another privately by name (`GREGALE_SERVICE_*_URL` and `.internal`) with zero VPC setup, while target caller allowlists, path scopes, deadlines and default-deny PR preview rules run at the proxy before waking targets.
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
Firecracker snapshot restore on SSD
Scheduler wake timing from 100 sequential snapshot restores on one SSD-backed node.
What it costs to run an intermittent FastAPI app on Gregale
Metered compute for the same number of FastAPI requests sent at intervals or in bursts, with 30-day cost estimates.
What an intermittent or evenly spaced backend costs across 6 PaaS platforms
Deterministic 30-day cost model showing how Gregale’s ~1–2 s between-request pause ladder compares with minute-scale sleep timers on Fly.io, Railway, Render, Heroku and Cloud Run.
Runnable starters & integrations (6)
Browse all templatesPython 3.13 · FastAPI · Postgres 17
Postgres Migration & Rollback Demo
FastAPI + managed PostgreSQL 17 starter demonstrating release.command migrations (MIGRATION_DATABASE_URL) and coordinated code + database rollback via gregale rollback --restore-databases.
Node 24 · Next.js 16 · Postgres 17
Next.js 16 + Postgres Starter
Next.js App Router with output: "standalone", pre-traffic SQL migrations, separate /healthz readiness check, and scale-to-zero MicroVMs.
Bun 1 · Hono · TypeScript · Postgres 17
Bun + Hono + Postgres Starter
TypeScript REST API using Bun, Hono, and postgres.js with release-command SQL migrations and managed PostgreSQL 17 suspension when idle.
Node 22 · Managed Realtime
Scale-to-Zero WebSockets & SSE
Hold thousands of idle WebSocket or SSE connections on Gregale Managed Realtime with heartbeat offload and HTTP callbacks so your app parks at $0 compute.
Node 22 · Docker Compose · Postgres 17
Node.js API + Private Worker Queue
Multi-service Compose starter pairing a public Express API with a private worker and Postgres FOR UPDATE SKIP LOCKED job queue without Redis.
Python 3.13 · FastAPI · Postgres 17
FastAPI + Postgres Background Jobs
FastAPI HTTP API with a durable PostgreSQL job queue, leases, and exponential retries that scales both compute and database to zero when idle.
Documentation references
Questions
- What does the snapshot restore target measure?
SSD platform-only snapshot-restore p95 target: below 350 ms. Public request latency also includes network transit and can be higher. A fresh cold boot is a separate path. The platform interval covers capacity admission or boot start through the first upstream byte (scheduler, snapshot restore, and internal proxy).
- Do I have to configure Service Wake-Ahead manually for Compose apps?
Wake-ahead is enabled automatically for declared project dependencies and can also be toggled per app with gregale app wake-ahead <app> on|off or x-gregale-wake-ahead in Compose.
- How do existing Docker images run with scale to zero?
Any stateless Linux/amd64 Docker or OCI container listening on HTTP works without function SDK rewrites. Stateless contract checks also warn before deploy if code relies on local ephemeral disk surviving a park.