Replies: 1 comment
-
this sample shows Json, Proto and Avro serializers https://github.com/ridomin/Payloads |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MQTT does not use, or imply, any text encoder to pub/sub messages. Although the most common messaging serialization format is JSON string encoded as UTF8, will be good to allow custom BinarySerializers such as AVRO, Protobuf, or CBOR.
Here is a proposal for a customizable
PayloadBinarySerializer
By default, the SDK can provide a JSONUtf8PayloadConvention like:
When using other Binary formats, is very common to require a type definition, aka schema (usually produced by codegen tools) that must be provided before converting to/from bytes.
Beta Was this translation helpful? Give feedback.
All reactions