Rate limiting
What is rate limiting
Rate limiting manages how many HTTP requests are made in a given period of time.
Why we use it
It helps in not overloading backend services. Tenants are able to use this on their own application to track the transaction flow.
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: rate-limiting-example
config:
second: 5 #how many HTTP request calls can be hit per second
hour: 10000 #how many HTTP request calls can be hit per hour
policy: local
plugin: rate-limitingapiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: <your_ingress_name>
namespace: <your_namespace>
annotations:
konghq.com/plugins: rate-limiting-example
spec:
ingressClassName: kong
#rest of your yamlTo understand more on rate limit, you can visit https://docs.konghq.com/hub/kong-inc/rate-limiting.