HornetQ:将主题连接到队列
我有一个用例,可以将主题连接到许多队列。我们的系统中有一些事件,我们希望允许不同的用户订阅。我们将“事件”视为“主题”,将用户订阅视为“队列”。每个用户都会有一个个人队列,这取决于他们的订阅;我们会将其路由到他们的队列中。您能否分享一些关于如何设置的指示?
I have a use case that to hook up the topic to many queues. We have some events in our system that we want to allow different users to subscribe to. We are treating that the 'events' as 'topics' and the user subscriptions as 'queue'. Each user will have a personal queue and it depending on their subscription; we will route it to their queue. Can you share some pointers as to how this can be set up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 hornetq 文档中的 Diverts。
或者您可以只使用简单的主题。另请参阅 hornetq 文档中的主题层次结构。
或者也许您可以通过简单的主题订阅和过滤器来实现您所需要的? (什么可能更便携)。
Take a look on Diverts on the hornetq documentation.
Or you could just use simple Topics. Also look at topic hierarchy on the hornetq documentation.
Or maybe you could achieve what you need with simple topic subscriptions and filters? (what will be probably more portable).