+ Base Paul.
From: Kumar, Pankaj
Sent: Thursday, October 15, 2020 12:48 PM
To: General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Subject: RE: [ EXTERNAL ] Re: [paho-dev] End-to-end response
Thanks for the quick response.
Let me add some more detail here.
Our ultimate aim is to track the delivery of messages to right most Broker in a reliable way.
My current setup is as following. (No issues here)
Client ---------- Broker ----------- Server
- Client sends QOS2 message to Broker.
- Broker sends response(PUBCOMP) back to Client
- Transaction completes
Note: We don’t care how Broker forwards that message further to Server
Now, we have added another Broker in between as following.
Client ------------ Intermediate Broker ------------ Broker ---------- Server
- Client sends QOS2 message to Intermediate Broker
- Intermediate Broker sends response (PUBCOM) back to Client
-
Client can’t mark transaction complete as there is no reliable way to know when message is delivered to right most Broker.
Looking for a solution to help Client track the response from final broker. Again we don’t care how final/right-most broker further forwards that message to Server.
Regards
Pankaj
[ EXTERNAL ]
Hi Pankaj,
MQTT 5 has a concept called "Request / Response Pattern" that will do exactly what
you want.
However, it seems you are bridging MQTT brokers. Depending on the broker you're using this might not work as not all brokers support MQTT 5 for bridging. Last time I checked mosquitto for example did not yet have
MQTT 5 support for bridges.
Best,
Dominik
On 15 Oct 2020, at 7:59, Kumar, Pankaj wrote:
Hello Dev,
Is there a way to get end-to-end response from a server which is two brokers away from client ?
Client ----------- Broker-1 ----------------Broker-2--------------Server
Looking for MQTT level solution without application level topic/messaging. I am using MQTT-5.
Regards
Pankaj