Cloudflare Durable Objects
ELI5 — The Vibe Check
Durable Objects give you stateful compute at the edge. Each object lives on exactly one server, has its own storage, and can coordinate between multiple clients. It's like giving a Cloudflare Worker a brain and a memory. Perfect for real-time collaboration, chat rooms, game servers, or anything that needs consistent state without a database roundtrip.
Real Talk
Cloudflare Durable Objects provide strongly consistent, low-latency storage and coordination for Cloudflare Workers. Each object is a single-threaded JavaScript class with persistent storage, guaranteed to run on one server. This enables use cases requiring coordination, consistency, or state — like real-time collaboration, rate limiting, and WebSocket management.
When You'll Hear This
"Each chat room is a Durable Object that manages its own WebSocket connections." / "Durable Objects solved our distributed rate limiting problem — each object handles one user."
Related Terms
Cloudflare Workers
Workers run JavaScript at the edge — on Cloudflare's network of 300+ data centers worldwide. Your code executes in milliseconds, right next to the user.
Edge Computing
Your server is in Virginia. Your user is in Tokyo. Every request travels 10,000 km and back.
WebSocket
WebSocket is like upgrading a walkie-talkie from push-to-talk to a full phone call.