Skip to content

Commit 1fd843f

Browse files
committed
fix concurrency description
1 parent 1881735 commit 1fd843f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-functions/functions-reference-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ Depending on your use case, Durable Functions may significantly improve scalabil
596596
597597
### Considerations for using concurrency
598598

599-
In version 4.x of the Functions runtime, Powershell max worker thread counts are unbounded. In version 3.x and below, PowerShell is single threaded by default. However, concurrency can be added by using multiple PowerShell runspaces in the same process. The amount of runspaces created can be defined by the ```PSWorkerInProcConcurrencyUpperBound``` application setting. The throughput will be impacted by the amount of CPU and memory available in the selected plan.
599+
PowerShell is a _single threaded_ scripting language by default. However, concurrency can be added by using multiple PowerShell runspaces in the same process. The amount of runspaces created, and therefore the number of concurrent threads per worker, is defined by the ```PSWorkerInProcConcurrencyUpperBound``` application setting. By default, the number of runspaces is set to 1,000 in version 4.x of the Functions runtime. In versions 3.x and below, the number of runspaces is set to 1. The throughput will be impacted by the amount of CPU and memory available in the selected plan.
600600

601601
Azure PowerShell uses some _process-level_ contexts and state to help save you from excess typing. However, if you turn on concurrency in your function app and invoke actions that change state, you could end up with race conditions. These race conditions are difficult to debug because one invocation relies on a certain state and the other invocation changed the state.
602602

0 commit comments

Comments
 (0)