Guide CLOUDFLARE WORKERS · BEGINNER
What a Worker actually is
Your code runs per request inside a shared runtime. There is no box that is "yours" and no program of yours that stays alive between requests.
By the end you can
- Say what actually happens when a request reaches a Cloudflare Worker, without reaching for the word "server".
- Explain why an isolate is not a virtual machine and not a container, using the vendor's own word for the unit.
- Recognise the specific bug this creates: a value set on one request and looked for on a later one.
- Run the two-question check against a Worker they already have, and say where a remembered value should live instead.
What this is about
Your code runs per request inside a shared runtime. There is no box that is "yours" and no program of yours that stays alive between requests.
That is the whole film. Everything else is scaffolding for it.
The short version
Here’s something every vibe coder should know. When you deploy to Cloudflare Workers, you are not renting a computer. You are handing over code that runs only when someone asks for something.
There is no machine with your name on it. Your code lives inside a runtime that is already running, and a small isolated space for it is created the moment a request arrives.
That is not a virtual machine and it is not a container. Cloudflare calls it an isolate, and their own documentation says one starts about a hundred times faster than a program booting on a machine of its own.
Here is the part that surprises people. Between requests, nothing of yours is promised to still be running. An isolate can be shut down and thrown away at any point.
So a value you set once and expect to find later is a bug waiting to happen. Cloudflare’s own documentation warns against exactly that.
Here is the check. Ask your AI whether this Worker holds anything in memory between requests. Then ask where that thing should live instead.
And this is not a flaw to work around. The forgetting is the trade that buys the speed. When something does have to be remembered, the platform gives you places built for remembering.
A Worker is not a computer you rent. It is code that wakes up for one request, and may keep nothing at all afterwards.
KEEP THE PROMPTS COMING
Get the free Agent Playbook + the exact prompts.
This whole playbook is free — no signup wall, ever. Drop your email and we'll send the copy-paste prompts from this page plus one plain-English AI move a week for your business. Unsubscribe in one click.
- The exact prompts to run with your agents
- New playbooks the moment they ship
- No hype, no spam — unsubscribe anytime
→ WANT IT BUILT FOR YOU?
