<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Cloudflare Durable Objects Design Patterns - Medium]]></title>
        <description><![CDATA[When a new paradigm like Cloudflare Durable Objects comes along, it takes a while to effectively take advantage of it. This publication is my contribution to accelerating that progress. Minimize boilerplate and risk. Maximize evolvability and speed of development. - Medium]]></description>
        <link>https://medium.com/cloudflare-durable-objects-design-patterns?source=rss----f7c4752ca430---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Cloudflare Durable Objects Design Patterns - Medium</title>
            <link>https://medium.com/cloudflare-durable-objects-design-patterns?source=rss----f7c4752ca430---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:18:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/cloudflare-durable-objects-design-patterns" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Every index costs you $1 per million rows: measuring DO SQLite write costs]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">If you can&#x2019;t access this on Medium, the full version is here.</p><p class="medium-feed-link"><a href="https://medium.com/cloudflare-durable-objects-design-patterns/every-index-costs-you-1-per-million-rows-measuring-do-sqlite-write-costs-8f16489ef4dc?source=rss----f7c4752ca430---4">Continue reading on Cloudflare Durable Objects Design Patterns »</a></p></div>]]></description>
            <link>https://medium.com/cloudflare-durable-objects-design-patterns/every-index-costs-you-1-per-million-rows-measuring-do-sqlite-write-costs-8f16489ef4dc?source=rss----f7c4752ca430---4</link>
            <guid isPermaLink="false">https://medium.com/p/8f16489ef4dc</guid>
            <dc:creator><![CDATA[Larry Maccherone]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 00:11:06 GMT</pubDate>
            <atom:updated>2026-02-24T14:51:54.766Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Hydrating from external sources]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">My simpler hydrate function will work in the vast majority of cases but if you ever need to hydrate from an external source, use this.</p><p class="medium-feed-link"><a href="https://medium.com/cloudflare-durable-objects-design-patterns/hydrating-from-external-sources-581ac6cf4cef?source=rss----f7c4752ca430---4">Continue reading on Cloudflare Durable Objects Design Patterns »</a></p></div>]]></description>
            <link>https://medium.com/cloudflare-durable-objects-design-patterns/hydrating-from-external-sources-581ac6cf4cef?source=rss----f7c4752ca430---4</link>
            <guid isPermaLink="false">https://medium.com/p/581ac6cf4cef</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[durable]]></category>
            <category><![CDATA[objects]]></category>
            <category><![CDATA[durable-objects]]></category>
            <category><![CDATA[hydration]]></category>
            <dc:creator><![CDATA[Larry Maccherone]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 11:31:57 GMT</pubDate>
            <atom:updated>2023-07-19T11:31:57.523Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Lazy hydration]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">When you keep state in your durable object instance properties, this is a patten to lazy rehydrate whenever your DO is reinstantiated.</p><p class="medium-feed-link"><a href="https://medium.com/cloudflare-durable-objects-design-patterns/lazy-hydration-cab27e7c70b5?source=rss----f7c4752ca430---4">Continue reading on Cloudflare Durable Objects Design Patterns »</a></p></div>]]></description>
            <link>https://medium.com/cloudflare-durable-objects-design-patterns/lazy-hydration-cab27e7c70b5?source=rss----f7c4752ca430---4</link>
            <guid isPermaLink="false">https://medium.com/p/cab27e7c70b5</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[cloudflare-pages]]></category>
            <category><![CDATA[cloudflare-workers]]></category>
            <dc:creator><![CDATA[Larry Maccherone]]></dc:creator>
            <pubDate>Thu, 02 Mar 2023 13:55:53 GMT</pubDate>
            <atom:updated>2023-08-01T11:36:20.790Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Introduction and Table of Contents]]></title>
            <link>https://medium.com/cloudflare-durable-objects-design-patterns/introduction-and-table-of-contents-ebd47d198d6f?source=rss----f7c4752ca430---4</link>
            <guid isPermaLink="false">https://medium.com/p/ebd47d198d6f</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[cloudflare-pages]]></category>
            <category><![CDATA[cloudflare-workers]]></category>
            <dc:creator><![CDATA[Larry Maccherone]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 19:57:36 GMT</pubDate>
            <atom:updated>2023-03-02T13:56:53.679Z</atom:updated>
            <content:encoded><![CDATA[<p>You wouldn’t be here if you didn’t already understand that there is a lot to love about Cloudflare’s Durable Objects. However, it’s not just a better implementation of an existing thing like serverless functions or a database.</p><p>It’s a completely new paradigm.</p><p>The closest thing to this we’ve ever seen before are JavaScript stored procedures running inside Azure’s CosmosDB. I was awarded an Azure Advisor and Microsoft MVP for my contributions to the CosmosDB community, so I’ve been drifting this direction for some time now but Cloudflare’s Durable Objects are a whole new level.</p><p>When a new paradigm like this comes along, it takes a while for the community to figure out the best ways to effectively take advantage of it. This publication is my contribution to accelerating that progress.</p><p><strong>WARNING and REQUEST</strong>: I’ve learned a lot about cloud native architectures as well as coaching a community of developers since my Azure CosmosDB days, but I still have a lot to learn about Durable Objects. I’ve completely refactored my entire approach several times and I’m sure we’ll find even better ways to do things as more people try out what I’m sharing here. I’m asking for your input in the form of objections, suggestions, and even pull-requests for the companion code found in the <a href="https://www.npmjs.com/package/@transformation-dev/cloudflare-do-utils">@transformation-dev/cloudflare-do-utils</a> npm package.</p><h3><strong>Table of contents</strong></h3><p><em>Items will turn to links as I write them</em></p><ul><li>Getting started resources</li><li><a href="https://medium.com/cloudflare-durable-objects-design-patterns/stories/published">Lazy hydration from storage</a></li><li><a href="https://medium.com/cloudflare-durable-objects-design-patterns/maintaining-consistent-state-56f5bb22dba9">Maintaining consistent state</a></li><li>Versioning</li><li>Cloudflare Pages<br>- Proxy to Durable Objects<br>- Deploying together</li><li>Testing</li><li>Routing</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebd47d198d6f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloudflare-durable-objects-design-patterns/introduction-and-table-of-contents-ebd47d198d6f">Introduction and Table of Contents</a> was originally published in <a href="https://medium.com/cloudflare-durable-objects-design-patterns">Cloudflare Durable Objects Design Patterns</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maintaining consistent state]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Cloudflare durable objects maintain consistency in light of storage write failure, but not when your code throws an unexpected error.</p><p class="medium-feed-link"><a href="https://medium.com/cloudflare-durable-objects-design-patterns/maintaining-consistent-state-56f5bb22dba9?source=rss----f7c4752ca430---4">Continue reading on Cloudflare Durable Objects Design Patterns »</a></p></div>]]></description>
            <link>https://medium.com/cloudflare-durable-objects-design-patterns/maintaining-consistent-state-56f5bb22dba9?source=rss----f7c4752ca430---4</link>
            <guid isPermaLink="false">https://medium.com/p/56f5bb22dba9</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[cloudflare-workers]]></category>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[cloudflare]]></category>
            <dc:creator><![CDATA[Larry Maccherone]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 19:48:28 GMT</pubDate>
            <atom:updated>2023-03-02T14:08:19.874Z</atom:updated>
        </item>
    </channel>
</rss>