Microsoft SQL Server 2012 Bible
by Adam Jorgensen, Jorge Segarra, Patrick LeBlanc, Jose Chinchilla, Aaron Nelson
What's New in Service Broker for SQL Server 2012?
SQL Server 2012 adds several enhancements to Service Broker functionality and informational columns. The following sections describe each of these enhancements in more detail.
Message Multicast
Messages can now be sent to multiple target services using a single SEND statement. The ability to multicast the same message is possible by initiating multiple conversation handles and including them as a comma separated list after the ON CONVERSATON clause.
The caveat with message multicast is that if the SEND statement encounters an error with one or more of the conversations, the whole statement fails, and no messages are stored in the transmission queue or are received in any target service queue.
This means that all target services included in a message multicast must be in a valid state for the SEND statement to be successful.
AlwaysOn Support
AlwaysOn Availability Groups is the new high availability and disaster recovery solution introduced in SQL Server 2012. This new feature is discussed in detail in Chapter 27, “Database Mirroring.”
Service Broker is supported in the AlwaysOn Availability Group but several requirements need to be met to successfully receive asynchronous messages. For a service in an Availability Group to receive remote messages, there are four main requirements as follows:
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access