# Cluster, Workflows & Cloudflare Durable Objects

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

[Effect | TypeScript for the AI Era](https://www.youtube.com/@effect-ts) · Published 2026-10-12 · 31:23 · B tier · Effect

[Watch on YouTube](https://www.youtube.com/watch?v=CBPttaqp9Ec) · [All RatTube videos](/tube)

## Summary

The speakers distinguish Effect Cluster entities from workflows and their activities. Entities process messages, while a workflow groups steps that need [durable execution](/lore/durability). A workflow engine supplies the implementation that runs those descriptions.

They explore using Cloudflare [Durable Objects](/lore/workers-answer-requests-durable-objects-own-named-state) as a target for this work. The discussion also connects [Alchemy](/lore/infrastructure-as-effects) provisioning with runtime resource access and shows how changing a [Layer](/lore/layers-make-dependencies-explicit) can select a different runtime or infrastructure backend.

## Section notes

- [0:45](https://www.youtube.com/watch?v=CBPttaqp9Ec\&t=45s): Cluster entities act as message-processing units with optional persisted messages.
- [5:37](https://www.youtube.com/watch?v=CBPttaqp9Ec\&t=337s): Workflows organize durable work into activities.
- [11:31](https://www.youtube.com/watch?v=CBPttaqp9Ec\&t=691s): Alchemy resources expose runtime access as well as provisioning.
- [17:08](https://www.youtube.com/watch?v=CBPttaqp9Ec\&t=1028s): Layer selection changes the runtime and motivates a Cloudflare target.
- [22:47](https://www.youtube.com/watch?v=CBPttaqp9Ec\&t=1367s): Implementing WorkflowEngine provides an execution backend.
- [28:26](https://www.youtube.com/watch?v=CBPttaqp9Ec\&t=1706s): A Cluster-backed workflow engine can target different deployments.

## Key concepts

- [Durable Objects](/lore/workers-answer-requests-durable-objects-own-named-state)
- [Alchemy](/lore/infrastructure-as-effects)
- [Layer](/lore/layers-make-dependencies-explicit)
- [durable execution](/lore/durability)

## Our take

An office-hours segment that untangles how Effect Cluster, Effect Workflows and Cloudflare Durable Objects relate: cluster as an actor framework of sharded entities, and workflows that run on a workflow engine layer, which today means the cluster engine or an in-memory one.

## Related videos

- [What is Alchemy? Zero-to-Production Infrastructure in TypeScript & Effect | Office Hours 27](/tube/what-is-alchemy-zero-to-production)
- [Production-grade app architecture with Effect (Workshop Part 1 – Effect Days 2025 )](/tube/production-grade-app-architecture-with-effect)
- [Alchemy vs Terraform + Decoupling Infrastructure with Layers](/tube/alchemy-terraform-infrastructure-with-layers)
- [How Durable Objects and D1 Work: A Deep Dive with Cloudflare’s Josh Howard](/tube/how-durable-objects-and-d1-work)

Summary based on the transcript. Written 2026-11-15.
