I have to deploy my client in an environment where it is possible to be shutdown unexpectedly, not allowing for proper cleanup steps to be taken. When the client starts up it automatically registers a few services to the broker so in the event of being shutdown and coming back up means both the original services it registered exist and a new duplicate set of services now exist until the original services TTL expires. Is there a strategy where i could either detect/remove the previously registered services that no longer have a client listening or perhaps re-attach to them if their TTL has not expired rather than creating new ones?
OpenDXL
Security Intelligence Sharing