Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法澄清是否可以将长轮询选项与主题/订阅模型一起使用。使用服务总线队列是可能的,但我必须创建数千个单独的队列以使每个客户端都能接收自己的消息。那么有可能吗?如果可以的话,你能指点我一个实现的例子吗?
谢谢。
其实我想刚刚找到了答案。万一其他人被卡住了,语法是:
`serviceBusClient.receiveSubscriptionMessage(topicListener, subscriber, {timeoutIntervalInS: 120 }, function (error, message) {...});`
120 秒,但是,你知道,不要硬编码幻数。这限制为 230 秒,因为 azure 会为在此时间段内未接收到数据的 http 请求返回错误。如果有人知道延长此超时的方法,我将不胜感激。