# V8 Isolate

URL: https://eoxlabs.dev/glossary/v8-isolate
Last updated: 2026-11-26
Publisher: EOXLABS (https://eoxlabs.dev)

Section: [Glossary](https://eoxlabs.dev/glossary)

A V8 isolate is an instance of the V8 JavaScript engine with its own memory heap; the [V8 embedder's guide](https://v8.dev/docs/embed) defines it as "a VM instance with its own heap". Cloudflare Workers run each script in an isolate, and one runtime process hosts many isolates side by side instead of starting a process or container per program.

## Why does the isolation model matter?

The way a platform isolates customer code sets its start-up cost, its memory footprint and its security boundary between tenants. Cloudflare's [How Workers works](https://developers.cloudflare.com/workers/reference/how-workers-works/) states that a single runtime instance "can run hundreds or thousands of isolates", that an isolate "can start around a hundred times faster than a Node process on a container or virtual machine", and that on startup isolates "consume an order of magnitude less memory".

Low overhead per program is what makes it practical to host customer code on every machine in a large network, which is the foundation of edge-native software. It also explains why a cold start on Workers is a small event compared with booting a container.

## How does EOXLABS design for isolates?

Isolates are not long-lived. Cloudflare documents that an isolate "may be spun down and evicted" because of machine resource limits, suspicious behavior or per-Worker limits, and it advises against keeping mutable state in global scope. EOXLABS follows three rules as a result:

- Module-level variables are treated as a cache that can vanish between any two requests.
- State that must survive goes to a store built for it: a Durable Object for coordinated state, D1 or Postgres for relational data, R2 for files, KV for configuration that is read often.
- Code targets the Web-standard APIs the Workers runtime implements, such as `fetch`, `Request`, `Response` and Web Crypto, so modules stay testable outside the edge.

The runtime has a page of its own in the [EOXLABS stack](https://eoxlabs.dev/stack/cloudflare-workers), and response-time targets are discussed in [the sub-50 ms edge latency note](https://eoxlabs.dev/engineering/sub-50ms-edge-latency).

## What goes wrong when isolates are ignored?

A rate limiter written as a module-level counter passes local tests and fails in production. Each isolate holds its own counter, requests for the same user land on different isolates in different locations, and any isolate can be evicted and lose its count. The same limiter built on a Durable Object keeps one authoritative count per key, because every request for that key reaches the same object.

## What are isolates confused with?

- **Containers and virtual machines.** Both give each workload its own process or guest kernel. Isolates share a process, and V8 keeps each isolate's memory separate.
- **V8 contexts.** The V8 guide describes a context as "an execution environment that allows separate, unrelated, JavaScript code to run in a single instance of V8". Several contexts can live inside one isolate.
- **Free start-up.** An isolate starts quickly, but work done at module load time, such as parsing large dependencies or building lookup tables, still runs on first use.

This entry is part of the [EOXLABS glossary of edge and security terms](https://eoxlabs.dev/glossary).

## Related

- [Cloudflare Workers](https://eoxlabs.dev/stack/cloudflare-workers): Cloudflare Workers is the request layer of EOXLABS systems, and this page covers how EOXLABS structures a Worker, the limits behind each design choice, and where a Worker is the wrong tool.
- [Cold Start](https://eoxlabs.dev/glossary/cold-start): A cold start is the extra delay when a serverless platform has to load and initialize a fresh copy of a function. It lands in the slowest requests, which is why it matters.
- [Edge-Native](https://eoxlabs.dev/glossary/edge-native): Edge-native describes software built for a distributed edge network from its first line, so requests are handled in the data center that receives them rather than sent to a central origin.
- [Why sub-50 ms is a defensible edge claim and sub-2 ms is not](https://eoxlabs.dev/engineering/sub-50ms-edge-latency): Fiber propagation, handshake round trips and last-mile latency decide which edge latency claims hold up. Server-Timing and real-user data keep the numbers honest.

## More glossary

- [Durable Object](https://eoxlabs.dev/glossary/durable-object)
- [WebSocket Hibernation](https://eoxlabs.dev/glossary/websocket-hibernation)
