Replies: 4 comments
-
CBOR (Concise Binary Object Representation) looks interesting: https://cbor.io |
Beta Was this translation helpful? Give feedback.
-
A benefit of using a binary format is that it's much more effective when transfering binary objects, like images or files, because you don't need encode then as strings with e.g base64. |
Beta Was this translation helpful? Give feedback.
-
CBOR is supported in the latest MQTTX desktop app, so you can easily view the content of messages encoded with CBOR: |
Beta Was this translation helpful? Give feedback.
-
CBOR is already used in our RSMP 4 prototype apps. |
Beta Was this translation helpful? Give feedback.
-
JSON is great because it's very easy to use, is supported by most tools. But it's is not the most compact or fastest to encode/decode.
We should at least consider the pros/cons of alternative binary protocols, like protobuffer or messagepack, see e.g. https://medium.com/data-science-community-srm/json-is-incredibly-slow-heres-what-s-faster-ca35d5aaf9e8
Beta Was this translation helpful? Give feedback.
All reactions