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

enum keyed message #640

Closed
itayB opened this issue May 2, 2016 · 2 comments
Closed

enum keyed message #640

itayB opened this issue May 2, 2016 · 2 comments
Labels

Comments

@itayB
Copy link

itayB commented May 2, 2016

Just wonder if the key_pointer capability is librdkafka extension or kafka officially supported.

I'm using librdkafka in my C++ for consume&produce keyed messages - where my keys are enum (for efficiency purpose).
Recently, I've added node.js producer (using kafka-node) and I didn't see option to send there keyed message which is not string.
for more info: http://stackoverflow.com/questions/36979586/kafka-node-send-enum-key-message-instead-of-string-key

@edenhill
Copy link
Contributor

edenhill commented May 2, 2016

The Kafka protocol specifies the message key as arbitrary opaque binary bytes, thus it can contain any kind of data and there is no defined format for it, that is up to the application to define.

@itayB
Copy link
Author

itayB commented May 2, 2016

OK. Great, thanks for the quick answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants