I’m working on a system that is deployed as a collection of composable microservices to various gateway machines. Depending on the deployment an end user can have a few different services needing an MQTT connection.
Typically I would just use a randomly assigned MQTT client ID but the restriction that I need to authenticate with a valid losant device ID is hanging me up. As far as I can tell the broker is pretty good about enforcing uniqueness of client sessions and the amount of reconnecting required could prove problematic, especially for long lived subscriptions. I could model an additional device for each service that needs to connect but I’m not sure how well that will scale in larger environments, and it doesn’t really match the way the system is deployed that well.
Wondering before I get too deep if there is an established practice I could follow for this kind of situation.
Thanks a lot