a6-plugin-limit-req

Configure the APISIX limit-req plugin via the a6 CLI with rate and burst.

1|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/api7/a6 --skill a6-plugin-limit-req-api7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: a6-plugin-limit-req
Source: https://github.com/api7/a6/tree/main/skills/a6-plugin-limit-req
Command: npx skills add https://github.com/api7/a6 --skill a6-plugin-limit-req-api7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a straightforward method to configure the Apache APISIX limit-req plugin via the a6 CLI, enabling per-second rate limiting with optional burst control to protect upstream services.

Core Features & Use Cases

  • Configure leaky-bucket rate limiting with tunable rate and burst
  • Support various key types (remote_addr and more) and nodelay behavior
  • Enable Redis-backed distributed state and intelligent traffic smoothing across nodes
  • Combine with limit-count for layered protection across routes and consumers

Quick Start

Create a route with the limit-req plugin configured for the desired rate and burst using a6.

Frequently Asked Questions about a6-plugin-limit-req

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

FAQPage Schema
How do I configure rate limiting in APISIX using the a6 CLI?

Use the a6 CLI to attach the limit-req plugin to a route, setting per-second request rates and burst allowances to enforce traffic smoothing and protect upstream services.

How does leaky-bucket traffic smoothing work for APISIX routes?

Leaky-bucket traffic smoothing processes requests at a configured steady rate while absorbing temporary spikes into a burst buffer, smoothing traffic flow to upstream services.

Can I use Redis for distributed rate limiting state across multiple APISIX nodes?

Yes, the limit-req plugin supports a Redis policy to store distributed state, allowing rate limit synchronization and traffic smoothing across multiple APISIX nodes.

What is the difference between APISIX limit-req and limit-count plugins?

The limit-req plugin uses leaky-bucket logic for per-second traffic smoothing with burst control, whereas limit-count restricts total request counts over a period. They can be combined for layered route protection.

Does APISIX limit-req support nodelay behavior for burst traffic handling?

Yes, the limit-req plugin supports a nodelay field, allowing burst requests to be processed immediately without smoothing delays when they fall within the configured burst limit.