Subscribing to a subpath with higher priority

Let’s say daemon A subscribes to /a/b/c/d with priority 1000 and daemon B subscribes to /a/b/ with priority 1010.

Which daemon starts its execution first?

More in general, what happens if a daemon subscribes to a path that is a parent of the path to which another daemon has subscribed? Are the two subscriptions independent?

First the subsriber(s) at the lowest priority is handled, here daemon A with priority 1000. Once daemon A have replied and synchronized through calling cdb_sync_subscription_socket() the next set - at the next priority level is handled by CDB, here daemon B with priority 1010.
Subscription path does not affect priority.

1 Like