Sleep is a snapshot
When an app goes quiet its memory is saved to disk as it was. A wake loads the pages it needs to start serving first, then the rest as the app asks for them.
Architecture
Each piece is there for one of two reasons: so a sleeping app costs nothing, or so a waking one loses nothing. Here is the path of a request and everything behind it.
The path of a request
Cloudflare in front, our edge behind it, then the server that holds the app. A standby server keeps a copy of everything the app needs to move.
Pieces
When an app goes quiet its memory is saved to disk as it was. A wake loads the pages it needs to start serving first, then the rest as the app asks for them.
A worker with an empty Redis queue sleeps, and the next job wakes it. Its Redis connection survives the sleep: no reconnect, no lost job.
Disks that keep data are copied to a standby server as you write. If a server dies, the app moves there with its data. No confirmed write lost in our failover drills.
Snapshots, memory and secrets are encrypted with your organization's own key. Secrets are handed to the VM at start and never baked into the image.
Every VM has its own kernel, runs jailed without privileges, and gets its own memory, CPU, disk and network limits. A noisy neighbour stays its own problem.
Our edge accepts Cloudflare alone, with a client certificate of our own, and talks to servers over WireGuard. Nobody gets to the servers around it.
The control plane keeps a journal of what runs where. If it stops, servers keep serving and waking the apps they have.
No passwords to leak: GitHub only, a second step with an authenticator app, and the CLI signs in through your browser.
Life of an app
deployThe image is built in a throwaway VM, started once, and its warm memory saved as the version's snapshot. Secrets are handed to the VM at start, never baked in.
serveRequests go through the edge to the app's home server. Its VM runs with its own kernel, jailed, with its own memory, CPU, disk and network limits.
sleepA few seconds after the last request the app's connections are closed cleanly and the VM stops. Its memory is a file on disk, encrypted; it uses nothing else.
wakeThe next request restores the VM from the snapshot. The pages it needs to start serving load first, recorded at deploy (workers learn theirs on their first real wake); the rest arrive as the app asks for them.
moveIf the home server stops answering, the standby server already has the snapshot and the volume replica, and the app comes back there.
Security
Every organization has its own key. Snapshot memory, snapshot files and secrets are encrypted with keys derived from it, so one organization’s data is unreadable with another’s. Secrets never go into an image. Each VM is jailed without privileges and has its own limits, and the edge only accepts connections from Cloudflare, checked with a client certificate of our own.
Sign-in is GitHub only, with a second step in an authenticator app. The CLI signs in through your browser, so no password or long-lived key sits in your terminal history.

Metering
Every few seconds each server looks at the memory a VM really holds while awake, the CPU time it really used, the traffic it sent and the storage it keeps. Five-minute totals go to the books once each, however often they are sent. When a plan’s allowance and credits run out, or a spend cap is reached, apps sleep instead of running up a bill.
Free during the beta: $10 of usage a month is on us. Apply with your GitHub account.