Rate Limiting
If you prefer to use the Admin API, check out the .
You need a Kong Gateway instance with Kong Manager .
On the Workspaces tab in Kong Manager:
- Open the default workspace.
- Find the Rate Limiting plugin, then click Enable.
-
If you switched it to Scoped, the rate limiting would apply the plugin to only one service, route, or consumer.
By default, the plugin is automatically enabled when the form is submitted. You can also toggle the This plugin is Enabled button to configure the plugin without enabling it. For this example, keep the plugin enabled.
Complete only the following fields with the following parameters.
- config.limit:
- config.window_size:
Click Install.
Enter in your browser address bar, then refresh your browser six times. After the 6th request, you’ll receive an error message.
Wait at least 30 seconds and try again. The service will be accessible until the sixth (6th) access attempt within a 30-second window.