-
Notifications
You must be signed in to change notification settings - Fork 83
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
Allow for more control over consumer group used #140
Comments
Ah that's interesting. So in your ideal scenario you would be able to define a fixed consumer group id per view? I think the tricky part is figuring how that works when you have multiple users in kafka-webview all consuming the same topic using the same consumer group id. I feel like the consumers stored state would over write each other no? I'll do some investigating tomorrow. |
@donovanmuller Which Authorizer are you using in your cluster? https://docs.confluent.io/current/kafka/authorization.html seems to indicate that the username for the ACL is generated from the client's certificate when using SSL. For SASL it's based on the supplied username. I haven't found documentation that shows examples using the consumer group id as the username |
@Crim We are using SASL for authentication and unfortunately the Kafka cluster is operated by another team, so I'm making some assumptions here but I believe they have used this form of specifying the
Using the example above, I would like to configure |
I need to do some testing to see if we were to setup static consumer group ids for a view (or cluster), will Kafka-WebView run into issues when multiple users attempt to consume using the same view by only receiving a portion of the data back from Kafka. I feel like how we're currently explicitly subscribing to specific partitions during the consume, this wouldn't be a problem. Along the same lines, I need to verify how consumer state gets stored. If it's tied to the consumer group, or consumer id specifically. |
So I've put some more thought into this and pretty sure what you've outlined makes perfect sense. I like the idea of:
I believe doing the above, and still using consumer id's tied to the current user in Kafka-WebView allows things to work how one would expect in regards to consuming all data from a topic even if there are simultaneous subscribes/consumers in the same consumer group. I've started putting together a branch that incorporates these changes. 👍 |
Awesome. Let me know if/when you'd like me to test on my side. |
Clusters that have authorization configured need more options around the consumer group Id (
consumerIdPrefix
), as ACL's are often based on the consumer group used.For example, as it is now, the
consumerIdPrefix
is not sufficient because ACL's are linked to a specific/static consumer group Id and therefore a varyingconsumerIdPrefix
+ suffix combination does not work in this scenario.Besides supporting a static consumer group Id, it would be great if a Cluster default consumer group Id could be provided when creating a new Cluster and potentially also override that consumer group per View.
The text was updated successfully, but these errors were encountered: