orpc-ratelimit

Implement rate limiting for oRPC with memory, Redis, or Upstash backends.

8|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/ali-master/skills --skill orpc-ratelimit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orpc-ratelimit
Source: https://github.com/ali-master/skills/tree/main/skills/orpc-ratelimit
Command: npx skills add https://github.com/ali-master/skills --skill orpc-ratelimit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @orpc/experimental-ratelimit, and includes scripts (resource) components.

What problem does it solve?

This Skill provides rate limiting functionality for oRPC, helping to prevent abuse and maintain service availability.

Core Features & Use Cases

  • Multiple Storage Backends: Supports memory, Redis, and Upstash as storage backends for rate limiting.
  • Adaptive Rate Limiting: Allows configuration of rate limits, windows, and blocking behavior.
  • Use Case: Ideal for protecting APIs from excessive requests, such as rate limiting API access points to prevent DDoS attacks.

Quick Start

Install the @orpc/experimental-ratelimit package and configure the rate limiter with your desired storage backend.

Frequently Asked Questions about orpc-ratelimit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement rate limiting in oRPC to protect microservices from DDoS attacks?

To implement rate limiting in oRPC, you can use a dedicated package to configure rate limits, windows, and blocking behavior. This protects distributed microservices by preventing excessive API requests and abuse.

What storage backends can I use for oRPC rate limiting in distributed systems?

You can configure oRPC rate limiting with multiple storage backends, specifically memory, Redis, and Upstash. This flexibility ensures service availability across various distributed systems and microservices architectures.

How does adaptive rate limiting work for API protection in oRPC?

Adaptive rate limiting in oRPC allows you to configure specific rate limits, time windows, and blocking behavior. This mechanism manages API usage dynamically to prevent abuse and maintain service availability.

Can I use oRPC rate limiting to manage API usage without external storage dependencies?

Yes, you can manage API usage using the in-memory storage backend option. However, for distributed systems and microservices architecture, Redis or Upstash backends are recommended to maintain service availability.

Does oRPC rate limiting support distributed systems and microservices architecture?

Yes, oRPC rate limiting is designed to apply to distributed systems and microservices architecture. It helps manage API usage across multiple instances to prevent abuse and maintain overall service availability.

What is the best way to configure rate limits and blocking behavior for oRPC APIs?

The best way to configure rate limits and blocking behavior is by installing the experimental rate limit package and selecting your desired storage backend. This allows precise control over API protection windows and thresholds.