Author |
Message
|
inMo |
Posted: Tue Oct 20, 2015 5:19 pm Post subject: MQTT QM1 to QM2 |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
I'm looking for assistance regarding MQ Telemetry. I have an MQTT client publishing on QM1. MQTT clients are subscribing to topics published on QM1 and all is fine. Occasionally a topic is published on QM1 that has subscribers on QM2. How can I have QM2 subscribe to topics on QM1? Next, if QM2 can subscribe to QM1 topics, how can it turn around and publish the MQTT topic it just subscribed to?
Client PubA publishes topic "Hello" on QM1. Client SubA subscribes to topic "Hello" on QM1. Client SubB subscribes to topic "Hello" on QM2. How can QM2 subscribe to "Hello" on QM1 and re-publish on QM2 to allow SubB to receive message? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 20, 2015 8:21 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you looked at
a) pub / sub connecting to qmgr A and defining qmgr B as the pub/sub qmgr?
b) publications in the cluster?
Note that for both scenarios you will need default routing between the qmgrs, before you start to really complicate things...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
inMo |
Posted: Wed Oct 21, 2015 5:18 am Post subject: |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
I will certainly look into those options. Thanks you.
From a far, those sound like MQ centric options (please correct me if I'm wrong). I was originally looking for something like a bridge between MQTT servers.
While I prefer to stay in the MQ world, Mosquitto discusses this idea:
Quote: |
As well as accepting connections from MQTT client applications, Mosquitto has a bridge which allows it to connect to other MQTT servers, including other Mosquitto instances. This allows networks of MQTT servers to be constructed, passing MQTT messages from any location in the network to any other, depending on the configuration of the bridges.
|
Does MQ Telemetry offer any MQTT based options or do I have to go from MQTT into MQ on QM1, then traditional QM1 to QM2, then back out to MQTT on QM2? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Oct 21, 2015 6:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you found the "binaries" for said MQTT bridge?
Have you configured your bridge, and if yes, what were your config parameters?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 21, 2015 6:07 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't, as far as I know, configure one MQTT Bridge to talk to another directly.
If you want to go from one MQTT endpoint to several queue managers, you should look at MessageSight.
But configuring a single MQTT bridge (perhaps on a dedicated queue manager) and proper MQ networking may be simpler. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
inMo |
Posted: Wed Oct 21, 2015 8:15 am Post subject: |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
So I should view the MQ Telemetry solution/broker provided as part of MQ Queue Manager as a single instance broker that can communicate with MQ, Client Publishers or Client Subscribers, but not other MQTT brokers? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 21, 2015 8:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
inMo wrote: |
So I should view the MQ Telemetry solution/broker provided as part of MQ Queue Manager as a single instance broker that can communicate with MQ, Client Publishers or Client Subscribers, but not other MQTT brokers? |
Yes. I don't know that any MQTT brokers speak to other MQTT brokers. It's not really part of the standard.
That doesn't mean that there aren't any. I just don't know of them. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
inMo |
Posted: Wed Oct 21, 2015 10:42 am Post subject: |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 21, 2015 10:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Ok. I've looked at a couple of other non-IBM brokers, but not those. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
inMo |
Posted: Wed Oct 21, 2015 11:34 am Post subject: |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
No problem. I always appreciate your efforts to help. I shared the links to clarify what I was asking about, nothing more. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 21, 2015 12:02 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
inMo wrote: |
No problem. I always appreciate your efforts to help. I shared the links to clarify what I was asking about, nothing more. |
Yep. That's how I read it.
It might, in theory, be possible to use one of those to talk to the mqtt bridge or messagesight and then forward to other instances of that mqtt broker...
Dunno. Haven't tried it. Wouldn't necessarily recommend it, as I don't know how stable those are. (again, I don't know anything about them.) _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|