Skip to content

Scale Groups

Andre edited this page Jun 3, 2023 · 3 revisions

ScaleGroups

Microflow scale groups can be set to control the maximum allowed concurrent steps to execute at a time. This is to prevent that external resources is overloaded with requests from Microflow. For example, if an external API is called, a scale group can be set to limit the concurrent calls that Microflow will make to the API. This can be done by setting the ScaleGroupId property of a step, and setting the ScaleGroupMaxConcurrentInstanceCount property for the scale group by calling the scaleGroup API endpoint. When the maximum concurrent executing step count is reached, the subsequent steps with the same scaleGroupId will be queued and executed as soon as an executing step in the scale group completes.

API

Route Method Description
scaleGroup/{scaleGroupId}/{maxWaitSeconds:int?} GET,POST Set the maximum instance count for the scale group
scaleGroup/{scaleGroupId} GET Get the maximum instance count for the scale group
  • {scaleGroupId} : Uniquely identifies the scale group and can be any string.
  • {maxWaitSeconds:int?} : This indicates how long to wait for a 200 OK result before returning a 202 accepted result.
  • ScaleGroupState : see POST object below:
public class ScaleGroupState
{
    public int ScaleGroupMaxConcurrentInstanceCount { get; set; }
    public int PollingIntervalSeconds { get; set; }
    public int PollingIntervalMaxSeconds { get; set; }
    public int PollingMaxHours { get; set; }
}

Relevant Step Properties

  • ScaleGroupId string : Uniquely identifies the scale group and can be any string that identifies a resource.

Clone this wiki locally