-
The simple examples tend to create a publisher (z_declare_publisher) with a keyexpr, and then call z_publisher_put when they want to publish updates with that key (C API). I have 150 sensors, which will each publish an update every second. As I see it my options are:
I wonder what the pros and cons of these might be, and which would be viewed as the way Zenoh was designed to be used? Which is more likely to scale to larger networks of sensors? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @smnrgrs, TL;DR; 1 and 2 ) Using the publisher allows for some wire optimizations that are not present when using the
|
Beta Was this translation helpful? Give feedback.
Hi @smnrgrs,
TL;DR;
1 and 2 ) Using the publisher allows for some wire optimizations that are not present when using the
z_put
directly.So if the key expression being used by the sensor is always the same and it is known a priori I advocate for creating the publishers.
In general, if the amount of key expression being published by every sensor is small and known a priori you can declare a publisher per key expression.