We are using Kafka to process events. We have 2 use cases which resulting more events.
- Sometimes we are getting lot of bot traffic.
- Some of our customers are generating more traffic frequently.
This is causing delay in processing other customers events.
So I want to add some rate limiting based on the customer. As per my research there is no way to add rate limiting while publishing message to Topic.
Our application is developed on Micronaut framework.
Is there a way to add limits at consumer level?
Is there any java related frameworks on top of Kafka to implement rate limiting ?
Request throttling can be controlled with quotas on the broker, which the clients then internally understand without changing code (other than adding authentication to specify client groups).