Bridging Durable Execution and Dynamic Deployment with Dynamic Workflows

<h2>Introduction: The Evolution of Cloudflare Workers</h2><p>Since the launch of Cloudflare Workers eight years ago, the platform has evolved dramatically. Initially a direct-to-developers tool, it has expanded into a robust ecosystem where platforms not only build on Workers but also empower their customers to ship code through multi-tenant applications. Today, we see a wide range of use cases: AI-generated implementations based on user descriptions, multi-tenant SaaS where each customer's business logic is runtime TypeScript unknown to the platform, agents that write and run their own tools, and CI/CD products where every repository defines its own pipeline. This evolution has driven the need for dynamic deployment across compute, storage, and source control.</p><figure style="margin:20px 0"><img src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/45alfDLgghrtXEb4mEsC4u/2211947d011e4e41e9bfc544080552f8/Introducing_Dynamic_Workflows-_durable_execution_that_follows_the_tenant-OG.png" alt="Bridging Durable Execution and Dynamic Deployment with Dynamic Workflows" style="width:100%;height:auto;border-radius:8px" loading="lazy"><figcaption style="font-size:12px;color:#666;margin-top:5px">Source: blog.cloudflare.com</figcaption></figure><h2>The Need for Dynamic Execution</h2><p>Last month, with the <strong>Dynamic Workers</strong> open beta, we gave platforms a clean primitive for compute: hand the Workers runtime some code at runtime, and get back an isolated, sandboxed Worker on the same machine in single-digit milliseconds. <strong>Durable Object Facets</strong> extended this idea to storage—each dynamically-loaded app can have its own SQLite database, spun up on demand, with the platform acting as a supervisor. <strong>Artifacts</strong> did the same for source control: a Git-native, versioned filesystem creatable by the tens of millions, one per agent, per session, per tenant. With dynamic deployment for storage and source control in place, one critical piece remained: durable execution.</p><h2>Understanding Durable Execution with Cloudflare Workflows</h2><p>Cloudflare Workflows is our <strong>durable execution engine</strong>. It transforms a <code>run(event, step)</code> function into a program where every step survives failures, can sleep for hours or days, waits for external events, and resumes exactly where it left off when the isolate is recycled. This makes it ideal for processes that must persist beyond a single request: onboarding flows, video transcoding pipelines, multi-stage billing, long-running agent loops, and more. With <strong>Workflows V2</strong>, the engine now supports up to 50,000 concurrent instances and 300 new instances per second per account, redesigned for the agentic era.</p><h3>The Limitation: Tied to Deployment</h3><p>However, Workflows has always had one baked-in assumption: the workflow code is part of your deployment. Your <code>wrangler.jsonc</code> includes a block that binds the engine to a single class called <code>MyWorkflow</code>. One binding, one class, per deploy. This works well when you own all the code and run a traditional application. But it breaks down the moment you want to let your customers ship their own workflows.</p><h3>Real-World Scenarios Requiring Dynamic Workflows</h3><p>Consider an app platform where AI writes TypeScript for every tenant. Or a CI/CD product where each repository has its own pipeline. Or an agent SDK where each agent writes its own durable plan. In all these cases, the workflow differs per tenant, per agent, per request. There is no single class to bind. This is the same challenge that <strong>Dynamic Workers</strong> solved for compute and <strong>Durable Object Facets</strong> solved for storage.</p><figure style="margin:20px 0"><img src="https://blog.cloudflare.com/cdn-cgi/image/format=auto,dpr=3,width=64,height=64,gravity=face,fit=crop,zoom=0.5/https://cf-assets.www.cloudflare.com/zkvhlag99gkb/oBNxdamAbzN4vUeiCSLWu/e3f3bc3ce02ed15a4e5b793f62eaa7f2/Dan_Lapid.jpg" alt="Bridging Durable Execution and Dynamic Deployment with Dynamic Workflows" style="width:100%;height:auto;border-radius:8px" loading="lazy"><figcaption style="font-size:12px;color:#666;margin-top:5px">Source: blog.cloudflare.com</figcaption></figure><h2>Introducing Dynamic Workflows: Bridging the Gap</h2><p>Today, we are announcing <strong>Dynamic Workflows</strong>, which bridges durable execution and dynamic deployment. This new capability allows platforms to hand over workflow code at runtime—just like they can with compute and storage—while still benefiting from the resilience and long-running capabilities of Cloudflare Workflows. With <a href="#understanding-durable-execution">Dynamic Workflows</a>, each tenant, agent, or session can have its own distinct durable execution plan, created on demand and fully supervised by the platform. No more binding a single class per deploy. The result: a truly dynamic, multi-tenant durable execution environment.</p><h2>What This Means for Platforms and Developers</h2><p>Dynamic Workflows complete the picture of dynamic deployment on Cloudflare. Platform builders can now offer their tenants:</p><ul><li><strong>Compute</strong>: Dynamic Workers for sandboxed, on-demand code execution.</li><li><strong>Storage</strong>: Durable Object Facets for per-tenant SQLite databases.</li><li><strong>Source Control</strong>: Artifacts for versioned, Git-native filesystems.</li><li><strong>Durable Execution</strong>: Dynamic Workflows for long-running, fault-tolerant processes—each tenant with its own logic.</li></ul><p>This unlocks new possibilities: AI-written workflows that run reliably, multi-tenant pipelines that scale, and agent systems that persist across sessions. The platform acts as a supervisor, managing resources while giving tenants full flexibility.</p><h2>Conclusion: The Future of Dynamic Platforms</h2><p>Dynamic Workflows represent the next step in Cloudflare's vision for dynamic, multi-tenant platforms. By removing the deployment barrier for durable execution, we enable a new class of applications where business logic is truly tenant-specific, yet backed by world-class infrastructure. Whether you're building an AI agent platform, a CI/CD service, or a multi-tenant SaaS, <strong>Dynamic Workflows</strong> provide the durable execution primitive you need—without the deployment friction. Stay tuned for more details and examples as we continue to refine this capability.</p>
Tags: