---
title: "How Durable Objects and D1 Work: A Deep Dive with Cloudflare’s Josh Howard"
url: "https://aaronfrancis.com/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard"
path: "/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard"
type: video
author: Aaron Francis
published: 2025-05-14
topic: Databases
keywords: [durable objects, cloudflare, stateful serverless, workers, v8 isolates, serverless, sqlite, workers kv, replication, routing, storage, output gating]
youtube_url: "https://www.youtube.com/watch?v=C5-741uQPVU"
chunked: true
full_bytes: 73991
section_count: 29
full_url: "/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/full.md"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# How Durable Objects and D1 Work: A Deep Dive with Cloudflare’s Josh Howard

## Sections (72.3 KB full document — follow any link to read verbatim)

This page is long enough to hit agent truncation cliffs if fetched all at once. Pick the section matching your question below to read it 100% verbatim (< 35 KB each), or open the [full unsplit document (72.3 KB)](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/full.md).

### 1. Intro (00:01–00:44 · 0.9 KB)
Josh Howard, senior engineering manager at Cloudflare responsible for Durable Objects and D1, introduces himself and his 18-month tenure at the company.
Keywords: `josh howard`, `intro`, `senior engineering`, `engineering manager`, `josh`, `howard`, `cloudflare`, `senior`
[Read section 1 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/1-intro.md)

### 2. What is a Durable Object? (00:45–01:46 · 1.3 KB)
Durable Objects are a primitive for building stateful serverless applications, enabling state management in serverless architecture.
Keywords: `durable objects`, `durable`, `object`, `howard`, `serverless`, `building stateful`, `stateful serverless`, `serverless applications`
[Read section 2 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/2-what-is-a-durable-object.md)

### 3. Cloudflare’s serverless model and V8 isolates (01:46–03:58 · 2.7 KB)
Cloudflare uses V8 isolates (thread-level isolation from Chrome) instead of VMs like Firecracker for lightweight serverless compute compared to other cloud providers.
Keywords: `v8 isolates`, `serverless`, `isolates`, `model`, `cloudflare serverless`, `serverless model`, `cloudflare`, `howard`
[Read section 3 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/3-cloudflares-serverless-model-and-v8-isolates.md)

### 4. Why stateful serverless matters (03:59–05:31 · 1.6 KB)
Durable Objects provide state and consistent global routing to a single location, enabling coordination between Workers and local access to databases and storage that stateless Workers cannot achieve.
Keywords: `durable objects`, `stateful serverless`, `serverless matters`, `serverless`, `stateful`, `matters`, `workers`, `durable`
[Read section 4 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/4-why-stateful-serverless-matters.md)

### 5. Durable Objects vs Workers (05:31–06:25 · 1.0 KB)
Both Workers and Durable Objects run in V8 isolates but expose different APIs; Durable Objects can access SQLite and local storage because they maintain persistent routing, unlike stateless Workers.
Keywords: `durable objects`, `durable`, `objects`, `workers`, `objects vs`, `vs workers`, `sqlite`, `isolates`
[Read section 5 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/5-durable-objects-vs-workers.md)

### 6. How routing to Durable Objects works (06:25–08:09 · 2.0 KB)
Durable Objects are defined as JavaScript classes with globally unique IDs; users get a stub to invoke methods via RPC, and routing determines region placement and metal assignment based on the globally unique ID.
Keywords: `durable objects`, `durable`, `routing`, `objects`, `objects works`, `works`, `globally unique`, `howard`
[Read section 6 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/6-how-routing-to-durable-objects-works.md)

### 7. What makes them "durable"? (08:09–08:53 · 0.9 KB)
Durable Objects are named "durable" because they have persistent state storage, and Cloudflare colocates compute with state for performance and coordination benefits.
Keywords: `durable`, `howard`, `decided`, `compute`, `storage`
[Read section 7 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/7-what-makes-them-durable.md)

### 8. Tradeoffs of colocating compute and state (08:53–11:00 · 2.4 KB)
Colocating compute and state enables coordination, eliminates expensive database round trips, and allows microsecond-level storage operations even for stateless use cases like connection pooling or batching.
Keywords: `colocating compute`, `compute`, `tradeoffs`, `colocating`, `stateless durable`, `chat room`, `durable objects`, `howard`
[Read section 8 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/8-tradeoffs-of-colocating-compute-and-state.md)

### 9. Stateless Durable Objects (11:00–12:50 · 2.4 KB)
Stateless Durable Objects use in-memory coordination without touching storage, exemplified by request batching or connection pooling that deduplicates and streams work to upstream services.
Keywords: `durable objects`, `stateless durable`, `durable`, `stateless`, `objects`, `touch storage`, `howard`, `object`
[Read section 9 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/9-stateless-durable-objects.md)

### 10. Waking up from sleep and restoring state (12:51–16:22 · 4.7 KB)
Durable Objects do not automatically restore in-memory state on wake; the constructor must explicitly rebuild state from storage, preventing confusing bugs from implicit state persistence.
Keywords: `sleep`, `restoring state`, `javascript`, `waking`, `restoring`, `howard`, `destructor hook`, `destructor`
[Read section 10 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/10-waking-up-from-sleep-and-restoring-state.md)

