Throttling component
The throttler components allows you to ensure that a specific endpoint does not get overloaded. It allows you to throttle messages and only let a maximum amount through per time period to the next component.
Configuration
The Throttling component has the following configuration options:
Property | Default | Description |
---|---|---|
Time Period | / | The time period during which the maximum request count is valid for, in milliseconds. |
Max Requests | / | Amount of messages sent for each time period. Can be set as a number for a fixed amount or a simple expression for a dynamic amount. |
Example
The throttle component in the image above has the following configuration:
Property | Value |
---|---|
Time Period | 10000 |
Max Requests | 5 |
In this example all messages coming from the Inbound HTTP component will be throttled and every 10 seconds a maximum of 5 messages will be let through to go to the HTTP component.