Open RichardHightower opened 4 years ago
We added responseSubject because there was a requirement not want to use JMS temp queues (aka IBM dynamic queues) which is the preferred pattern for JMS and IBM MQ for request/reply. (This way you can scale out without pre-creating a ton of response queues ahead of time). We did not add this to NATS as it was never requested before nor deemed needed for idiomatic NATS usage. This request would mean that we need a version of the bridge that uses the methods publish
and subscribe
. Currently, the NATS bridge message bus (message bus.. a bridge is two messages busses that are bridge) uses the request
method of the NATS client and the reply mailbox is a temp mailbox (aka subject, but called mailbox by Java NATS client internally but essential the reply subject). This is the preferred NATS usage.
If you want the ability to create the responseSubject ahead of time, then we can schedule that work in. Colin is your point of contact for new work or features. It will take a day or so two to implement and another day or two to test out (give or take 50%).
This use case could be a straight pub/sub, not request-reply instead. Colin pointed that out as a workaround. This sounds like a feature request.
We are discussing internally on this and get back to you with further updates.
Hello Rick,
We were running request/reply use case where-in flow is like NATS-BRIDGE-MQ-BRIDGE-NATS. Nats client is publishing messages on subject
showcase.helloworld.test
which are mapped toqueue DEV.QUEUE.1
and IBM MQ client is responding back onDEV.QUEUE.2
as per the below configuration. As of now, we get a response back on the same subject that is showcase.helloworld.test. So the question is can we have a response on different nats subjects instead of the original one? We tried adding response subject property under the config file but seems that it doesn’t work. In this case, it throws below error. Could you please advise?