Building a document e-signing workflow with Durable Functions
summary
Builds a working document e-signing workflow using Azure Functions with the Durable Task-backed Durable Functions model, splitting logic into orchestrators, activities and sub-orchestrator instances. Workflow sends emails, starts one sub-orchestrator per signer, uses wait for external event with a five‑day timeout (storage queue max six days), then generates a signed PDF in blob storage; demo runs locally and completes successfully. Notes practical limits: deterministic orchestrator code, monitoring gaps, and painful upgrade strategies for running orchestrations. Sample app on GitHub.
AI-written summary · about
chapters (46)
- 0:00Introduction to Durable Functions
- 1:27Speaker introduction and agenda
- 3:54Electronic signing workflow explained
- 5:21What is a workflow and orchestration
- 6:03What are Durable Functions
- 8:53Types of Durable Functions
- 9:54Use cases for Durable Functions
- 12:02Orchestrators vs Activities
- 15:15Sample Orchestrator function
- 16:41Orchestrator replay behavior
- 19:55Determinism in Orchestrators
- 22:02Handling time and randomness
- 22:44Loops and parallel tasks
- 23:51HTTP calls in Orchestrators
- 24:12Activity functions explained
- 25:16Demo workflow overview
- 28:30Starting the demo
- 29:39Orchestrator client function
- 31:04Database updates in workflow
- 32:32Sending emails to signers
- 33:55Parallel email sending
- 35:01Sub Orchestrator setup
- 35:46Sub Orchestrator details
- 36:30Waiting for external events
- 37:10Handling timeouts and decisions
- 38:37Event triggering mechanism
- 41:35Main Orchestrator completion
- 42:18Creating signed documents
- 43:23Sending completion emails
- 44:08Running the demo
- 44:28Testing the workflow
- 46:26Signing process demonstration
- 47:39Workflow completion
- 48:02Error handling in Durable Functions
- 48:45Retry policies
- 49:06Monitoring Durable Functions
- 49:26Logging best practices
- 49:49Code analyzers for C#
- 50:11Complex workflows and sub-orchestrators
- 50:51Updating Durable Functions
- 51:14Challenges with updates
- 52:38Activity function updates
- 52:59Summary and takeaways
- 53:45Best practices recap
- 54:29Q&A session begins
- 57:50Resources and links
related talks
38mDeveloping Stateful Serverless Workflows using Azure Durable Functions
58mDeep dive in Durable Functions
58mAdvanced Serverless Workflows with Durable Functions
41mAzure Durable Functions for Developers
28mAzure Durable Functions - Stateful workflow on top of Stateless Architecture
14mOvercoming Serverless challenges with Durable Functions
42mAzure Durable Functions for Serverless .NET Orchestration
46mDeveloper Fundamentals of Serverless.NET Development with Azure Durable Functions
