IBM MQ sharedSubscription与nodejs

发布于 2025-01-29 12:59:20 字数 478 浏览 1 评论 0原文

我有一个使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可可 2025-02-05 12:59:20

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文