Rate limiting with local policyv1.0+

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 kong.yaml configuration file:

kong.yaml
_format_version: "3.0"
plugins:
  - name: rate-limiting
    config:
      second: 5
      hour: 1000
      policy: local

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!