by elifnurdeniz ยท v0.0.1
This plugin provides Upstash's Redis-based rate limiting service integrated with Dify AI platform.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: elifnurdeniz Version: 0.0.1 Type: tool
The Upstash Rate Limit Plugin integrates Upstash's Redis-based rate limiting service with the Dify AI platform. This plugin allows developers to enforce request limits within a defined time window using fixed or sliding window strategies.
To install and activate the plugin:
After installation, you must provide:
This plugin can be used within a Dify Chatflow / Workflow / Agent to control request limits.
The plugin outputs structured JSON data, including key fields that can be used to handle the request.
The success or failure of a request can be verified using the status variable.
You can add an IF/ELSE condition in the app:
| Parameter | Type | Required | Description |
|---|---|---|---|
window type | Select | โ Yes | Defines the rate limit type (fixed window or sliding window). Learn more here. |
window size | Number | โ Yes | Time window size in seconds. |
max requests | Number | โ Yes | Maximum allowed requests within the window. |
rate limit scope | Select | โ Yes | Applies rate limit rule for all users or per user. |
rate | Number | โ No | Number of requests deducted per operation. Defaults to 1. |
A sliding window rate limit that allows 10 requests per minute globally:
{
"window type": "sliding window",
"window size": 60,
"max requests": 10,
"rate limit scope": "global"
}
In console:
Github: Elifnurdeniz Mail: elif.deniz@std.bogazici.edu.tr Repo: Upstash Ratelimit Plugin