IBM MQ sharedSubscription与nodejs
我有一个使用Pub/ sub连接与IBM MQ连接的NodeJS应用程序,以接收有关主题上发送的消息。我现在想扩展应用程序以具有多个实例运行,以便只有一个实例获取已发布的消息。我可以找出 IBM提到的属性,但我找不到基于Nodejs的实现的任何参考详细信息。
我当前正在使用 ibm-messaging/mq-mqi-nodejs 用于连接性,连接性,但是,只要基于nodejs,任何其他库也可以。
I have a working nodejs application connected with IBM MQ using pub/ sub to receive messages sent on a topic. I want to now scale the application to have multiple instances running such that only one of the instances gets the published message. I could find out sharedsubscription property mentioned by IBM, but I cannot find any reference details for a nodejs based implementation.
I am currently using ibm-messaging/mq-mqi-nodejs for connectivity, but any other library is also fine as long as it is nodejs based.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Node.js位于MQI的顶部,因此您应该使用MQI订阅方式而不是JMS方式。
查看子呼叫上的
mqso_group_sub
选项。如果您提供一些代码,我可以更新此答案,以向您展示可能需要的更新。我不是节点。JS专家,只有MQI专家。
Node.js is layer on top of the MQI, so you should use the MQI way of subscription sharing rather than the JMS way.
Look at the
MQSO_GROUP_SUB
option on the Sub call.If you supply some of your code, I can update this answer to show you the updates you might need. I am not a Node.js expert, only an MQI expert.