Acreo / DoubleDecker

Hierarchical messaging system
http://acreo.github.io/DoubleDecker/
GNU Lesser General Public License v2.1
3 stars 2 forks source link

Hearthbeating feature #18

Open DavideXX92 opened 7 years ago

DavideXX92 commented 7 years ago

I have a service which communicates with some devices through DoubleDecker. Such a service wants to know if a device is up, I can implement such a feature with a kind of heartbeat protocol (each device publish to an 'hello-topic' each x seconds). Does it already exist a DoubleDecker feature that can help me to solve this problem?

eponsko commented 7 years ago

Hi Davide,

Sorry for slow reply, was busy traveling last week, without much internet connectivity. There's no such feature in the protocol at the moment, and I think it would not really make sense to put it as a part of it (rather, just keep it as simple as possible and let clients do what they need). There is a heartbeat between clients and brokers however, but that doesn't help you. I would suggest you implement your idea instead, with clients posting every X second on a topic (or sending messages directly to the server, if that's better) and the server removing clients that hasn't said anything in say 3*X seconds.