首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我如何完全排空一个主题订阅?

我如何完全排空一个主题订阅?
EN

Stack Overflow用户
提问于 2018-02-16 01:30:52
回答 1查看 42关注 0票数 0

我在一个主题订阅中大约有1400条消息。当我要进行批量接收时,比如使用Service Bus Explorer,接收500条消息。我几乎没有收到那么多的回复。这是来自SBE的控制台的剪辑。

代码语言:javascript
复制
<12:09:45> The subscription billingpackage for the checkoutsubmitted topic has been successfully retrieved.
<12:09:46> [36] messages received from the subscription [billingpackage].
<12:10:28> The subscription billingpackage for the checkoutsubmitted topic has been successfully retrieved.
<12:10:28> [120] messages received from the subscription [billingpackage].
<12:11:59> The subscription billingpackage for the checkoutsubmitted topic has been successfully retrieved.
<12:11:59> [40] messages received from the subscription [billingpackage].
<12:13:14> The subscription billingpackage for the checkoutsubmitted topic has been successfully retrieved.
<12:13:15> [66] messages received from the subscription [billingpackage].
<12:14:12> The subscription billingpackage for the checkoutsubmitted topic has been successfully retrieved.
<12:14:12> [140] messages received from the subscription [billingpackage].

为什么我没有拿到我要的500美元?我在标准层,如果这很重要的话。

EN

回答 1

Stack Overflow用户

发布于 2018-02-16 04:27:07

这是意料之中的。您在批量接收中指定的数量仅为批量检索的最大消息数量。实际收到的消息数可以在1到最大值之间。如果批量接收调用返回的消息少于指定的最大数量,并不意味着队列中只有这么多消息。只有当接收调用返回null时,才能指示队列或订阅为空。在您的情况下,您应该继续批量接收,直到它返回null。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48813084

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档