# Releases and isolates

Immutable, content-addressed releases; a fresh isolate per request.

Two mechanisms explain most of how the platform behaves: what a release
is, and how server code runs.

## A release is content, addressed

A release is a manifest plus a set of files referenced **by their
sha256** — and, if the app has a server half, a compiled server image. The
consequences show up everywhere:

- **Deploys are differential.** The server already has most of your files
  by hash; only new content uploads. See [Deploys](/hosting/deploys.md).
- **Releases are immutable and cheap.** A release references content, it
  does not copy it, so keeping history costs almost nothing and
  **rollback is a pointer move**, not a rebuild.
- **Caching is provable.** An asset's ETag *is* its hash — a 304 is a
  cryptographic statement, not a guess. See [Caching](/hosting/caching.md).
- **Activation is atomic.** A request is served entirely from one release
  or entirely from the next, never a mix.

The content store is per-app: hashes never dedupe across apps, so content
addressing cannot become an oracle for what someone else deployed.

## Server code: one isolate per request

Your server half is a web-platform fetch handler. At deploy time the
platform compiles it ahead of time into a sandboxed WebAssembly image and
**pre-initializes** it — module parsing and initialization run once, at
deploy, not per request. At request time, the host creates a fresh
instance from that image, runs your handler, and discards it.

What this buys:

- **Nothing persists between requests** — no leaked state, no
  cross-request contamination, no memory creep. A crash takes down one
  request.
- **No cold-start lottery.** There is no warm instance to hit or miss; the
  first request and the millionth pay the same, predictable cost — a few
  milliseconds. See [Performance](/hosting/performance.md).
- **Bundle size is a small tax.** Pre-initialization is why a server
  bundle a hundred times larger costs about 8 % of throughput, not a
  multiple.

What it deliberately forbids:

- **In-memory anything** — sessions, caches, counters in module scope do
  not survive the request. Durable state belongs in [KV](/hosting/kv.md) or, once
  it ships, [object storage](/hosting/storage.md); work belongs on
  [the job queue](/data/jobs.md).
- **Long-lived connections** — websockets and background loops are not
  part of this tier. Long work runs as [jobs](/data/jobs.md), sliced into
  short requests.

If you have written code for other isolate platforms, this is the same
mental model, held strictly: path-addressed, stateless, per-request — at
isolate speed.
