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

Include topic and partition in message struct #360

Merged
merged 4 commits into from Aug 31, 2019

Conversation

thiamsantos
Copy link
Contributor

@thiamsantos thiamsantos commented Aug 27, 2019

Motivation

  • In our current use case, we want to consume multiple topics, with the consumer group supervisor. To do that we need a way to identify the message to each topic reaching the handler.

Proposed solution

  • Include the topic key in the Protocol.Fetch.Message struct of the response.
  • Include the partition key in the Protocol.Fetch.Message struct of the response.

Related

#358

@thiamsantos thiamsantos changed the title Include topic in message struct Include topic and partition in message struct Aug 28, 2019
Copy link
Collaborator

@dantswain dantswain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a good change. I don't think it will cause any compatibility issues because we're only adding fields to a struct. @joshuawscott or @jbruggem can you double check my logic?

Copy link
Member

@joshuawscott joshuawscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dantswain dantswain merged commit 8127fa6 into kafkaex:master Aug 31, 2019
@thiamsantos
Copy link
Contributor Author

Thanks for the review ❤️

@dantswain @joshuawscott Do you plan to release a new hex version with these changes soon?

@joshuawscott
Copy link
Member

@thiamsantos my apologies for the long release delay - I'm going to have a new release today or tomorrow (depending on how long it takes to get through the release notes)

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

Successfully merging this pull request may close these issues.

None yet

3 participants