eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.93k stars 2.37k forks source link

Dynamic Bridging and dynamic topic subscribe/unsubscribe for existing bridging #938

Open sakthivelpvs opened 6 years ago

sakthivelpvs commented 6 years ago

Hi, Just want to understand the better approach for dynamic bridging. I know that there is PR #653 for dynamically adding/deleting bridge through $SYS topics. It doesn't store dynamically added bridge configuration anywhere and when broker restarts then, bridge config is gone.

I'm looking for dynamic bridging even for topic subscribe/unsubscribe and adding/deleting new bridge configuration. Dynamically adding/removing topic in existing bridge connection, should initiate subscribe/unsubscribe for that particular topic alone.

And whatever bridging details are added dynamically has to be stored in config file, so that when it restarts, never lose those information.

For above requirements, publishing the bridging via $SYS topic is better approach or already mosquitto has reload machanism and if doing changes there will be better ?

Any idea when mosquitto is planning to start analysing the dynamic bridging with all conditions and implementation ?

toast-uz commented 6 years ago

I guess the conversation of #653 is better place to discuss about this issue.

honglei commented 2 years ago

See https://github.com/eclipse/mosquitto/pull/1926