<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj" -->

---
title: 2 Changes Made Our Azure Durable Functions 3X Faster
description: A nightly batch job built on Azure Durable Functions was sped up roughly 3x (from ~710s to ~240s) by combining two changes: rewriting the orchestrator to fan...
canonical: https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 2 Changes Made Our Azure Durable Functions 3X Faster | daily.dev
og:description: A nightly batch job built on Azure Durable Functions was sped up roughly 3x (from ~710s to ~240s) by combining two changes: rewriting the orchestrator to fan...
og:url: https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj
og:image: https://api.daily.dev/og/posts/PRQbIAmhJ.png
og:image:alt: 2 Changes Made Our Azure Durable Functions 3X Faster
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 2 Changes Made Our Azure Durable Functions 3X Faster

**[Atomic Spin](https://daily.dev/sources/atomicobject)** · 4 min read · 4 upvotes · 0 comments

## Summary

A nightly batch job built on Azure Durable Functions was sped up roughly 3x (from ~710s to ~240s) by combining two changes: rewriting the orchestrator to fan out activities with Task.WhenAll instead of awaiting them sequentially, and raising the maxConcurrentActivityFunctions setting in host.json from its default of 1 to 8. Either change alone did nothing—the fan-out code needs the host config to actually permit parallel execution. The piece also explains why the observed speedup (3x) fell short of the concurrency limit (8x), citing Amdahl's law and the serial portion of the workload, and warns that the concurrency limit should be set based on what downstream APIs can tolerate, not the maximum the host allows.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://spin.atomicobject.com/azure-durable-functions-3x>

## Questions this post answers

### Why does adding Task.WhenAll to an Azure Durable Functions orchestrator not speed up execution?

The host's maxConcurrentActivityFunctions setting in host.json may be capping concurrent activity execution at 1, the default value, which forces activities to run one at a time regardless of how the orchestrator schedules them. Task.WhenAll expresses parallelism in code, but the host config must also permit it; raising the limit (for example to 8) is required alongside the fan-out code for any speedup to appear.

_daily.dev surfaces engineering deep dives like this for teams debugging serverless concurrency bottlenecks._

### What should I consider when setting maxConcurrentActivityFunctions for Azure Durable Functions activities that call external APIs?

The limit should be set based on what downstream dependencies can tolerate under load, not the highest value the host allows, since it protects those external APIs from being overloaded, not just the function itself. One team raised their value from the default of 1 to 8, informed by observed tolerance of the external APIs their activities called.

_Developers tuning serverless throughput without breaking downstream APIs can find practical writeups like this through daily.dev._

### Why did fanning out activities in Azure Durable Functions only produce a 3x speedup instead of matching the 8x concurrency limit?

Not all of the workload is parallelizable, and Amdahl's law caps the achievable speedup: speedup = 1 / ((1 - p) + p/N), where p is the parallelizable fraction and N is the concurrency level. The serial portion of the run never disappears no matter how high the concurrency limit is raised, so a representative run improved from about 710 seconds to about 240 seconds, roughly 3x, despite raising the limit to 8.

_daily.dev helps developers reasoning about realistic parallel speedup limits stay grounded in cases like this one._

## Similar posts on daily.dev

- [Your .NET parallel loop can become serial in a one-CPU container](https://daily.dev/posts/your-net-parallel-loop-can-become-serial-in-a-one-cpu-container-1hj2whqjr) · Stack Overflow Blog · 1 upvotes · 0 comments
- [Unlocking True Vertical Scalability in .NET: Slashing API Latency from 10s to 3s on Azure AKS](https://daily.dev/posts/unlocking-true-vertical-scalability-in-net-slashing-api-latency-from-10s-to-3s-on-azure-aks-xvwrgh4t1) · Medium · 7 upvotes · 0 comments
- [Netflix Reworks Conductor for 420 Million Monthly Workflow Executions and 10X Larger Workflows](https://daily.dev/posts/netflix-reworks-conductor-for-420-million-monthly-workflow-executions-and-10x-larger-workflows-lf9mw9bk6) · InfoQ · 0 upvotes · 1 comments
- [Jaliya's Blog: Microsoft Agent Framework: Agents on Azure Functions with Durable Task Scheduler](https://daily.dev/posts/jaliya-s-blog-microsoft-agent-framework-agents-on-azure-functions-with-durable-task-scheduler-rnbaqmhit) · We Are .NET · 0 upvotes · 0 comments
- [Dynamic Workflows in Azure Functions Hosted Skills: Durable, AI-Led Work for Event-Driven Apps](https://daily.dev/posts/dynamic-workflows-in-azure-functions-hosted-skills-durable-ai-led-work-for-event-driven-apps-py9bifwop) · DevBlogs · 2 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#serverless](https://daily.dev/tags/serverless), [#c#](https://daily.dev/tags/c#)

[View this post on daily.dev](https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"2 Changes Made Our Azure Durable Functions 3X Faster","url":"https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj"},"datePublished":"2026-09-14T12:03:43.530Z","dateModified":"2026-09-14T12:04:06.440Z","description":"A nightly batch job built on Azure Durable Functions was sped up roughly 3x (from ~710s to ~240s) by combining two changes: rewriting the orchestrator to fan...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fac5382b9f7277b910a8949ac9c99da0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fac5382b9f7277b910a8949ac9c99da0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Atomic Spin","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Atomic Spin","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/e2af5ce3adaa403a8cf029268b62419f","url":"https://daily.dev/sources/atomicobject"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,serverless,c#","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Atomic Spin","item":"https://daily.dev/sources/atomicobject"},{"@type":"ListItem","position":3,"name":"2 Changes Made Our Azure Durable Functions 3X Faster"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/2-changes-made-our-azure-durable-functions-3x-faster-prqbiamhj#faq","mainEntity":[{"@type":"Question","name":"Why does adding Task.WhenAll to an Azure Durable Functions orchestrator not speed up execution?","acceptedAnswer":{"@type":"Answer","text":"The host's maxConcurrentActivityFunctions setting in host.json may be capping concurrent activity execution at 1, the default value, which forces activities to run one at a time regardless of how the orchestrator schedules them. Task.WhenAll expresses parallelism in code, but the host config must also permit it; raising the limit (for example to 8) is required alongside the fan-out code for any speedup to appear. daily.dev surfaces engineering deep dives like this for teams debugging serverless concurrency bottlenecks."}},{"@type":"Question","name":"What should I consider when setting maxConcurrentActivityFunctions for Azure Durable Functions activities that call external APIs?","acceptedAnswer":{"@type":"Answer","text":"The limit should be set based on what downstream dependencies can tolerate under load, not the highest value the host allows, since it protects those external APIs from being overloaded, not just the function itself. One team raised their value from the default of 1 to 8, informed by observed tolerance of the external APIs their activities called. Developers tuning serverless throughput without breaking downstream APIs can find practical writeups like this through daily.dev."}},{"@type":"Question","name":"Why did fanning out activities in Azure Durable Functions only produce a 3x speedup instead of matching the 8x concurrency limit?","acceptedAnswer":{"@type":"Answer","text":"Not all of the workload is parallelizable, and Amdahl's law caps the achievable speedup: speedup = 1 / ((1 - p) + p/N), where p is the parallelizable fraction and N is the concurrency level. The serial portion of the run never disappears no matter how high the concurrency limit is raised, so a representative run improved from about 710 seconds to about 240 seconds, roughly 3x, despite raising the limit to 8. daily.dev helps developers reasoning about realistic parallel speedup limits stay grounded in cases like this one."}}]}
```

