简体   繁体   English

Azure服务总线-主题已满

[英]Azure service bus - Topic full

I have a process(Process A) that keeps sending events to an ASB topic. 我有一个继续将事件发送到ASB主题的过程(过程A)。 There are multiple consumers of the topic and therefore multiple subscriptions. 该主题有多个使用者,因此有多个订阅。 So lets say that one of the consumer's process is down. 因此,可以说消费者的过程之一是故障。 And due to this the topic gets full as the messages are not consumed. 由于这个原因,话题变得很充实,因为消息没有被使用。 Does this mean then Process A also fails as it is not able to send messages to ASB topic as its full? 这是否意味着流程A也无法发送完整的消息到ASB主题,因此它也失败了?

Two more things to check: 还有两件事要检查:

  1. Make sure that your dead letter queue is not full that counts towards the size of the entity. 确保您的死信队列未满,这会计入实体的大小。
  2. Make sure that you have at least one subscription that works for each message. 确保您至少有一个订阅适用于每条消息。 For example, if you send a message with ID=1, but you only have a subscription with ID=2, the messages will get backed up. 例如,如果您发送ID = 1的消息,但只有ID = 2的订阅,则消息将被备份。

I think you are correct, once the limit is reached the queue stops. 我认为您是对的,一旦达到限制,队列就会停止。

However, with partitioning (using all 16 partitions * 5 GB), you can store up to 80 GB: https://azure.microsoft.com/en-us/blog/partitioned-service-bus-queues-and-topics/ 但是,使用分区(使用所有16​​个分区* 5 GB),您最多可以存储80 GB: https : //azure.microsoft.com/zh-cn/blog/partitioned-service-bus-queues-and-topics/

Another solution is to use auto forwarding, so the topic forwards all messages to another queue/topic https://azure.microsoft.com/en-us/documentation/articles/service-bus-auto-forwarding/ This way each subscriber can have it's own queue of 5GB (or 80GB if you use partition) 另一个解决方案是使用自动转发,因此主题将所有消息转发到另一个队列/主题https://azure.microsoft.com/zh-cn/documentation/articles/service-bus-auto-forwarding/这样,每个订阅者都可以有自己的5GB队列(如果使用分区,则为80GB)

Some more info: https://azure.microsoft.com/nl-nl/documentation/articles/service-bus-azure-and-service-bus-queues-compared-contrasted/ https://azure.microsoft.com/en-us/documentation/articles/service-bus-quotas/ 一些更多信息: https : //azure.microsoft.com/nl-nl/documentation/articles/service-bus-azure-and-service-bus-queues-compared-contrasted/ https://azure.microsoft.com/ zh-CN / documentation / articles / service-bus-quotas /

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM