# Durable Objects Finally Make Sense

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

[Cloudflare Developers](https://www.youtube.com/@CloudflareDevelopers) · Published 2026-04-28 · 9:28 · S tier · Cloudflare

[Watch on YouTube](https://www.youtube.com/watch?v=k4UXEfZf3sc) · [All RatTube videos](/tube)

## Summary

The video builds a small chat application to explain [Durable Objects](/lore/workers-answer-requests-durable-objects-own-named-state). Each room identifier selects one object with its own private storage, so people in the same room reach the same stateful unit.

The example starts with SQLite-backed messages, then adds WebSockets and hibernation support for live updates. The speaker explicitly leaves out production concerns such as authentication, validation, and rate limiting to keep the example focused on the object model.

## Section notes

- [0:13](https://www.youtube.com/watch?v=k4UXEfZf3sc\&t=13s): A minimal chat app provides the example for persistent state and WebSockets.
- [1:37](https://www.youtube.com/watch?v=k4UXEfZf3sc\&t=97s): One room identifier maps to one Durable Object and its private storage.
- [3:22](https://www.youtube.com/watch?v=k4UXEfZf3sc\&t=202s): The object creates a table and implements message insertion and reading.
- [5:05](https://www.youtube.com/watch?v=k4UXEfZf3sc\&t=305s): The example adds hibernatable WebSockets and routes requests through the Worker.
- [6:44](https://www.youtube.com/watch?v=k4UXEfZf3sc\&t=404s): The demonstration shows live message broadcasting.
- [8:30](https://www.youtube.com/watch?v=k4UXEfZf3sc\&t=510s): The speaker names production concerns deliberately omitted from the teaching example.

## Key concepts

- [Durable Objects](/lore/workers-answer-requests-durable-objects-own-named-state)
- [persistent state](/lore/durable-work-needs-storage)

## Our take

Durable Objects explained by building a Slack-style chat: SQLite state, WebSocket broadcast and hibernation in under seventy lines, and why that makes them stateful serverless functions rather than just storage. Watch it before reading any Durable Object code.

## Related videos

- [Cloudflare Workers Explained](/tube/cloudflare-workers-explained)
- [How Durable Objects and D1 Work: A Deep Dive with Cloudflare’s Josh Howard](/tube/how-durable-objects-and-d1-work)
- [What is Alchemy? Zero-to-Production Infrastructure in TypeScript & Effect | Office Hours 27](/tube/what-is-alchemy-zero-to-production)
- [Effect Cluster | Tim Smart (Effect Days 2025)](/tube/effect-cluster-tim-smart)

Summary based on the transcript. Written 2026-11-15.
