Yodai Code Podcast

Separating Orchestration from Execution in Durable Objects


Listen Later

A deep dive into architectural patterns for Cloudflare Durable Objects, exploring the critical distinction between orchestration logic and domain logic. This episode examines why mixing state machine coordination with business logic creates scalability problems, particularly when integrating external systems like MCP agents. Learn why splitting orchestration into its own layer before migrating to cloud-side agents is essential to avoid race conditions and state mutation conflicts. Discover whether Durable Objects should become pure routers or sit beneath a separate orchestration worker, and understand the sequencing decisions that determine successful system evolution. Perfect for engineers building stateful, asynchronous workflows on edge infrastructure.

In this episode:
00:11 - The hidden cost of mixing orchestration with domain logic
00:52 - Why moving analyzers to the cloud breaks your current architecture
01:38 - Splitting coordinators from workers before migration
01:54 - The sequencing decision that makes everything else easier

---
Copy this prompt into Cursor to start implementing:

Based on my podcast episode "Separating Orchestration from Execution in Durable Objects", help me:
- Understanding software architecture principles
- Best practices in code organization

Analyze my codebase, identify the relevant files, create a plan, then implement the changes.
...more
View all episodesView all episodes
Download on the App Store

Yodai Code PodcastBy Mikko