Azure 服务总线订阅 - 接收和删除多条消息
我正在研究 REST API,用于从 Azure 服务总线订阅接收消息。 问题是我能够使用 HTTP 调用从订阅中单独接收消息,但是,我想批量接收来自服务总线的消息(例如 100、200、1000..),以便保存 HTTP 调用并使逻辑更加高效。
我指的是以下 ASB 链接.. https://learn. microsoft.com/en-us/rest/api/servicebus/receive-and-delete-message-destroy-read
是否有任何此类设置可以批量接收消息(并删除它们)。尝试搜索,在这方面没有找到任何有用的东西。请帮忙。
I am working on REST API, for receiving the messages from Azure service bus subscription.
The problem is that I am able to receive the messages individually from the subscription using the HTTP calls, however, I want to receive the messages from service bus in batches (say 100, 200, 1000..) so that I save the HTTP call and make the logic more efficient.
I am referring to following link for ASB..
https://learn.microsoft.com/en-us/rest/api/servicebus/receive-and-delete-message-destructive-read
Is there any such setting to receive the messages in bulk (and delete them). Tried searching, didnt find anything useful in this context. Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法通过服务总线 REST API 接收批次,但您可以使用 SB SDK 来处理这些,您是否需要使用 HTTP 客户端?如果没有,则使用SDK
It is not possible to receive batches through Service Bus REST API, however you can use the SB SDK to process those, do yo have a requirement to use a HTTP client ? if not, then use the SDK