Throttle Node Example Use Cases
Alert Notifications When sending alert notifications, you may want to limit the number of notifications sent to a user in a given period to avoid bombarding them with too many alerts. Email Campaigns If you are running an email campaign, you may want to limit the number of emails sent to a customer within a specific timeframe to avoid overwhelming them with too many messages. In general, a Throttle step can be useful in any situation where you need to control the flow of data or limit the frequency of an action. Courier will allow you to specify what next steps should be taken when the throttle is triggered, and what steps should be taken when the throttle is not triggered.Creating A Throttle Step
To create a Throttle, use the “Throttle” action, then fill out details in the step node. Specify maximum number of events to allow through the throttle, and the time period to throttle by. You have the options to throttle by:| Scope | Usage |
|---|---|
user_id | Apply throttling by using user_id coming from data |
GLOBAL | Let Courier decide the throttle parameter. |
Dynamic | You can use arbitrary value available in your run_context by referencing it like refs.data.throttle_key |
user_id. You have to supply user_id in the following manner to throttle the user.

Creating Throttle Step