Cloudflare Ships Dynamic Workflows, Bringing Durable Execution to Per-Tenant and Per-Agent Code

TL;DR · AI 摘要
Cloudflare ships dynamic workflows, bringing durable execution to per-tenant and per-agent code.
核心要点
- Cloudflare ships dynamic workflows.
Cloudflare Ships Dynamic Workflows, Bringing Durable Execution to Per-Tenant and Per-Agent Code - InfoQ
Your choice regarding cookies on this site
We use cookies to optimise site functionality and give you the best possible experience.
I Accept I Do Not Accept Settings
[BT](https://www.infoq.com/int/bt/ "bt")
InfoQ Software Architects' Newsletter
A monthly overview of things you need to know as an architect or aspiring architect.
Enter your e-mail address
Select your country - [x] I consent to InfoQ.com handling my data as explained in this Privacy Notice.
Close
Online InfoQ Architect Certification (June 10): This is where senior engineers pressure-test real architecture decisions.Register Now
Close
Toggle Navigation
Facilitating the Spread of Knowledge and Innovation in Professional Software Development
English edition
[Write for InfoQ](https://www.infoq.com/write-for-infoq/ "Write for InfoQ")
Search
Unlock the full InfoQ experience
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.
or
Don't have an InfoQ account?
- Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
- Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
- Save articles and read at anytimeBookmark articles to read whenever youre ready.
NewsArticlesPresentationsPodcastsGuides
Topics
[Development](https://www.infoq.com/development/ "Development")
- [Java](https://www.infoq.com/java/ "Java")
- [Kotlin](https://www.infoq.com/kotlin/ "Kotlin")
- [.Net](https://www.infoq.com/dotnet/ ".Net")
- [C#](https://www.infoq.com/c_sharp/ "C#")
- [Swift](https://www.infoq.com/swift/ "Swift")
- [Go](https://www.infoq.com/golang/ "Go")
- [Rust](https://www.infoq.com/rust/ "Rust")
- [JavaScript](https://www.infoq.com/javascript/ "JavaScript")
Featured in Development
Dany Lepage discusses the architectural journey of porting a hit VR title to seven non-VR platforms. He explains how his team solved the challenges of cross-progression, diverse input paradigms, and maintaining release velocity across Steam, iOS, and PlayStation. Beyond the tech, he shares candid lessons on the "product fit" gap when translating immersive social presence to 2D screens.

All in developmentFollow Topic
[Architecture & Design](https://www.infoq.com/architecture-design/ "Architecture & Design")
- [Architecture](https://www.infoq.com/architecture/ "Architecture")
- [Enterprise Architecture](https://www.infoq.com/enterprise-architecture/ "Enterprise Architecture")
- [Scalability/Performance](https://www.infoq.com/performance-scalability/ "Scalability/Performance")
- [Design](https://www.infoq.com/design/ "Design")
- [Case Studies](https://www.infoq.com/Case_Study/ "Case Studies")
- [Microservices](https://www.infoq.com/microservices/ "Microservices")
- [Service Mesh](https://www.infoq.com/servicemesh/ "Service Mesh")
- [Patterns](https://www.infoq.com/DesignPattern/ "Patterns")
- [Security](https://www.infoq.com/Security/ "Security")
Featured in Architecture & Design
Jimmy Morzaria discusses the evolution of Stripe’s database tier to support 5 million QPS with 5.5 nines of reliability. He explains the architecture of DocDB and shares how Stripe leverages a custom zero-downtime data movement platform to perform horizontal sharding, version upgrades, and multi-tenant migrations - all while maintaining the strict consistency required for global commerce.

All in architecture-designFollow Topic
[AI Infrastructure](https://www.infoq.com/ai-ml-data-eng/ "AI Infrastructure")
- [Big Data](https://www.infoq.com/bigdata/ "Big Data")
- [Machine Learning](https://www.infoq.com/machinelearning/ "Machine Learning")
- [NoSQL](https://www.infoq.com/nosql/ "NoSQL")
- [Database](https://www.infoq.com/database/ "Database")
- [Data Analytics](https://www.infoq.com/data-analytics/ "Data Analytics")
- [Streaming](https://www.infoq.com/streaming/ "Streaming")
Featured in AI, ML & Data Engineering
Justin Reock discusses the reality of AI’s impact on engineering, moving past anecdotes to hard data from DORA and DX research. He explains the "GenAI Divide" - where 95% of pilots fail - and shares how leaders can use the SPACE and Core 4 frameworks to measure true ROI. He explains how to balance speed with quality, reduce developer fear, and apply agentic solutions across the entire SDLC.

All in ai-ml-data-engFollow Topic
[Culture & Methods](https://www.infoq.com/culture-methods/ "Culture & Methods")
- [Agile](https://www.infoq.com/agile/ "Agile")
- [Diversity](https://www.infoq.com/diversity/ "Diversity")
- [Leadership](https://www.infoq.com/leadership/ "Leadership")
- [Lean/Kanban](https://www.infoq.com/lean/ "Lean/Kanban")
- [Personal Growth](https://www.infoq.com/personal-growth/ "Personal Growth")
- [Scrum](https://www.infoq.com/scrum/ "Scrum")
- [Sociocracy](https://www.infoq.com/sociocracy/ "Sociocracy")
- [Software Craftmanship](https://www.infoq.com/software_craftsmanship/ "Software Craftmanship")
- [Team Collaboration](https://www.infoq.com/team-collaboration/ "Team Collaboration")
- [Testing](https://www.infoq.com/testing/ "Testing")
- [UX](https://www.infoq.com/ux/ "UX")
Featured in Culture & Methods
In this podcast, Shane Hastie, Lead Editor for Culture & Methods, spoke to Michael Parker, VP of Engineering at TurinTech AI, about bringing joy back to software development in the AI era, the emerging role of "factory architects" who orchestrate AI agents rather than write code directly, and the cultural divide between AI hype and the reality developers face on legacy codebases.

All in culture-methodsFollow Topic
- [Infrastructure](https://www.infoq.com/infrastructure/ "Infrastructure")
- [Continuous Delivery](https://www.infoq.com/continuous_delivery/ "Continuous Delivery")
- [Automation](https://www.infoq.com/automation/ "Automation")
- [Containers](https://www.infoq.com/containers/ "Containers")
- [Cloud](https://www.infoq.com/cloud-computing/ "Cloud")
- [Observability](https://www.infoq.com/observability/ "Observability")
Featured in DevOps
The speakers explain the inherent tension between service efficiency and reliability at Netflix's global scale. They share a mental model for "risk-adjusted net value," moving beyond simple CPU utilization to focus on capacity buffers. They discuss hardware shaping, proactive traffic steering, and reactive levers like "hammers" and prioritized load shedding to protect critical playback.

All in devopsFollow Topic
[Events](https://events.infoq.com/ "Events")
Helpful links
- [About InfoQ](https://www.infoq.com/about-infoq "About InfoQ")
- [InfoQ Editors](https://www.infoq.com/infoq-editors "InfoQ Editors")
- [Write for InfoQ](https://www.infoq.com/write-for-infoq "Write for InfoQ")
- [About C4Media](https://c4media.com/ "About C4Media")
- [Diversity](https://c4media.com/diversity "Diversity")
Choose your language

[InfoQ Homepage](https://www.infoq.com/ "InfoQ Homepage")[News](https://www.infoq.com/news "News")Cloudflare Ships Dynamic Workflows, Bringing Durable Execution to Per-Tenant and Per-Agent Code
[Cloud](https://www.infoq.com/Cloud/ "Cloud")
Portable by Design: Data Mobility & Recovery Patterns for Multi-Cloud Systems (Webinar May 21st)
Cloudflare Ships Dynamic Workflows, Bringing Durable Execution to Per-Tenant and Per-Agent Code
May 09, 2026 3 min read
by
- Steef-Jan Wiggers
Follow Cloud Queue Lead Editor | Domain Architect | Cloud Expert
#### Write for InfoQ
Feed your curiosity.Help 550k+ global
senior developers
each month stay ahead.Get in touch
Log in to listen to this article
Audio ready to play
Your browser does not support the audio element.
0:00 0:00
Normal 1.25x 1.5x
Like
Cloudflare has released Dynamic Workflows, an MIT-licensed library that extends the company's durable execution engine so that workflow code can be different for every tenant, agent, or request at runtime.
Previously, Cloudflare Workflows required workflow code to be part of the deployment, one binding, one class, per deploy. Dynamic Workflows removes that constraint, letting a platform route every create() call to a different tenant's code and have the engine dispatch run(event, step) back to that same code when the workflow executes seconds, hours, or days later. Dan Lapid and Luís Duarte from the Cloudflare engineering team write:
Say you're building an app platform where the AI writes TypeScript for every tenant. Say you're running a CI/CD product where each repository has its own pipeline. Say you're using an agents SDK where each agent writes its own durable plan. In every one of these cases, the workflow is different for every tenant, every agent, every request. There is no single class to bind.
The library is roughly 300 lines of TypeScript. A Worker Loader sits between the Workflows engine and the tenant's code (a Dynamic Worker), routing execution to the right tenant when the engine wakes up. When a tenant calls _env.WORKFLOWS.create(...)_, it looks like a normal Workflow binding. Behind the scenes, the Worker Loader wraps the call with tenant metadata, the Workflows engine persists the payload, and when the engine later wakes to execute a step, the metadata routes execution back to the correct tenant's code. Workflow IDs, pause/resume, retries, hibernation, _step.sleep('24 hours')_, and _step.waitForEvent()_ all work unchanged.
import { createDynamicWorkflowEntrypoint, DynamicWorkflowBinding, wrapWorkflowBinding } from '@cloudflare/dynamic-workflows';
export { DynamicWorkflowBinding };
function loadTenant(env, tenantId) {
return env.LOADER.get(tenantId, async () => ({
compatibilityDate: '2026-01-01',
mainModule: 'index.js',
modules: { 'index.js': await fetchTenantCode(tenantId) },
env: { WORKFLOWS: wrapWorkflowBinding({ tenantId }) },
}));
}
export const DynamicWorkflow = createDynamicWorkflowEntrypoint(
async ({ env, metadata }) => {
const stub = loadTenant(env, metadata.tenantId);
return stub.getEntrypoint('TenantWorkflow');
}
);The CI/CD use case is where the architectural implications become most concrete. The blog post walks through a complete pipeline where the pipeline code lives in the customer's repository as a TypeScript WorkflowEntrypoint. The platform loads it dynamically, and each step runs with full durable execution semantics. The post lines up four Cloudflare primitives working together: Artifacts provides Git-native versioned storage with lazy tree hydration and instant fork() per CI run. Dynamic Workers run lightweight steps (lint, typecheck, bundle) in sandboxed isolates that boot in milliseconds. Dynamic Workflows hold the run together with durable, retryable steps that hibernate for free during approval waits. And Sandboxes handle the heavy steps that need a full operating system, with snapshot-based warm starts in seconds.
Cloudflare contrasts this with the ceremony of traditional CI, where allocating a VM, pulling a base image, cloning the repo, and installing dependencies can burn a minute or more before any actual work begins. The Dynamic Workflows stack skips all of that ceremony because the repo doesn't move, and the compute comes to it.
The broader platform thesis is explicit. Dynamic Workers solved the compute layer for multi-tenant dynamic code. Durable Object Facets solved the storage layer by giving each dynamically-loaded app its own isolated SQLite database. Dynamic Workflows now solves the durable execution layer. Cloudflare states that every binding Workers currently exposes is heading for a dynamic counterpart: queues, caches, databases, AI bindings, and MCP servers will all eventually be dispatchable per tenant, per agent, per request, at zero idle cost. If realized, this collapses the infrastructure cost of running a multi-tenant platform dramatically: idle tenants cost approximately nothing, active tenants share hardware through isolate-level multi-tenancy. In Cloudflare's framing, a platform that used to cap at thousands of paying customers can now reasonably serve tens of millions.
For agent platforms specifically, Dynamic Workflows means an agent can literally write its own run(event, step) function as a durable plan, where every step is independently retryable, every sleep hibernates for free, and every waitForEvent pauses indefinitely for human approval. The agent writes the plan. The platform runs it. Neither needs to know ahead of time what the plan looks like.
The competitive context for per-tenant durable execution is thin. Temporal and Inngest provide durable execution engines, but neither offers the dynamic per-tenant code loading at the isolation level that Dynamic Workflows enables. AWS Step Functions supports dynamic state machines but requires pre-defined task definitions. The combination of runtime code loading, V8 isolate-level isolation, and edge distribution is currently unique to Cloudflare's stack.
@cloudflare/dynamic-workflows is available on npm now, built on top of Dynamic Workers (open beta on the Workers Paid plan). The repository includes a working example with an interactive browser playground.
About the Author

#### Steef-Jan Wiggers
Steef-Jan Wiggers is one of InfoQ's senior cloud editors and works as a Domain Architect at VGZ in the Netherlands. His current technical expertise focuses on implementing integration platforms, Azure DevOps, AI, and Azure Platform Solution Architectures. Steef-Jan is a regular speaker at conferences and user groups and writes for InfoQ. Furthermore, Microsoft has recognized him as a Microsoft Azure MVP for the past sixteen years.
Show more Show less
#### This content is in the Cloud topic
Follow Topic
##### Related Topics:
Followers: 4094
Follow Topic
Followers: 5064
Follow Topic
Followers: 5896
Follow Topic
Followers: 17
Follow Topic
Followers: 2135
Follow Topic
Followers: 129
Follow Topic
Followers: 125
Follow Topic
* #### Popular in Cloud
- ##### Google Announces GKE Agent Sandbox and Hypercluster at Next '26, Positioning Kubernetes as AI Agent
* #### Related Sponsors
- #### Related Sponsor
Boost AWS effectiveness with Agentic AI — unify telemetry, reduce noise, and resolve incidents faster. [Learn More](https://www.infoq.com/url/f/964d1561-e323-48c6-9154-f47ca346e3d9/).
Related Content
Apr 30, 2026
Apr 25, 2026
- ##### Cloudflare Sandboxes Reach General Availability, Giving AI Agents Persistent Isolated Environments
Apr 22, 2026
Apr 22, 2026
May 08, 2026
May 05, 2026
May 04, 2026
May 03, 2026
- ##### AWS Interconnect Reaches General Availability with Managed Multicloud and Last-Mile Connectivity
Apr 29, 2026
Related Sponsors
- #### Architecting for Autonomous Reliability: Embedding AI into Your Observability Stack (Live Webinar June 25, 2026) - Save Your Seat
As distributed, event‑driven systems scale, dashboards and human triage break down. This webinar shows how to build AI‑native observability that correlates telemetry, cuts noise, and drives safe, autonomous remediation.
- #### Before it Breaks: AI-Driven Azure Incident Response
In this joint Microsoft and NeuBird AIi webinar, you’ll see how agentic AI is transforming Azure incident management from reactive firefighting to proactive, AI-driven resolution. Register Now.
- Sponsored by

Related Content
Apr 21, 2026
May 01, 2026 
Apr 23, 2026 
Apr 22, 2026 
Mar 31, 2026 
Nov 19, 2025 
**The InfoQ** Newsletter
A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example
Enter your e-mail address
Select your country - [x] I consent to InfoQ.com handling my data as explained in this Privacy Notice.
- ##### [Attacker Bought 30 WordPress Plugins on Flippa and Backdoored All of Them](https://www.infoq.com/news/2026/05/wordpress-plugins-supply-chain/ "Attacker Bought 30 WordPress Plugins on Flippa and Backdoored All of Them")
- ##### [Cloudflare Introduces Flagship: an Edge-Native Feature Flag Service Built on OpenFeature](https://www.infoq.com/news/2026/05/cloudflare-flagship-openfeature/ "Cloudflare Introduces Flagship: an Edge-Native Feature Flag Service Built on OpenFeature")
- ##### [QCon San Francisco 2026: 12 Tracks Announced](https://www.infoq.com/news/2026/04/qconsf-2026-tracks-announced/ "QCon San Francisco 2026: 12 Tracks Announced")
- ##### [How GitHub Is Securing Agentic Workflows in Modern CI CD Systems](https://www.infoq.com/news/2026/05/github-agentic-workflows/ "How GitHub Is Securing Agentic Workflows in Modern CI CD Systems")
- ##### [OpenAI Introduces Websocket-Based Execution Mode to Reduce Latency in Agentic Workflows](https://www.infoq.com/news/2026/05/openai-websocket-responses-api/ "OpenAI Introduces Websocket-Based Execution Mode to Reduce Latency in Agentic Workflows")
- ##### [LinkedIn Consolidates Hiring Data Pipelines to Power AI Driven Talent Systems](https://www.infoq.com/news/2026/05/linkedin-unified-hiring-platform/ "LinkedIn Consolidates Hiring Data Pipelines to Power AI Driven Talent Systems")
- ##### [The AI Joy Gap: Why Some Developers Thrive While Others Struggle](https://www.infoq.com/podcasts/some-developers-thrive-while-others-struggle/ "The AI Joy Gap: Why Some Developers Thrive While Others Struggle")
- ##### [Applying Best Simple System for Now for Software Design](https://www.infoq.com/news/2026/05/best-simple-system-design/ "Applying Best Simple System for Now for Software Design")
- ##### [The Human Scalability Problem: Why Your Teams Don’t Scale Like Your Code](https://www.infoq.com/presentations/human-scalability/ "The Human Scalability Problem: Why Your Teams Don’t Scale Like Your Code")
- ##### [Leadership in AI-Assisted Engineering](https://www.infoq.com/presentations/ai-assisted-engineering/ "Leadership in AI-Assisted Engineering")
- ##### [Engineering at AI Speed: Lessons from the First Agentically Accelerated Software Project](https://www.infoq.com/presentations/engineering-ai/ "Engineering at AI Speed: Lessons from the First Agentically Accelerated Software Project")
- ##### [AI-First Software Delivery: Balancing Innovation with Proven Practices](https://www.infoq.com/presentations/ai-first-practices/ "AI-First Software Delivery: Balancing Innovation with Proven Practices")
- ##### [Cloudflare Launches “Artifacts” Beta, Introducing Git-Like Versioning for AI Agents](https://www.infoq.com/news/2026/05/cloudflare-artifacts-ai-agents/ "Cloudflare Launches “Artifacts” Beta, Introducing Git-Like Versioning for AI Agents")
- ##### [Leading Open Source Author Calls for Verification over Trust in Software Supply Chains](https://www.infoq.com/news/2026/05/stenberg-curl-verification-trust/ "Leading Open Source Author Calls for Verification over Trust in Software Supply Chains")
- ##### [Grafana's Kubernetes Monitoring Helm Chart v4 Brings Multiple Fixes](https://www.infoq.com/news/2026/05/kubernetes-monitoring-helm/ "Grafana's Kubernetes Monitoring Helm Chart v4 Brings Multiple Fixes")
**The InfoQ** Newsletter
A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example
- Get a quick overview of content published on a variety of innovator and early adopter technologies
- Learn what you don’t know that you don’t know
- Stay up to date with the latest information from the topics you are interested in
Enter your e-mail address
Select your country - [x] I consent to InfoQ.com handling my data as explained in this Privacy Notice.
#### Events
- ##### QCon AI Boston
June 1-2, 2026
June 10, 2026
July 25, 2026
- ##### QCon San Francisco
November 16-20, 2026
#### Follow us on
Youtube 232K FollowersLinkedin 26K FollowersInstagram NewRSS 19K ReadersX 57.1k FollowersFacebook 21K LikesBluesky New
#### Stay in the know
The InfoQ PodcastEngineering Culture PodcastThe Software Architects' Newsletter
General Feedback [[email protected]](mailto:[email protected]) Advertising [[email protected]](mailto:[email protected]) Editorial [[email protected]](mailto:[email protected]) Marketing [[email protected]](mailto:[email protected])
InfoQ.com and all content copyright © 2006-2026 C4Media Inc.
Privacy Notice, Terms And Conditions, Cookie Policy
Close
[BT](https://www.infoq.com/int/bt/ "bt")