我应该在队列上使用Azure主题吗?
我了解主题具有订阅和过滤器的其他功能,排队没有。 在这种情况下,我什么时候绝对需要在主题上使用队列?
为了保持一致性,我可以在各地使用一个主题,包括替代队列吗?
I understand that Topics have the additional features of subscriptions and filters which Queues do not.
In which case, when would I absolutely need to use a queue over a topic?
For consistency, could I use a topics everywhere including as a replacement for queues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
主题不是队列的替代。主题和订阅的组合是。一个主题允许将相同的消息“复制”到多个订阅中。订阅实际包含消息的内容。订阅与其属性和行为中的队列相同。如果您愿意,可以用主题+订阅组合替换队列,每个用例生成2个实体,而不是单个队列。请记住,有一个每个名称空间的实体a>。
A topic is not a replacement for a queue. The combination of a topic and a subscription is. A topic is allowing to “replicate” the same message to multiple subscriptions. A subscription what actually holds messages. A subscription is identical to a queue in its attributes and behaviour. You could replace a queue with a topic+subscription combo if you’d like, generating 2 entities per use case instead of a single queue. Just keep in mind there’s a finite number of entities per namespace.