5 Milliseconds to Everywhere: How Kenton Varda's V8 Demo Killed the Datacenter
In 2017, a Cloudflare engineer showed his coworkers JavaScript booting in under 5 milliseconds โ no container, no cold start, no region. Nobody in the room realized they'd just watched the concept of 'the cloud' start to die.
The Demo Nobody Understood Yet
It was a Tuesday in late 2017, in Cloudflare's San Francisco office, and Kenton Varda was about to show a dozen engineers something that looked almost boring. A terminal window. A JavaScript snippet. A command.
He hit enter.
The script ran in under 5 milliseconds. Not 5 milliseconds after a warm-up. Not 5 milliseconds on the second request after the container spun up. Five milliseconds, cold, every single time โ because there was no container to spin up at all.
Varda had spent years before this at Google, working on Cap'n Proto and the Sandstorm project, obsessing over a single question: why does running someone else's code have to be so expensive? AWS Lambda, the reigning king of "serverless" at the time, answered that question by giving every invocation its own tiny virtual machine โ a Firecracker microVM, booted from scratch, loaded with a language runtime, then torn down. It worked. It also took anywhere from 100 milliseconds to several seconds to cold-start, and it ate memory like a container because, functionally, it was one.
Varda's demo used V8 isolates instead โ the same lightweight sandboxing primitive Google built into Chrome so that your banking tab couldn't peek at your Gmail tab. An isolate isn't a container. It isn't a VM. It's a memory-safe sandbox inside an already-running process. You can spin up thousands of them in a single Node-like process, each with its own global scope and heap, each completely isolated from the others, and each costing you megabytes instead of the hundreds of megabytes a container demands.
The room didn't erupt. A few people asked good questions. Someone probably checked Slack. But what had just happened, quietly, was the architectural premise of cloud computing getting its first real challenge in a decade.
The Tyranny of the Region
To understand why this mattered, you have to understand the thing everyone had simply accepted as normal: the region.
For fifteen years, "deploying an app" meant picking a home for it. You'd spin up an EC2 instance in us-east-1, Amazon's sprawling Virginia datacenter complex, because that's where everyone deployed, because that's where the ecosystem was thickest, because that's where the tutorials pointed. Your database lived there. Your app servers lived there. Your users did not.
A user in Singapore hitting your us-east-1 API was looking at 200+ milliseconds of pure physics โ light in fiber optic cable takes real time to cross the Pacific and back, and TCP handshakes make you pay that toll multiple times before a single byte of your actual response arrives. You could throw a CDN in front of your static assets. Your dynamic requests, your API calls, your database queries โ those all still took the long way home, every time.
The entire industry's answer to this was "multi-region deployment," which sounded simple and was, in practice, miserable. You'd stand up replica stacks in three or four regions, build out cross-region failover, argue about active-active versus active-passive, and still end up with most of the planet two time zones and one ocean away from the nearest copy of your code.
Cloudflare already had something nobody else did: roughly 200 points of presence scattered across the globe, originally built just to absorb DDoS traffic and cache static content. Varda's insight โ and the thing that became Cloudflare Workers โ was that if you could make arbitrary compute cheap and safe enough, you could run customer code at every single one of those locations simultaneously, not as a replication strategy, but as the default.
No more picking a region. Your code just... was everywhere. Tokyo, Sรฃo Paulo, Johannesburg, Frankfurt, all running the same isolate, all answering local traffic locally, all within low tens of milliseconds of nearly every human on earth with an internet connection.
How an Isolate Actually Works
The magic trick deserves unpacking, because it's genuinely elegant engineering, not just marketing.
A traditional serverless platform โ AWS Lambda, Google Cloud Run โ handles a request by starting a process (or a microVM) dedicated to it. Even with "warm" pools, you're fundamentally in a world of one-process-per-tenant, with memory overhead measured in hundreds of megabytes and cold starts measured in hundreds of milliseconds to seconds.
Cloudflare Workers instead runs a single Node.js-like V8 process per machine, and loads thousands of customers' scripts into that one process as separate isolates. Each isolate gets its own JavaScript heap and global object, policed by V8's own battle-tested sandbox โ the exact code that already keeps 3 billion Chrome tabs from spying on each other. Because the process and the V8 engine are already running, starting a new isolate doesn't mean booting an OS or a runtime. It means allocating a small new heap inside something already warm. That's the entire reason for the sub-5ms number: there's almost nothing left to boot.
The memory math is brutal in Workers' favor: where a Lambda invocation might cost you 128MB-plus of dedicated process memory, a Worker isolate can cost single-digit megabytes. Cloudflare has talked about running orders of magnitude more tenants per physical machine than a Lambda-style architecture could ever manage, which is exactly why they can offer 100,000 free requests a day and still make the economics work โ the marginal cost of your hobby project is close to zero because it barely moves the needle on the box it's sharing.
The Part Nobody Likes to Talk About: State
Here's the uncomfortable truth edge evangelists sometimes skip past: compute being everywhere is easy. Data being everywhere is not.
If your Worker in Tokyo needs to read a row that was just written by a Worker in Sรฃo Paulo, you've reinvented every distributed systems problem that's ever existed โ just with worse speed-of-light constraints, since now your "datacenters" number in the hundreds, not single digits.
The industry's answers have clustered around a few honest patterns:
Cloudflare KV punts on strong consistency entirely โ it's an eventually-consistent key-value store that replicates globally in around 60 seconds. Fine for config flags and feature toggles, useless for a shopping cart.
Durable Objects, Cloudflare's more interesting answer, pins a single object to a single location and guarantees at-most-one-instance semantics โ meaning there is exactly one authoritative copy of that object's state, and it's always the one you talk to. You trade "everywhere" for "correct," which is exactly the trade you want for a chat room, a game session, or a rate limiter.
Fly.io, the other major player in this story, took a different architectural bet entirely. Instead of V8 isolates, Fly runs actual Firecracker microVMs โ full Docker containers โ but spread across more than 30 regions with anycast routing, so a request lands at the nearest one automatically. For data, Fly built Fly Postgres with read replicas in every region and a clever mechanism called fly-replay: a read can be served locally, but a write gets transparently forwarded to the single primary region, with the response path handled so the client never has to know the request took a detour.
Turso, built on libSQL, pushes this further with embedded read replicas of SQLite living directly at the edge, syncing from a primary. PlanetScale leans on geo-aware routing at the database layer. Different companies, same underlying answer: state lives at an origin, compute lives everywhere, writes get funneled home, reads get served locally.
What Made It Physically Possible
None of this works without several boring-sounding infrastructure bets paying off simultaneously. Anycast IP routing โ one IP address, announced from hundreds of locations, with BGP automatically sending each user to the geographically nearest machine โ is what lets "nearest edge location" happen without any application-level logic. QUIC and HTTP/3 shaved critical round-trips off connection setup, which matters enormously when your whole pitch is shaving milliseconds. And Cloudflare built a WireGuard-based private mesh connecting its POPs so that when an edge location does need to reach back to origin data, it does so over an optimized private backbone instead of the public, congested internet.
Who's Actually Using This
This isn't theoretical. Discord runs image transformations โ resizing, format conversion โ for roughly 300 million images a day through Cloudflare Workers, because doing that work at the edge, close to the uploading user, beats routing every image back to a central region. Shopify's Hydrogen storefronts lean on edge rendering so a shopper in Melbourne gets a product page rendered nearby instead of fetched from Shopify's core infrastructure. And nearly every modern frontend framework โ Next.js, Remix, SvelteKit, Astro โ now ships an "edge runtime" option, frequently running on Cloudflare Workers under the hood even when the product wears another company's logo, as Vercel's Edge Functions famously do.
The Legacy
Somewhere, a team is still debating whether to deploy in us-east-1 or us-west-2, treating the choice like it matters. It's the same kind of decision that, a generation ago, meant picking which mainframe room got the new hardware โ a decision that eventually stopped being a decision at all, because the entire premise dissolved.
The datacenter isn't disappearing. It's being demoted. It's becoming the backend โ the place where the single source of truth lives, where the primary database writes land, where the durable object keeps its one authoritative copy. The frontend of computing, the part that actually touches your users, is migrating to wherever those users happen to be standing.
Kenton Varda's 5-millisecond demo didn't look like a revolution in that San Francisco conference room. Revolutions rarely do. They look like a terminal window, a small number, and a room full of engineers who haven't yet realized they're watching the ground shift under an industry that assumed, for twenty years, that computing needed a home address.
Keep Reading
The $400 Database That Charged You to Sleep: How Neon and PlanetScale Finally Split Postgres From Its Own Hard Drive
For 50 years, a database was a machine โ you provisioned it, paid for it 24/7, and prayed it didn't fall over on Black Friday. Then a handful of engineers asked a heretical question: what if storage and compute didn't have to live in the same box?
The Pipe That Couldn't Get Bigger: How Netflix Built 100,000 Servers Inside Your ISP to Beat the Laws of Physics
In 2010, Netflix did the math and realized its video streams were about to eat more American internet bandwidth than every other service combined โ and the internet simply wasn't built to survive it. So they built their own.
The Green Dashboard That Lied: How OpenTelemetry Killed the Logging Era and Taught Us to Ask Questions We Never Thought to Ask
Your dashboard says p99 latency is 800ms. Your customer says checkout took 45 seconds. Both are true. This is the story of how a messy 2019 merger of two rival projects quietly ended the vendor lock-in wars and rewired how the internet debugs itself.