简体   繁体   English

使用具有多个路由的SQL Server Service Broker

[英]Using SQL Server Service Broker with multiple routes

When using the SQL Server Service Broker - if I had a service with two routes configured and I executed the BEGIN DIALOG statement without specifying the desired target broker instance, which of the possible destinations would it pick as the destination for the message? 使用SQL Server Service Broker时 - 如果我有一个配置了两个路由的服务,并且我执行了BEGIN DIALOG语句而未指定所需的目标代理实例,那么它将选择哪个可能的目标作为消息的目标?

I realise with BEGIN DIALOG I can explicitly target a specific broker, but this is only optional. 我意识到使用BEGIN DIALOG我可以明确地针对特定的代理,但这只是可选的。 What would happen without it? 没有它会发生什么? Would the message be sent to both routes? 邮件会被发送到两条路线吗?

I can't find the supporting documentation right now, but my memory says that it will choose one of the routes arbitrarily. 我现在找不到支持文档,但我记忆中说它将任意选择其中一条路线。 It was meant as a means of being able to load balance among n databases that provide the same processing capability and you as the sender of the message don't care which of them actually does the processing. 它意味着能够在提供相同处理能力的n个数据库之间进行负载平衡,并且您作为消息的发送者并不关心它们中的哪个实际进行处理。

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

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