Your SlideShare is downloading. ×
0
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
DAT303_Hinson_Wolter.ppt
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

DAT303_Hinson_Wolter.ppt

305

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
305
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 05/06/10 09:24
  • Transcript

    • 1. Building Distributed Asynchronous Applications With SQL Service Broker Gerald Hinson, Roger Wolter DAT303 Dev Lead Microsoft Corporation
    • 2. Agenda
      • What is Service Broker?
      • Service Broker Basics
      • CLR Services
      • Conversation Group Locking
      • WCF Channel
      • Remote Service Broker
    • 3. SQL Service Broker
      • Platform for building asynchronous, loosely coupled database applications
        • Queues are database objects
          • Queue locking reduces conflicts and deadlocks
        • Dialogs give unprecedented message ordering assurance
          • Ordered across transactions, input applications and output applications
        • New DDL and DML for messaging
          • Use the same APIs and tools as SQL
        • Reliable messaging for scale out
    • 4. Dialogs
      • Dialogs provide two-way messaging between two services
      • Dialogs offer
        • Guaranteed delivery
        • Exactly-once delivery
        • In-order delivery
        • Secure communications
      • Dialogs
        • May be long-lived (years) or short-lived (seconds)
        • Are lightweight
        • Are persistent sessions
      Database B Database A Dialog Customer Service Travel Service
    • 5. Services
      • A Service is a named endpoint that may be targeted with messages
        • Its interface is defined by the messages it consumes and emits
        • Services are scoped by (live in) databases
        • It is responsibility of a service’s Service Broker to
          • 1) Deliver messages sent from that service to other services
          • 2) Store messages that are sent to that service until the service can process them
            • Every service is mapped to a Queue . Messages sent to a service are stored in its associated queue
            • Queues are a new table-like object introduced in SS 2005
              • Messages are dequeued using a new verb: RECEIVE
              • Messages may be “peeked” using SELECT
    • 6. Internal Activation Stored Procedure Stored Procedure QUEUE
    • 7. Service Broker Basics Gerald Hinson Dev Lead SQL Server
    • 8. External Activation Service Service External Activator Event Queue Queue
    • 9. CLR Services Gerald Hinson Dev Lead SQL Server
    • 10. Conversation Group Locking Queue Reader Queue Reader Dialog1 Dialog2 Dialog2 Dialog2 Dialog1 Dialog1 X QUEUE
    • 11. Conversation Group Locking Gerald Hinson Dev Lead SQL Server
    • 12. WCF (“Indigo”) Channel For SSB Typed Proxy SSB Channel Client ADO.NET SQL Server Dispatcher SSB Channel ADO.NET SQL Server TDS TDS Service Broker Routing Service
    • 13. WCF Channel Gerald Hinson Dev Lead SQL Server
    • 14. Dialog Security Initiator Target FROM Service TO Service Certificate Public Key Certificate Public Key Message Header Certificate Private Key DB User DB User RemoteService Binding DB User Authorization Certificate Private Key DB User
    • 15. Routing SEND Classifier sys.routes
    • 16. Remote Service Broker Gerald Hinson Dev Lead SQL Server
    • 17. Service Broker Scenarios
      • Asynchronous DB “Stuff”
        • Asynchronous Triggers and Events
        • Parallel Stored Procedures
        • Batches and scheduled tasks
        • Data Warehouse population
        • Delayed actions in different transactions
      • Reliable Messaging
        • Smart Clients
        • Point of Sale
        • Shop Floor
        • Scaling out asynchronous stuff
      • Reliable Service Oriented Architecture
    • 18. Resources
      • http://blogs.msdn.com/rushidesai/
      • http://forums.microsoft.com/msdn/ShowForum.aspx?ForumID=91
      • http://www.sqlservicebroker.com/forums/
      • http://msdn.microsoft.com/sql/2005/
      • [email_address]
    • 19. © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

    ×