Workflow Execution Concurrency

Configure concurrency for Dapr Workflows to rate limit workflow and activity executions.

You can configure the maximum concurrent workflows and activities that can be executed at any one time with the following configuration. These limits are imposed on a per sidecar basis, meaning that if you have 10 replicas of your workflow app, the effective limit is 10 times the configured value.

Setting these limits can help prevent resource exhaustion on your Dapr sidecar and application, or to drain down a backlog of workflows if there had been a spike in activity causing resource contention. These limits do not distinguish between different workflow or activity definitions, so they apply to all workflows and activities running in the sidecar.

See the Dapr Configuration documentation for more information on how to apply configuration to your Dapr applications.

apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
  name: appconfig
spec:
  workflow:
    maxConcurrentWorkflowInvocations: 100 # Default is infinite
    maxConcurrentActivityInvocations: 1000 # Default is infinite