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

document why keys aren't settable in typed producer #89

Open
cyberhck opened this issue Oct 17, 2023 · 0 comments
Open

document why keys aren't settable in typed producer #89

cyberhck opened this issue Oct 17, 2023 · 0 comments

Comments

@cyberhck
Copy link
Contributor

while #82 will allow us to set keys to a message through middleware, we don't allow this by design in typed producer.

in 99% of the cases, we're not supposed to use keys, it's supposed to be managed by kafka.
in the odd times when we do need that functionality we should either use a middleware or raw producer.

The initial KP release was such brutal that it was not possible to set key at all, but we needed the functionality to have keys and realized we can't avoid 100% of the time. I'll write this in docs later.

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