THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

Allen White

Service Broker Solutions - Don't Forget the Basics

After finally getting a Service Broker solution implemented successfully, I'm really impressed with the technology, and frustrated how difficult it can be to implement and get it really working as expected.

First, understand the technology. There are some great resources out there to help you get started. The first place to go is Klaus Aschenbrenner's book, the one that Greg Low reviewed this past week. It's an amazing resource and played a large part in my success. (I bought it for my Kindle, and used the PC Kindle program to have the book open in a window next to SSMS, to easily reference the material on the task you're trying to complete.)

Next, read through Remus Rusanu's site and blog, especially his material on troubleshooting.

Finally, and perhaps most importantly, understand your application's requirements. In implementing an asynchronous messaging technology to improve scalability and performance, some things that worked very well with another solution may not work the same way. Understand the exact requirements, and the expectations of the application software and make sure that those expectations are met.

Set up a test environment - even if the databases are on the same server. Service Broker's amazingly fast at sending messages on a local system, and changing the Route properties to point at the local system is easy. Create a checklist of the data changes on one side of the application and how the other side should look afterwards, and check each one to see that the expected result was realized.

Service Broker is a great solution for getting data from one place to another, but the samples can be misleading, so read as much as you can, so you fully understand it, then focus on the application.

Allen

Published Saturday, April 03, 2010 7:47 PM by AllenMWhite

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Alex K said:

Hi Allen,

You are saying that "Service Broker's amazingly fast at sending messages" and "Service Broker is a great solution for getting data from one place to another". What other messaging solutions have you compared it to?

Thanks a lot!

April 3, 2010 8:55 PM
 

AllenMWhite said:

Alex, I haven't done a comparison of 3rd party messaging products.  My clients want what comes in the box with SQL Server, and Service Broker fits that requirement.  As a rule most small companies use linked servers to move data back and forth, and I replaced that slow, poorly performing and non-scalable system with a service broker solution.  It's now working very well, and as they grow it will handle their needs.

April 3, 2010 10:07 PM
 

George Walkey said:

Thanks for the nice SQL Saturday in Richmond Today.

April 10, 2010 6:06 PM

Leave a Comment

(required) 
(required) 
Submit

About AllenMWhite

Allen White is a consultant and mentor for Upsearch Technology Services in Northeast Ohio. He has worked as a Database Administrator, Architect and Developer for over 30 years, supporting both the Sybase and Microsoft SQL Server platforms over that period.

This Blog

Syndication

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement