3. Highly variable workload Long running transactions without blocking user interface Delayed execution Fault tolerance Flexibility in scaling/processing spread across multiple systems Why Use Asynchronous Messaging?
6. Message Type Contract Service Queue Schema Dialog/Conversation Conversation Group Components of Service Broker
7.
8.
9. Create the database Enable Service Broker Create Master Encryption Key “Service Broker needs to access the master key in the database 'SB_Demo'. Error code:26. The master key has to exist and the service master key encryption is required.” Building the “application”
10. Create message type(s) Create contract Create initiator and target queues Create services Building the “application”
11. Logic to send initiating message Process message and send response Receive response Building the “application”
12. CREATE QUEUE [dbo].[qDemo1] WITH STATUS = ON , RETENTION = OFF , ACTIVATION ( STATUS = ON , PROCEDURE_NAME = [dbo].[ProcessDemoQ] , MAX_QUEUE_READERS = 4 , EXECUTE AS OWNER ) ON [PRIMARY] Activation
13. Conversation Priority Huge improvements in Management Studio Service Broker diagnostic utility Improvements in SQL Server 2008
14. Locking Error handling Poison messages Keep scripts for dropping/creating SB objects Things that will bite you in the butt
15. Pro SQL Server 2008 Service Broker – Apress SQLOnline Documentation Google Service Broker Resources