### 11. Durable Object storage: KV and SQLite APIs (16:22–18:49 · 2.9 KB)
Durable Objects offer KV and SQLite APIs for persistent, replicated local storage; SQLite was added after the original KV backend and is now the recommended backend.
Keywords: `durable objects`, `sqlite`, `api`, `object storage`, `durable`, `storage`, `object`, `sqlite apis`
[Read section 11 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/11-durable-object-storage-kv-and-sqlite-apis.md)

### 12. Relationship between D1, Workers KV, and DOs (18:49–20:48 · 2.4 KB)
Workers KV and D1 are separate distributed products (KV eventually consistent globally, D1 strongly consistent), distinct from Durable Object local storage which is unique per object.
Keywords: `workers kv`, `sqlite`, `dos`, `workers`, `relationship`, `howard`, `interface`, `mm-hmm`
[Read section 12 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/12-relationship-between-d1-workers-kv-and-dos.md)

### 13. Performance of local storage writes (20:48–21:52 · 1.2 KB)
Durable Object writes are fast because cached writes in memory operate at microsecond speeds; durability requires replication to followers via the storage relay service.
Keywords: `local storage`, `writes`, `storage`, `storage writes`, `performance`, `howard`, `nerve`, `durable`
[Read section 13 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/13-performance-of-local-storage-writes.md)

### 14. Storage replication and output gating (21:52–24:15 · 2.7 KB)
A leader process replicates writes to followers, and output gating ensures writes are confirmed durable before the Durable Object sends responses or causes side effects observable externally.
Keywords: `storage`, `output`, `storage replication`, `output gating`, `replication`, `gating`, `durable objects`, `confirmed durable`
[Read section 14 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/14-storage-replication-and-output-gating.md)

### 15. Lifecycle of a request through a Durable Object (24:16–26:47 · 3.3 KB)
Requests crossing into a Durable Object can optimistically write without waiting for replication confirmation, but all writes must be confirmed durable before crossing back out to the external world.
Keywords: `durable objects`, `durable`, `object`, `sqlite`, `request`, `lifecycle`, `howard`, `side effect`
[Read section 15 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/15-lifecycle-of-a-request-through-a-durable-object.md)

### 16. Replication strategy and long-term durability (26:47–31:29 · 5.6 KB)
Durable Objects replicate synchronously to five nearest data centers for immediate durability, while long-term durability uses edge storage; Durable Objects are regional and can move between colos within a region.
Keywords: `long-term durability`, `durability`, `durable objects`, `replication strategy`, `replication`, `long-term`, `strategy`, `data centers`
[Read section 16 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/16-replication-strategy-and-long-term-durability.md)

### 17. Placement logic and sharding strategy (31:29–36:46 · 6.6 KB)
Durable Objects are placed near first request location by default without customer declaration; sharding by user or entity solves scaling since single objects cannot be load-balanced like Workers.
Keywords: `durable objects`, `placement`, `placement logic`, `sharding strategy`, `sharding`, `logic`, `strategy`, `howard`
[Read section 17 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/17-placement-logic-and-sharding-strategy.md)

### 18. Use cases: agents, multiplayer games, chat apps (36:47–40:34 · 4.8 KB)
Common use cases include agents (one per agent), multiplayer games (one per match), and chat rooms; frameworks like agents are built on Durable Objects for specific domain needs.
Keywords: `multiplayer games`, `durable objects`, `agents`, `multiplayer`, `chat`, `chat apps`, `websockets`, `games`
[Read section 18 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/18-use-cases-agents-multiplayer-games-chat-apps.md)

### 19. Scaling Durable Objects (40:34–41:17 · 1.0 KB)
Durable Objects are inexpensive at scale (like database rows); customers can create millions at thousands per second with automatic ID collision prevention and no performance degradation.
Keywords: `durable objects`, `scaling durable`, `scaling`, `durable`, `objects`, `ids`, `howard`, `thousands`
[Read section 19 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/19-scaling-durable-objects.md)

### 20. Globally unique ID generation (41:18–43:31 · 2.6 KB)
Unique IDs are generated by prefixing with datacenter, server, and isolate identifiers; named Durable Objects use a North America coordination region with a "relocate on create" strategy for consistency.
Keywords: `north america`, `unique`, `globally unique`, `globally`, `generation`, `durable objects`, `howard`, `object named`
[Read section 20 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/20-globally-unique-id-generation.md)

### 21. Named Durable Objects and coordination (43:31–46:19 · 3.0 KB)
Named Durable Objects route through North America for coordination; winners get created and relocate there, while subsequent requests use cached relocation records across Cloudflare's edge network.
Keywords: `durable objects`, `durable`, `objects`, `named`, `coordination`, `named durable`, `howard`, `dfw`
[Read section 21 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/21-named-durable-objects-and-coordination.md)

