Rate Limit
AI-generatedSummary
Limit workflow executions based on a configurable request rate using Redis keys to track counts and block state.
Inputs
- Redis Limit Counter Key (required) — Base Redis key for counting requests within the time window; supports expressions (e.g., rate-limit-{{ $json.userId }})
- Limit (required) — Maximum allowed number of requests in the specified time window
- Time Period (required) — Duration of the time window
- Time Unit (required) — Unit of time for the time window (minutes, hours, days)
- Redis Block Key (required) — Base Redis key for the block state to prevent further requests after the limit is exceeded; supports expressions
- Block Time Period (required) — Duration for which requests are blocked once the limit is exceeded
- Block Time Unit (required) — Unit of time for the block period (minutes, hours, days)
Output shape
two output branches with arrays of items
The first output sends items that have not exceeded the rate limit. The second output sends items that have exceeded the rate limit and are currently blocked. Requests increment a Redis counter with expiration; upon exceeding the limit, a block key is set to prevent further processing until block period expires.