---
title: "Design Patterns"
description: "Reusable Flow shapes from the Dex examples. Each pattern page explains the problem and the approach, and links to multi-language code."
canonical_url: "https://docs.superdurable.io/design-patterns/"
source: "docs/content/design-patterns/index.mdx"
locale: "en"
---

# Design Patterns

Reusable Flow shapes from the Dex examples. Each pattern page explains the problem and the approach, and links to multi-language code.

## Flow control

- [Parallel Steps](https://docs.superdurable.io/design-patterns/parallel.md) — Choose static, dynamic, await-all, or first-win concurrent Step coordination.
- [Parallel SubFlows](https://docs.superdurable.io/design-patterns/parallel-subflows.md) — Fan out work to SubFlows, bound parent concurrency, partition across parents, and add durable back pressure.
- [Interruptible execution](https://docs.superdurable.io/design-patterns/interruptible.md) — Stop or redirect long work gracefully based on durable control signals.
- [Durable Timer](https://docs.superdurable.io/design-patterns/durable-timer.md) — Choose cron schedules, reminders, or an inactivity tracker.

## Reliability

- [Failure Handling](https://docs.superdurable.io/design-patterns/failure-handling.md) — Recover from execute or wait failures, escalate to an operator, or enforce a business deadline.
- [Polling](https://docs.superdurable.io/design-patterns/polling.md) — Wait for an external system in one long-running Step.

## Messaging

- [Drain Channels](https://docs.superdurable.io/design-patterns/drain-channels.md) — Finish a Flow after its internal or external Channel messages are processed.
- [Responsive Update](https://docs.superdurable.io/design-patterns/responsive-update.md) — Return at a Step boundary, wait for durable state, or stream incremental updates.
- [Inbound Event Loop](https://docs.superdurable.io/design-patterns/inbound-event-loop.md) — Take inbound messages until a resolution arrives or the conversation goes quiet.

## Data

- [AttributeMap Partitioning](https://docs.superdurable.io/design-patterns/attribute-map-partitioning.md) — Split a growing collection into bounded chunks or hash partitions.
- [Entity Flow with SQL Projection](https://docs.superdurable.io/design-patterns/entity-store.md) — Project durable per-entity Flow Attributes into an application-owned SQL table.

Full samples live under **examples/**. Try the HTTP samples from the [examples playground](https://github.com/superdurable/dex/tree/main/examples/playground).
