{"type":"rich","version":"1.0","provider_name":"Transistor","provider_url":"https://transistor.fm","author_name":"Database School","title":"How Durable Objects and D1 Work: A Deep Dive with Cloudflare’s Josh Howard","html":"<iframe width=\"100%\" height=\"180\" frameborder=\"no\" scrolling=\"no\" seamless src=\"https://share.transistor.fm/e/0acbfc78\"></iframe>","width":"100%","height":180,"duration":4480,"description":"Josh Howard, Senior Engineering Manager at Cloudflare, joins me to explain how Durable Objects and D1 work under the hood—and why Cloudflare’s approach to stateful serverless infrastructure is so unique. We get into V8 isolates, replication models, routing strategies, and even upcoming support for containers. \nWant to learn more about SQLite? Check out my SQLite course: https://highperformancesqlite.com/?ref=podcast \nFollow Josh: \nTwitter: https://twitter.com/ajoshhoward \nLinkedIn: https://www.linkedin.com/in/joshthoward \nFollow Aaron: \nTwitter: https://twitter.com/aarondfrancis \nLinkedIn: https://www.linkedin.com/in/aarondfrancis \nWebsite: https://aaronfrancis.com - find articles, podcasts, courses, and more.\nDatabase school on YouTube: https://www.youtube.com/playlist?list=PLI72dgeNJtzqElnNB6sQoAn2R-F3Vqm15\nDatabase school audio only: https://databaseschool.transistor.fm \nChapters \n00:00 - Intro \n00:37 - What is a Durable Object? \n01:43 - Cloudflare’s serverless model and V8 isolates \n03:58 - Why stateful serverless matters \n05:14 - Durable Objects vs Workers \n06:22 - How routing to Durable Objects works \n08:01 - What makes them \"durable\"? \n08:51 - Tradeoffs of colocating compute and state \n10:58 - Stateless Durable Objects \n12:49 - Waking up from sleep and restoring state \n16:15 - Durable Object storage: KV and SQLite APIs \n18:49 - Relationship between D1, Workers KV, and DOs \n20:34 - Performance of local storage writes \n21:50 - Storage replication and output gating \n24:15 - Lifecycle of a request through a Durable Object \n26:46 - Replication strategy and long-term durability \n31:25 - Placement logic and sharding strategy \n36:35 - Use cases: agents, multiplayer games, chat apps \n40:33 - Scaling Durable Objects \n41:14 - Globally unique ID generation \n43:22 - Named Durable Objects and coordination \n46:07 - D1 vs Workers KV vs Durable Objects \n47:50 - Outerbase acquisition and DX improvements \n49:49 - Querying durable object storage \n51:20 - Developer Week...","thumbnail_url":"https://img.transistorcdn.com/QPpKhRBWtM56k1sC7Y7j7aqGy8sd-XKWw6mEKgA1jmw/rs:fill:0:0:1/w:400/h:400/q:60/mb:500000/aHR0cHM6Ly9pbWct/dXBsb2FkLXByb2R1/Y3Rpb24udHJhbnNp/c3Rvci5mbS9lMmRl/ZTM5ZTAxOTMzNTgy/MmJmZTA4MWE1ZjMw/YjE4Ny5wbmc.webp","thumbnail_width":300,"thumbnail_height":300}