Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does KAFKA's custom quota callback provide a mechanism to enforce Quotas per KAFKA topic / client and to throw Exception instead of throttling. #95

Open
Hussain-Badshah opened this issue Apr 16, 2024 · 0 comments

Comments

@Hussain-Badshah
Copy link

Hi All,

I have a use case that I want to enforce the KAFKA Quotas per client but on per topic basis. The documentations say that the built-in kafka quotas cannot be applied on per topic basis, instead they will be applied on per broker basis only.

So we also have custom quota callback mechanism in place through which we can customize the Quota mechanism, as part of this KIP: https://cwiki.apache.org/confluence/display/KAFKA/KIP-257+-+Configurable+Quota+Management but I can't figure out 2 things:

  1. Right now, KAFKA throttles the client if it has reached the quota limit but my use case is not to throttle but to throw the exception for the produce request if the request is violating the quota. Can this be implemented using custom quota callback?
  2. Can custom quota callback be used to enforce quota on per topic basis?

I am unable to figure out answers to above 2 questions and any help would be really really appreciated. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant