Notification Service 2005

1,280 views
1,184 views

Published on

An Insight of Notification Service 2005

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,280
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Notification Service 2005

    1. 1. Notification Services 2005
    2. 2. Agenda <ul><li>What is SQL Server Notification Services </li></ul><ul><ul><li>Introduction </li></ul></ul><ul><li>Architecture </li></ul><ul><ul><li>Sub scription Management </li></ul></ul><ul><ul><li>Event Providers </li></ul></ul><ul><ul><li>Generator </li></ul></ul><ul><ul><li>Distributor </li></ul></ul><ul><li>NS Instances and NS Application </li></ul>
    3. 3. Existing approach for receiving notifications Getting Information - PULL No notifications – connected requestor Response LOB, Rpt ERP, CRM News Web My Device Request
    4. 4. Existing approach for receiving notifications Getting Information - PUSH Push notifications – all or nothing LOB, Rpt ERP, CRM News Web My Device Push SPAM
    5. 5. Getting Information - NOTIFY Notifications – subscriber preference LOB, Rpt ERP, CRM News Web Notification Application A new class of applications that deliver personalized and timely information to any device My Device(s) of Choice
    6. 6. SQL Notification Service <ul><li>Platform to develop and deploy rich, highly scalable notification applications </li></ul><ul><li>Declarative programming model </li></ul><ul><ul><li>Based upon XML and T-SQL </li></ul></ul><ul><li>Execution engine </li></ul><ul><ul><li>Based upon SQL Server 2005 and .NET Framework </li></ul></ul>
    7. 7. Notification Service
    8. 8. Architecture Overview Data Changes External Delivery SQL Server Subscription Management Application Event Provider File System Watcher SQL Server provider Custom EP Event Provider Host SQL Match Rule Executes Stored Procs Generator Distributor XSLT CF Custom CF XSLT Email .NET Alerts * File
    9. 9. Managing Subscriptions Subscription Management Objects Subscribers Subscribers Devices Subscriptions Notification Services Subscription Mgt App Subscription Mgt App Instance DB Application DB
    10. 10. Create Subscribers, Devices, & Subscriptions using Microsoft.SqlServer.NotificationServices; string instanceName = “ABCPress&quot;; NSInstance myInstance = new NSInstance(instanceName); Subscriber mySubscriber = new Subscriber(myInstance); mySubscriber.SubscriberId = “bess@webbtechsolutions.com&quot;; mySubscriber.Add(); INSERT INTO [ITM_NS_DEV].[ListingClosedBidAlerts].[NSSubListingSellerClosedBidView] (SubscriberId, Enabled, UserName, DeviceName,SubscriberLocale) VALUES (@username, 1, @username,'CUSTOM DEVICE','en-US') <ul><ul><li>SQLNS API </li></ul></ul><ul><ul><li>Views </li></ul></ul>
    11. 11. Collecting Events Event Sources Event Providers Standard Custom Notification Services Application DB
    12. 12. CODE…
    13. 13. Generator <ul><li>Matches Events and Subscriptions to generate Notifications </li></ul><ul><li>Write “match rules” with full power of SQL </li></ul><ul><li>(Transact-SQL, sp, transactions…) </li></ul>Events & Chronicles Subscription Information Generator Notifications
    14. 14. CODE..
    15. 15. Distributor <ul><li>Periodically scans for notification batches </li></ul><ul><li>Formats raw notification data to message body </li></ul><ul><li>Assembles formatted notifications into protocol packets </li></ul><ul><li>Delivers the protocol packet </li></ul><ul><li>Handles delivery failures </li></ul>
    16. 16. CODE… From Application Definition file:
    17. 17. CODE.. From Instance Configuration file:
    18. 18. Instance Configuration File <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <NotificationServicesInstance xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema... <!--Instance name--> <InstanceName >ABCOwners</InstanceName> <!--Sql server--> <SqlServerSystem>%SqlServer%</SqlServerSystem> <!--Database information--> <Database> …</Database> <!--Applications associated with this instance--> <Applications>…</Applications> <!--Delivery Channels available--> <DeliveryChannels>…<DeliveryChannels> … </NotificationServicesInstance>
    19. 19. Application Definition File <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?> <Application xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://... <!--Application database information--> <Database>…</Database> <!--Event class definitions--> <EventClasses>…</EventClasses> <!--Subscription class definitions--> <SubscriptionClasses>…</SubscriptionClasses> <!--Notification class definitions--> <NotificationClasses>…</NotificationClasses> <!--Event Providers--> <Providers>…</Providers> … . </Application>
    20. 20. XSLT Content Formatter XSLT Content Formatter <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?> <xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;>
    21. 21. Summary <ul><li>Notification Services is a platform </li></ul><ul><li>Enables rapid development of robust scalable Notification Applications </li></ul><ul><li>Easy to use Declarative Programming Model </li></ul><ul><li>A True .Net Enterprise Server Product </li></ul>
    22. 22. Additional Resources <ul><li>Online </li></ul><ul><li>Books </li></ul><ul><li>http://www.microsoft.com/sql/ns </li></ul><ul><li>microsoft.public.sqlserver.notificationsvcs </li></ul><ul><li>MSDN Forums </li></ul><ul><li>http://weblogs.sqlteam.com/joew </li></ul><ul><li>Microsoft SQL Server 2005 Notification Services by Shyam Pather </li></ul><ul><li>Rational Guide to SQL Server Notification Services by Joe Webb </li></ul>
    23. 23. <ul><li>Feedback - </li></ul><ul><ul><li>[email_address] </li></ul></ul>

    ×