What is the Rate Limiting plugin used for?
The Rate Limiting plugin is used to control the rate of requests that clients can make to your services. It helps prevent abuse and ensures fair usage by limiting the number of requests a client can make in a given time period.
Can I set different rate limits for different endpoints or services?
Yes, you can configure rate limits on a per-service or per-route basis by applying the Rate Limiting plugin to specific services or routes in Kong.
How does the policy
option affect rate limiting?
The policy
option determines how rate limits are stored and enforced. The local
policy uses Kong’s in-memory storage, while the redis
policy uses Redis, which is useful for distributed setups where rate limiting needs to be consistent across multiple Kong data plane nodes.