Skip to content

Adding codec abstraction for compatibility #179

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

Closed
wants to merge 1 commit into from

Conversation

jerluc
Copy link

@jerluc jerluc commented Jun 25, 2014

The Codec class has been added to support Snappy-Xerial compatibility in the Producer. Without this, Java-based consumers will be unable to decode messages produced by non-Xerial Snappy producers.

The `Codec` class has been added to support Snappy-Xerial
compatibility in the Producer. Without this, Java-based
consumers will be unable to decode messages produced
by non-Xerial Snappy producers.
payloads: list(bytes), a list of payload to send be sent to Kafka
key: bytes, a key used for partition routing (optional)
"""
def create_encoded_message(messages, codec=CODEC_NONE):
Copy link
Collaborator

Choose a reason for hiding this comment

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

We lost the ability to specify a key here?

@dpkp dpkp force-pushed the master branch 2 times, most recently from b5e3a14 to 4955582 Compare June 12, 2015 08:15
@dpkp
Copy link
Owner

dpkp commented Feb 16, 2016

Closing - by default all snappy encoded messages are now xerial-compatible, so this should no longer be an issue.

@dpkp dpkp closed this Feb 16, 2016
orange-kao pushed a commit to orange-kao/kafka-python that referenced this pull request Jul 23, 2024
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.

3 participants