Your Durable Function runs many times
The orchestrator body re-executes from line one, over and over, until every step is answered.
What you'll learn
- Why an orchestrator body re-executes from line one, many times
- How completed activities are answered from the event history
- Why DateTime.Now and Guid.NewGuid break a Durable Function
Share this passage
Drawing…
Understand it one step at a time
The short runs these in order in about 22 seconds. Here they are written out — pick any step to jump the short straight to it.
It did not run once
Your orchestrator function body executes again and again from the top — the Functions runtime, not a bug, and you only see the final result.
Frequently asked questions
- Why does a Durable Functions orchestrator run from the top every time?
- The orchestrator replays its entire function body from line one on every checkpoint, but activities that already completed answer instantly from the recorded event history instead of running again — that's how it resumes exactly where it left off without keeping the process alive between awaits.
- Why do DateTime.Now and Guid.NewGuid break a Durable Function?
- Replay re-executes the same code path multiple times, so any non-deterministic call would return a different value on each replay and desynchronize the orchestrator from its own history. Use the context's deterministic equivalents instead.
Free app · no app store
These are built for a phone
Every short is drawn at full portrait height, the shape a phone already is. Installed, it opens full-bleed with no address bar across the top — and the whole library reads offline.
Read deeper on Azure
Twenty seconds gets the shape of an idea across. These go into how it behaves in production.
-
How Azure Protects a Mobile App: The Full Request Flow, Layer by Layer
Front Door, your API, Microsoft Entra ID, authorization and a private database — the five layers that stand between a mobile app and its data on Azure.
-
Your Mobile App Is Leaking Its API Key — and Obfuscation Will Not Save It
An APK or IPA is a zip file. Anything hardcoded inside it, including your API key, is already public — and here is how to get it off the phone for good.
-
What Is Microsoft Foundry (Azure AI Foundry)? The Services, and When You Actually Need Them
A plain tour of Microsoft Foundry for developers: the resource, projects, models, agents, tools, and when Azure OpenAI on its own is enough.
More shorts
-
Azure
Secure a Mobile API in 5 Steps
8 steps · 25s
-
Azure
What Happens When You Tap Sign In
8 steps · 25s
-
Azure
Your Mobile App Is Leaking Its API Key
8 steps · 26s
Get new posts by email
New technical articles, Azure AI and GitHub Copilot updates, and upcoming events. No spam, unsubscribe anytime.