Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Question: How can I get transit serialized (as msgpack) bytes to pass to a specialized "writer"? #36

Open
dcj opened this issue Mar 24, 2021 · 0 comments

Comments

@dcj
Copy link

dcj commented Mar 24, 2021

I'd like to serialize Kafka values as (msgpack) transit.

The python-kafka kafka.KafkaProducer takes:

value_serializer (callable) – used to convert user-supplied message values to bytes. If not None, called as f(value), should return bytes. Default: None.

Is there a way to get the serialized bytes from transit-python, or are serialization and writing combined/complected?

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

No branches or pull requests

1 participant