订阅在 Azure 中使用服务总线主动被动复制方法发送的消息
我们有一个微服务,使用主动被动复制或被动复制方法将事件发布到服务总线,如果失败,它会使用主要区域服务总线将消息发送到主题,然后它将相同的消息发送到辅助区域服务总线。两个服务总线都配置了相同的主题和订阅,并且它们位于标准层。
现在我们要构建一个需要订阅主题的服务(功能应用程序)。有没有办法让服务总线触发函数监听两个服务总线,而不是为每个服务总线订阅单独创建一个函数?
或者如果订阅者是函数应用程序,是否有另一种更简单、更干净的方法来实现此目的?
非常感谢任何想法和建议:)
We have a microservice publishing events to service bus using active passive replication or passive replication approach where it would send the message to a topic using primary region service bus if that fails, then it would send that same message to secondary region service bus. Both service bus have same topics and subscriptions configured and they are on standard tier.
Now we want to build a service (function app) which needs to subscribe to a topic. Is there a way for a service bus trigger function to listen to two service buses rather than creating a function for each service bus subscription separately?
Or is there another easier and more cleaner way to achieve this if the subscriber is a function app?
Any thoughts and suggestion are much appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
函数必须在预定义实体上创建侦听器。您可以有两个具有共享逻辑的函数触发器,每个命名空间一个。
A Function has to create a listener on a pre-defined entity. You could have two function triggers, one for each namespace, with shared logic.