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

Add seek_by method #462

Merged
merged 4 commits into from
Jun 19, 2024
Merged

Add seek_by method #462

merged 4 commits into from
Jun 19, 2024

Conversation

zinahia
Copy link
Contributor

@zinahia zinahia commented Jun 19, 2024

This is to enable using only the needed parameters and remove the need to provide or create a fake Rdkafka::Consumer::Message which is an implementation wrapper that should not be needed for the API of the clients when calling seek.

It is my humble opinion that providing this alternative can give a cleaner interface for the clients to use, however I'm happy to receive feedback or change it in case there is something I might be missing.

The specs I added are based on the existing specs of the seek method.

PS to the maintainers: Thanks for your work, this is a great library ❤️

This is to enable using only the needed parameters and remove the need to create an Rdkafka Message which is an implementation wrapper that should not be needed for the API of the clients
@mensfeld mensfeld self-requested a review June 19, 2024 11:19
@mensfeld mensfeld assigned mensfeld and zinahia and unassigned mensfeld Jun 19, 2024
@mensfeld mensfeld added enhancement consumer Consumer API related stuff labels Jun 19, 2024
Copy link
Member

@mensfeld mensfeld left a comment

Choose a reason for hiding this comment

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

You mind adding this to the changelog?

@mensfeld
Copy link
Member

Thanks. This change aligns well with the nature of the lib (low level) as it actually provides lower level API than the one already existing :)

@mensfeld mensfeld merged commit c33ee20 into karafka:main Jun 19, 2024
5 checks passed
@zinahia zinahia deleted the feat-add-seek-by branch June 19, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consumer Consumer API related stuff enhancement
Development

Successfully merging this pull request may close these issues.

2 participants