1 / 9

Service Broker

Service Broker. What is Service Broker?. New technology in SQL Server 2005 async messaging Deferred processing Queue Processing (unordered and FIFO) nothing new to install or license, just enable it. When should we consider using SB?. Long running processes...fire and forget!

zelda
Download Presentation

Service Broker

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Service Broker

  2. What is Service Broker? • New technology in SQL Server 2005 • async messaging • Deferred processing • Queue Processing (unordered and FIFO) • nothing new to install or license, just enable it

  3. When should we consider using SB? • Long running processes...fire and forget! • loosely coupled, asynch processes that SCALE • fault tolerance • scale-out (distributed) possibilities • automatic eventing (a stored proc fires async when a message is enqueued)

  4. When should we consider using SB? • respond to events without continuous polling (push queue) • Query Notifications (data caching) (pull queue) • data-intensive queuing operations • cheap, efficient transactions (no 2PC) • anytime we want to push our messaging support burden onto the DBAs

  5. Isn't "database as a queue" an anti-pattern? • Usually yes • developers can't design and code queueing systems without having lock, block, and deadlock problems. SB solves this. • Think about PrcsStsCd and pull queues • ...Too much polling • ...SQL Server is efficient at CRUD or SELECTs, but rarely both • ...not enough queue draining • ...too tempting to put shared state in the db queue, causing tight coupling

  6. Isn't the db already the big bottleneck? Yes, but this technology can alleviate our overburdened db servers by processing data smarter.

  7. But we already have ESB/EMS! Service Broker is complementary It is not a JMS replacement use it for all of the reasons mentioned already

  8. Worklisting Tickling

More Related