upstash-ratelimit ยท emploidai Marketplace
emploidai Marketplace
Add-onsAppletsPlugins
Search tools, teams, and capabilitiesPublish
MarketplacePluginsupstash-ratelimit
Plugin
Limited listing

upstash-ratelimit

by elifnurdeniz ยท v0.0.1

This plugin provides Upstash's Redis-based rate limiting service integrated with Dify AI platform.

252 installsUpdated May 29, 2025
Publisher information is incomplete

This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.

Capabilities

Tools

Available inside your emploidai workspace after installation.

Data sources

Available inside your emploidai workspace after installation.

Category

tool

Version

0.0.1elifnurdeniz

Requirements

Maximum memory 256MB

Pricing

Not disclosed by publisher

Security & access

Review before installing

CompatibleRequires emploidai 1.0.0+

Permissions

  • Uses app capability
  • Uses endpoint capability
  • Uses storage capability
  • Uses tool capability
  • Requires encrypted tool credentials

Dependencies

No additional dependencies

Resources

Privacy policy
emploidai Marketplace

Discover capabilities. Review access. Install inside your workspace.

DocumentationSecuritySupportPrivacyTerms

upstash-ratelimit

Author: elifnurdeniz Version: 0.0.1 Type: tool

Description

Upstash Rate Limit Plugin for Dify

๐Ÿš€ Overview

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.

โœจ Benefits

  • Prevents API Exhaustion โ€“ Ensures services are not overwhelmed by excessive requests, protecting system resources.
  • Protects Against Abuse & Misuse โ€“ Limits excessive requests from malicious actors or misconfigured applications.
  • Optimizes Costs โ€“ Prevents unnecessary API usage, reducing server costs for cloud-based applications.
  • Built for Scalability โ€“ Upstash Redis is a serverless database, ensuring the rate limiter scales with flexibility both up and down.

๐Ÿ› ๏ธ Features

  • Redis-Based Rate Limiting: Leverages Upstash Redis for efficient rate limiting.
  • Fixed and Sliding Window Support: Choose between different rate-limiting strategies.
  • Per User or Global Rate Limiting: Apply rate limits per user or globally.
  • Customizable Parameters: Configure window size, max requests, and rate limit scope.

๐Ÿ”ง Setup & Configuration

1๏ธโƒฃ Prerequisites

  • A Dify AI instance running
  • An Upstash Redis account (Sign up here)
  • A Redis Database (Create from here)
  • Your Upstash Redis REST URL and REST Token

2๏ธโƒฃ Installation

To install and activate the plugin:

  1. Navigate to the Dify Plugin Store.
  2. Search for Upstash-Ratelimit.
  3. Click Install and follow the setup instructions.

3๏ธโƒฃ Plugin Configuration

After installation, you must provide:

  • Upstash Redis REST URL: The REST API endpoint for your Upstash Redis database.
  • Upstash Redis REST Token: The API authentication token for your Redis instance.

4๏ธโƒฃ Usage

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:

  • If the status contains "success", continue the request.
  • If status contains "error", take alternative actions (e.g., return a rate limit exceeded message).

๐Ÿ“Œ Available Parameters

ParameterTypeRequiredDescription
window typeSelectโœ… YesDefines the rate limit type (fixed window or sliding window). Learn more here.
window sizeNumberโœ… YesTime window size in seconds.
max requestsNumberโœ… YesMaximum allowed requests within the window.
rate limit scopeSelectโœ… YesApplies rate limit rule for all users or per user.
rateNumberโŒ NoNumber of requests deducted per operation. Defaults to 1.

โœ… Example Usage

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:

Author

Github: Elifnurdeniz Mail: elif.deniz@std.bogazici.edu.tr Repo: Upstash Ratelimit Plugin