Looking for the plugin's configuration parameters? You can find them in the Service Protection configuration reference doc.
Set absolute maximum rate limits for services using the Service Protection plugin. You can use this plugin together with other rate limiting plugins to apply granular rate limits based on different entities.
If you want to apply global rate limits or apply rate limits to routes and consumers, see the following other rate limiting plugins:
Plugin | Description | Service | Route | Consumer | Consumer Group |
---|---|---|---|---|---|
Service Protection | Apply absolute rate limits to services. | ||||
Rate Limiting | Rate limit services, consumers, and routes or apply global rate limits. | ||||
Rate Limiting Advanced | Rate limit services, consumers, and routes or apply global rate limits. The Rate Limiting Advanced plugin extends the functionality of the Rate Limiting plugin by providing advanced tuning settings and the ability to apply multiple limits in sliding or fixed windows. | ||||
AI Rate Limiting Advanced | Apply rate limits to traffic from LLMs. This plugin extends Rate Limiting Advanced with AI functionality. |
The Service Protection plugin uses the same Rate Limiting Library as the other rate limiting plugins.
FAQs
Does the Service Protection plugin replace the Rate Limiting or Rate Limiting Advanced plugins?
No. The Service Protection plugin only rate limits services. You can still use the Rate Limiting and Rate Limiting Advanced plugins to rate limit other entities, like consumers and routes.
Can I use the Service Protection plugin with other rate limiting plugins?
Yes. You can rate limit a service with the Service Protection plugin, then rate limit routes, consumers, or consumer groups with the other rate limiting plugins.
Note: We don’t recommend using multiple rate limiting plugins on the same service only. We recommend applying Service Protection on the service, and Rate Limiting (or Rate Limiting Advanced) on the service/consumer pair, for more granular rate limits.
When would I use the Service Protection plugin with other rate limiting plugins?
You should use the Service Protection plugin to rate limit your services and use the other rate limiting plugins to limit other entities, like consumers or routes, or to apply global rate limits.