0Pricing
Edge Computing with Cloudflare Workers & Deno · Lesson

Durable Objects Explained

Understand Durable Objects for stateful serverless applications, maintaining consistent state globally.

The State Problem at the Edge

Serverless functions, like Cloudflare Workers, are typically stateless. This means each request is processed independently, without remembering past interactions.

While great for scalability and cost-efficiency, what if you need to maintain a consistent piece of information across multiple requests or users globally? Think about a live chat room, a game lobby, or a shared counter.

Introducing Durable Objects

Cloudflare Durable Objects solve this fundamental challenge. They are a powerful primitive for building stateful serverless applications directly at the edge.

  • They provide a single-instance, globally consistent object.
  • Each Durable Object instance has a unique ID and its own private storage.
  • They act like tiny, persistent servers that live at the edge.

All lessons in this course

  1. Cloudflare KV Store
  2. Durable Objects Explained
  3. Integrating Deno with Edge Storage
  4. Querying with D1 SQL at the Edge
← Back to Edge Computing with Cloudflare Workers & Deno