### 22. D1 vs Workers KV vs Durable Objects (46:20–47:50 · 1.8 KB)
D1 is strongly consistent, backed by a Durable Object, and accessible over HTTP API; Workers KV is eventually consistent and globally replicated; each serves different consistency and replication needs.
Keywords: `durable objects`, `workers kv`, `workers`, `d1 vs`, `vs workers`, `kv vs`, `vs durable`, `durable`
[Read section 22 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/22-d1-vs-workers-kv-vs-durable-objects.md)

### 23. Outerbase acquisition and DX improvements (47:50–49:59 · 2.6 KB)
Cloudflare acquired Outerbase to bring unified querying and improved UI to storage products including D1, with plans to extend to Durable Objects, KV, and HyperDrive.
Keywords: `durable objects`, `outerbase`, `outerbase acquisition`, `dx improvements`, `acquisition`, `improvements`, `howard`, `cloudflare`
[Read section 23 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/23-outerbase-acquisition-and-dx-improvements.md)

### 24. Querying durable object storage (50:00–51:49 · 2.3 KB)
D1's dashboard query UI leverages a Worker and Durable Object architecture; Durable Object storage UI is harder to implement due to customer account isolation and cost concerns.
Keywords: `durable objects`, `durable`, `object`, `querying durable`, `object storage`, `querying`, `storage`, `howard`
[Read section 24 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/24-querying-durable-object-storage.md)

### 25. Developer Week highlights and new features (51:49–53:06 · 1.5 KB)
Major releases include D1 read replication with sessions API for sequential consistency, free tier for Durable Objects, and upcoming containers support for non-JavaScript languages.
Keywords: `durable objects`, `week highlights`, `new features`, `highlights`, `features`, `read replication`, `surface area`, `howard`
[Read section 25 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/25-developer-week-highlights-and-new-features.md)

### 26. Read replicas and sticky sessions (53:07–53:58 · 1.1 KB)
D1 read replication includes a sessions API with bookmarks for sequential consistency and read-your-own-writes guarantees across replicas.
Keywords: `read replicas`, `sticky sessions`, `durable objects`, `replicas`, `sticky`, `sessions`, `howard`, `javascript`
[Read section 26 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/26-read-replicas-and-sticky-sessions.md)

### 27. Containers and the future of routing (53:58–56:58 · 3.9 KB)
Containers enable running code in any language; Durable Objects will route to containers using the same API, launching early summer with a dedicated engineering team building the infrastructure.
Keywords: `durable objects`, `containers`, `routing`, `howard`, `durable`, `objects`, `container`, `object`
[Read section 27 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/27-containers-and-the-future-of-routing.md)

### 28. Deployment regions and infrastructure expansion (56:59–57:48 · 1.1 KB)
Durable Objects currently unavailable in Global South due to infrastructure weight; new SQLite backend enables lighter deployments expanding to more regions over the next year.
Keywords: `deployment regions`, `infrastructure expansion`, `deployment`, `regions`, `infrastructure`, `expansion`, `howard`, `roles`
[Read section 28 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/28-deployment-regions-and-infrastructure-expansion.md)

### 29. Hiring and how to connect with Josh (57:48–59:32 · 2.3 KB)
Cloudflare is hiring for systems-level roles on the Durable Objects and D1 team; Josh Howard can be reached via Twitter @ajoshhoward or email jayhoward@cloudflare.com.
Keywords: `josh`, `hiring`, `connect`, `howard`, `dms`, `yall`, `knows`, `team`
[Read section 29 verbatim](/videos/how-durable-objects-and-d1-work-a-deep-dive-with-cloudflares-josh-howard/sections/29-hiring-and-how-to-connect-with-josh.md)

---

## Related on aaronfrancis.com

- [SSG is dead. Long live cache.](/videos/ssg-is-dead-long-live-cache) *(Video · 2023-11-08 · shared: cloudflare, sqlite, serverless)*
- [I built a Google Docs for me and Claude](/writing/i-built-a-google-docs-for-me-and-claude) *(Article · 2026-11-11 · shared: agents, sqlite)*
- [Why Most Developers Overcomplicate Everything w/ Aaron Francis](/podcast/why-most-developers-overcomplicate-everything-w-aaron-francis-855db0fe) *(Podcast · 2025-03-20 · shared: sqlite, serverless)*
- [The Big Reveal](/podcast/the-big-reveal-675733cf) *(Podcast · 2025-01-28 · shared: sqlite, cloudflare)*
- [Super Epic Crazy with Adam Wathan](/podcast/super-epic-crazy-with-adam-wathan-81c46343) *(Podcast · 2024-03-27 · shared: sqlite, cloudflare)*

## Relevant Resources from Aaron Francis

- **[Solo](https://soloterm.com)** (overview on site: [/software](/software)): All-in-one agentic development platform and terminal workspace built by Aaron Francis for orchestrating processes and AI coding agents.
- **[MySQL for Developers](https://databaseschool.com)** (overview on site: [/courses](/courses)): Full video course covering MySQL indexing, deferred joins, pagination, query plans, and schema design for application developers.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `durable objects` ([D-E](/llms/keywords/d-e.txt)), `cloudflare` ([C](/llms/keywords/c.txt)), `stateful serverless` ([S](/llms/keywords/s.txt)), `workers` ([T-Z](/llms/keywords/t-z.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
