You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Out workflows can execute numerous downstream services. Rate limiting can be used to protect these
downstream services from flooding. In addition, rate limiting can help us keep our cost
at a desired rate in cases where downstream service invocations have an associated cost factor.
Extension Definition
Parameter
Description
Type
Required
extensionid
Unique extension Id (default is 'workflow-kpi-extension')
Sets the rate limiting on number of actions that can be executed per second. Notice that the number is represented as number type, so that you can set it to less than 1 if needed. For example, set the number to 0.1 means you want workflow actions should be executed once every 10 seconds. Default zero value means 'unlimited'
number
no
maxConcurrentActions
Maximum number of actions that can be executed in parallel
string
no
maxProducedEventsPerSecond
Sets the rate limiting on number of events that can be produced per second. Notice that the number is represented as number type, so that you can set it to less than 1 if needed. For example, set the number to 0.1 means workflow can produce events once every 10 seconds. Default zero value means 'unlimited'
string
no
maxStates
Maximum number of workflow states that should be executed. Default is zero, meaning unlimited.
string
no
maxTransitions
Maximum number of workflow transitions that should be executed. Default is zero, meaning unlimited.
string
no
All Instances Definition
Parameter
Description
Type
Required
maxActionsPerSecond
Sets the rate limiting on number of actions that can be executed per second. Notice that the number is represented as number type, so that you can set it to less than 1 if needed. For example, set the number to 0.1 means you want workflow actions should be executed once every 10 seconds. Default zero value means 'unlimited'
number
no
maxConcurrentActions
Maximum number of actions that can be executed in parallel
string
no
maxProducedEventsPerSecond
Sets the rate limiting on number of events that can be produced per second. Notice that the number is represented as number type, so that you can set it to less than 1 if needed. For example, set the number to 0.1 means workflow can produce events once every 10 seconds. Default zero value means 'unlimited'
string
no
maxStates
Maximum number of workflow states that should be executed. Default is zero, meaning unlimited.
string
no
maxTransitions
Maximum number of workflow transitions that should be executed. Default is zero, meaning unlimited.
string
no
Example
The following example shows a workflow definition on the left and
an associated sample Rate Limiting extension definition on the right.
We assume that our
extensions definition yaml is located in a resource accessible via URI:
file://myextensions/ratelimiting.yml.