Cloud Technology

Can Azure Functions effectively handle long-running stateful workflows with Durable Functions?

JE Asked by Jessica Pearson · 22-11-2025
0 upvotes 11,355 views 0 comments
The question

I need to build an order processing system that involves several external API calls and manual approvals that could take days. Is it reliable to use Azure Durable Functions for this, or will I run into timeout issues? I'm worried about the "cold start" latency and state management.

3 answers

0
BE
Answered on 27-11-2025

Durable Functions are specifically designed for this "Human-in-the-loop" pattern. The framework handles the state for you by "checkpointing" progress to Azure Storage. When a workflow is waiting for an approval, the function execution stops (saving you money) and resumes exactly where it left off when the event arrives. To mitigate cold starts, consider the Premium Plan which keeps a "warm" instance ready. For long-running tasks, just ensure your "Activity Functions" stay within the standard timeout, while the "Orchestrator" can technically run for days or even weeks.

0
GE
Answered on 30-11-2025

Are you planning to use the "Fan-out/Fan-in" pattern for your API calls to improve throughput, or is the workflow strictly sequential?

WI 03-12-2025

I was thinking sequential, but fan-out actually sounds much better for the inventory checks we need to do across three different warehouses. If one of those warehouses fails to respond, can I set a custom retry policy within the orchestrator without losing the state of the other two successful checks? I want to avoid starting the whole process from scratch if possible.

0
AB
Answered on 05-12-2025

Durable Functions are great for this. Just make sure your orchestrator code is "deterministic"—no random numbers or direct Date calls inside it!

JE 07-12-2025

Great point, Abigail! Using CurrentUtcDateTime from the context instead of DateTime.Now is a classic trap for beginners.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session