user4118143
user4118143

Reputation: 290

Integrating a MQTT broker inside server

I am learning about MQTT brokers, and I have got a question I cannot answer. Is it possible integrate a MQTT broker inside a server that acts as a client in a client/server architecture? - The reason I would need that is in case that this client retrieves data from an API.

I have tried to depict what I mean. If it is not possible, how would one approach it then, in case the data from the API is needed?

Upvotes: 1

Views: 177

Answers (1)

hardillb
hardillb

Reputation: 59628

There no reason for the broker to be part of the client.

The client receives the data and then publishes it as a message to a separate broker where subscribers receive the message. There is no benefit to combing the two.

Building adapters like this is common practice (it's one of the reasons tools like Node-RED were created)

Upvotes: 1

Related Questions