Dapr Workflows: The Key to Simplifying Business Process Orchestration
summary
Dapr exposes a sidecar-based Workflow API (introduced around v1.10, current demos on v1.12) that runs user-defined workflows via a gRPC stream to the app, uses component YAMLs to swap backing stores (demo uses Redis state), and offers durable timers (up to a year), child workflows, and external-event waits. Demo implements an order workflow that checks inventory, calls an external Square payment endpoint, issues compensating refunds, shows a 101 vs 100-stock failure path, and resumes after app restart.
AI-written summary · about
chapters (17)
- 0:00Dapr introduction
- 1:02Portability gap in apps
- 2:27What Dapr solves
- 3:31Dapr architecture
- 4:55Dapr sidecar APIs
- 6:22Dapr workflows intro
- 7:03Workflow example
- 8:45Workflow orchestration challenges
- 9:48Dapr workflow concepts
- 12:14Dapr workflow mechanics
- 14:43Code demo setup
- 17:07Checkout workflow
- 18:51Activities and service calls
- 20:16Compensating transactions
- 20:59Demo execution
- 23:28Workflow recovery
- 24:11Closing
related talks
45mDapr Workflows: How to Write Reliable, Fault-Tolerant Applications...
46mDapr in Practice
20mEnhancing Workflow Reliability with Dapr
48mFailure is not an option: durable execution + Dapr = 🚀
54mDapr in Practice
22mBuilding Real-World Applications with Dapr: A Startup Developer's Journey
37mStart building distributed applications with ease using building block APIs
31mBuilding scalable distributed systems powered by Dapr OSS.
