Subscription notifications #131
-
Hello, In Zenoh, is there a way to get notified of declared/undeclared subscribers and their subscribed key expressions in general, i.e. without requiring a publisher for a specific key (as in MatchingListener)? The goal/context is bridging between Zenoh and other Pub-Sub protocols without having to bulk-subscribe to all of the other protocol's topics when the Zenoh side has no subscribers for them (and thus reducing required network bandwidth). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
No, for scalability reasons the declarations of subscribers are not propagated everywhere in a Zenoh system, and could even be squashed at some points (e.g. if a router receives on the same face 2 declarations of subscriptions for For your bridge use case, I see 2 solutions:
|
Beta Was this translation helpful? Give feedback.
No, for scalability reasons the declarations of subscribers are not propagated everywhere in a Zenoh system, and could even be squashed at some points (e.g. if a router receives on the same face 2 declarations of subscriptions for
a/b/**
anda/b/c/**
it can only propagate the first one).Even a MatchingListener doesn't get an exact view of the matching Subscribers, but just a MatchingStatus indicating if there is at least 1 matching Subscriber.
For your bridge use case, I see 2 solutions: