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

Support producing a FutureRecord for Kafka #17

Merged
merged 2 commits into from
Nov 19, 2023
Merged

Conversation

scrogson
Copy link
Contributor

@scrogson scrogson commented Nov 15, 2023

This PR is based on the discussion in #16

The current send functionality doesn't allow for specifying the key, partition, or headers for Kafka messages. This PR adds a send_record function that allows for specifying a FutureRecord directly so that the user can customize the message.

@tyt2y3 I'm not 100% sure that this is exactly what you were looking for, but I think it's close. Let me know what you think.

@tyt2y3
Copy link
Member

tyt2y3 commented Nov 17, 2023

Yes, it looks good. I'd probably also re-export the FutureRecord

@scrogson
Copy link
Contributor Author

@tyt2y3 thank you for the feedback. I've addressed your comments. Let me know if you'd like to see anything else.

Copy link
Member

@tyt2y3 tyt2y3 left a comment

Choose a reason for hiding this comment

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

Awesome thanks!

@tyt2y3 tyt2y3 merged commit 63c0cac into SeaQL:main Nov 19, 2023
9 checks passed
Copy link

🎉 Released In kafka-0.3.2 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

@SeaQL SeaQL deleted a comment from github-actions bot Nov 19, 2023
@SeaQL SeaQL deleted a comment from github-actions bot Nov 19, 2023
@tyt2y3
Copy link
Member

tyt2y3 commented Nov 19, 2023

I just made a minor release, let me know if it works for you!

I also added a convenience method send_message, but I guess you'd use the raw FutureRecord API.

https://crates.io/crates/sea-streamer-kafka/0.3.2

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.

2 participants