Open BenediktBurger opened 3 weeks ago
Reasoning: Due to the different architectures of the data and control protocol networks, you might want to subscribe to a publishing actor, which you cannot reach via the data protocol.
We can, however use the control protocol to subscribe and to publish messages. (managing the subscribers manually)
This reflects the experience from https://github.com/pymeasure/leco-protocol/issues/2#issuecomment-1405166559 that it is quite simple to use the control protocol only. PUB-SUB does not save on bandwidth anyway.
Idea:
register_subscription
methodsubscription_message
(TBD) on all components which registered themselves previously. "Data" is the content of the data message. Conversation_id is the same. If a component is not reachable, it is removed from the list of subscribers.subscription_message
will callhandle_subscription_message
with an artificial Data message.This allows to subscribe to events on other computers without creating a dedicated data protocol network.