我应该在队列上使用Azure主题吗?

发布于 2025-01-28 21:29:47 字数 94 浏览 2 评论 0原文

我了解主题具有订阅和过滤器的其他功能,排队没有。 在这种情况下,我什么时候绝对需要在主题上使用队列?

为了保持一致性,我可以在各地使用一个主题,包括替代队列吗?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨敛清荷 2025-02-04 21:29:47

主题不是队列的替代。主题和订阅的组合是。一个主题允许将相同的消息“复制”到多个订阅中。订阅实际包含消息的内容。订阅与其属性和行为中的队列相同。如果您愿意,可以用主题+订阅组合替换队列,每个用例生成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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文