Rate limiting with local policy

Users are allowed either 5 requests per second, or 1000 requests per hour. The local policy stores counters in-memory on the node.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: rate-limiting
    config:
      second: 5
      hour: 1000
      policy: local
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!