Rate Limiting Advanced

Enterprise only

Rate limit by consumer usernamev3.15+

Rate limits consumers based on their username. By default, when identifier is set to consumer, counters are keyed by consumer.id. Setting counter_key to consumer.username keys the counter by username instead, so consumers with the same username share a single rate limit counter regardless of which control plane processed the request. This is useful in distributed deployments where consumers with the same username exist across multiple control planes but should be subject to a unified rate limit.

Set up the plugin

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!