我在一个主题订阅中大约有1400条消息。当我要进行批量接收时,比如使用Service Bus Explorer,接收500条消息。我几乎没有收到那么多的回复。这是来自SBE的控制台的剪辑。
<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美元?我在标准层,如果这很重要的话。
发布于 2018-02-16 04:27:07
这是意料之中的。您在批量接收中指定的数量仅为批量检索的最大消息数量。实际收到的消息数可以在1到最大值之间。如果批量接收调用返回的消息少于指定的最大数量,并不意味着队列中只有这么多消息。只有当接收调用返回null时,才能指示队列或订阅为空。在您的情况下,您应该继续批量接收,直到它返回null。
https://stackoverflow.com/questions/48813084
复制相似问题