Hi,

I'm trying to figure out the best practice for the communication between a
client and a broker over mqtt. I assume n different clients sending data to
my broker expecting to send a custom response for every received message in
return.

My current understanding is that every client must publish to a topic (e.g.
TargetTopic) configured in my broker. To be able to get any response the
client must also subscribe a topic where the response is queued (e.g.
ResponseTopic).

To be able to identify which response is for a certain client I need to
create a unique response topic for each client (ResponseTopic.client1
;ResponseTopic.client2 etc.) 

*Is that right?*

Due to the fact that I don't know how many clients will be there in future,
I'm afraid to maintain thousands of response topics in my broker. 

*Thus, would it be also possible to send a custom response back to a certain
client without a unique response topic for this client? *

Thanks for your experience ;)



--
View this message in context: 
http://camel.465427.n5.nabble.com/MQTT-Request-Reply-tp5758293.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to