Custom data types and schemas? #91
-
Does zenoh have any current or planned support for custom data types with schemas in some IDL, with codegen for multiple languages, similar to how DDS and ROS work? If not, you probably have a good reason; do you have a link to a chat or document where the decision was discussed? It would be interesting if this were mentioned somewhere in the high level documentation or on the website, to help potential users contextualize zenoh vs. dds. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Since the very beginning of "what would become Zenoh" (was named Yaks for the record), it was decided to not tie the protocol and the API to any data encoding. Amongst the reasons were:
Therefore, the data representation is out of the scope of Zenoh protocol and API. Zenoh just deals with byte buffers as user data. In order to help user to deal with possibly multiple encodings in the system, Zenoh provides the possibility for the user to attach an encoding description to its data, in the form of a mime type (sent with optimisations in the Zenoh protocol). This allows custom data types to be used. |
Beta Was this translation helpful? Give feedback.
-
To complement @JEnoch's answer, if you wish to make serialization "transparent", I suggest implementing |
Beta Was this translation helpful? Give feedback.
-
OK, thanks for the response! It will be interesting to see how this plays out in terms of adoption and network effects. |
Beta Was this translation helpful? Give feedback.
Since the very beginning of "what would become Zenoh" (was named Yaks for the record), it was decided to not tie the protocol and the API to any data encoding. Amongst the reasons were: