SQL Server 2000Notification Services박명은 Senior Technology Specialistmepark@microsoft.comMicrosoft Corporation
SQL Event Submissions
Events Submit SQL Stored
Proc Provider Raw Data
Table 1 Raw Data
Table 2 Un-Hosted Custom SQL Stock Provider:
DECLARE @eventQuery
DECLARE @postQuery
SET @eventQuery = SELECT stocksymbol, stockprice from RDT1
UNION SELECT stocksymbol, stockprice from RDT2
SET @postQuery = DELETE RDT1 DELETE RDT2
EXEC NSEventSubmitBatchStockEvent @providerName, @eventQuery, @postQuery
Event Provider Capabilities
Hosted Scheduled Implements IScheduledEventProvider
App 개발자가 schedule을 설정할 수 있음 Continuous Implements IEventProvider
NS service 종료될때까지 실행함 NS hosts event provider objects
Loaded from external assemblies
Event providers implement NS-defined interfaces Non-hosted 서로 독립된 프로세스로 실행함
NS APIs 와 stored procedures을 사용함 Standard File system watcher
SQL provider
알림정보 생성
Match
Rule Generator SELECT Notify(
S.SubscriberId,
S.DeviceName,
S.Locale,
S.Symbol,
E.Price) FROM
StockEvents E,
StockSubscriptions S
WHERE
E.Symbol = S.Symbol AND
E.Price >= S.TriggerPrice Subscribers Stock Subscriptions Subscriber Devices Stock Events Stock Notifications 이벤트정보와 구독 정보를 Match하여 알림정보를 생성함
SQL Server에서 제공하는 기능을 이용해서 “match rules”을 작성할수 있음
(Transact-SQL, sp, transactions…)
알림정보 생성 기능
Event triggered
subscriptions MSFT가 $60 보다 내리면 Alert 을 보냄 Scheduled
subscriptions 매일 오후 5:00에 보유하고 있는 주식 포트폴리오에
대한 주식시세정보를 보냄 Application State Leveraging
external data Alert me when MSFT crosses 73,
if the market volume on all three exchanges
is high 이벤트 내역
MSFT의 종가는 $75임
현재 서울의 날씨는 20도
구독자의 상태
MSFT가 $70보다 오르면 알림을 보내되, 하루에 한번만
알림을 보냄
구독의 상태
헤드라인 뉴스에 대한 정보만 보냄
배포
Notifications Distributor .NET Alerts SMTP SMS Custom ContentFormatting 서식지정과 알림정보전달
XSLT 이나 custom content formatter module을 이용하여 알림정보를 포맷팅함
구독자의 전달 장치와 로케일을 확인한 다음 장치와 로케일 조합을 틀정 포맷터 개체와 일치시켜 최종 알림을 생성
표준 프로토콜이나 사용자 지정 전달 채널을 알림정보을 전달함 사용 가능 알림정보 전달 가능
Notifications can be:
Digested
Multicast
배포 및 전달채널
Notification
Server
.Net Alerts Exchange SMS SOAP,
Etc. Generates
Notifications Deliver
Notifications Notification Server
알림정보 생성
.Net Alerts, Exchange, SMS, etc.
생성된 알림정보 전달
배포 기능
Digest
notifications 매시간 헤드라인 뉴스를 종합해서 하나의 메시지로
전달
마지막 작업한 이후로 변경된 모든 문서에 대한
Summary 을 전달 Multicast
notifications 대량의 유저에 같은 메시지를 전달
각 지역의 날씨 정보를 전달 Formatting 콘텐트 포맷터 선택 (XSLT or custom)
Device specific
Language-specific: For localization of notifications Multi Protocol File, SMTP, MS Alerts*
Custom
HTTP extension framework
Agenda
Notification Application이란 ?
SQL Server Notification Services Architecture
Application Building
Security and Deployment
사례
보안모델
보안은 SQL database roles에 기반을 둠
NS는 NSSubscriberAdmin, NSRunService과 같은 다양한 운영 서비스에 대한 Roles을 설정할수 있음
DB에 억세스는 단지 저장프로시저을 통해서만 가능
저장프로시저는 어플리케이션 컴파일시 생성됨
Access granted on “minimum necessary permission” basis
NS Service runs with lowest OS privileges
Deployed Architecture
Subscription
어플리케이션 관리
SQL NSMain and Application Databases
NS Services: Event Provider, Generator, Distributor
Deployment Configurations
NS Service
SQL Server NS Service
50% SQL Server
50% NS Service SQL Server NS Service(backup) SQL Server(backup) SQL Replication A.
SingleSystem B.
TwoSystems C.
FourSystems
Notification ServicesWhy use SQL Notification Services?
Notifications SQL
Join Subscriptions Events 단시간 내에 어플리케이션을 작성할수 있음 (Time To Market)
Notification Services framework내에서 Customize 가능
플랫폼 디자인이 아닌 어플리케이션 개발에 중점할수 있음
성능
SQL은 이벤트들과 구독정보들을 효과적으로 Match시킬수 있음
Notification Applications은 완벽한 ‘인터넷’ 확장 솔루션임
More Information
Intranet site
http://airwareweb
Distribution list
Notification Services Discussions (AWTALK)
Join at http://autogroup
Newsgroups
betanews.microsoft.com
microsoft.beta.notification.*
Stock Alerts
사례
Bank one : 미국 bank
계좌와 자금관리 서비스 고객에 delivery
CenterPost
CenterPost를 사용하여 음성,음성메일,FAX, 전자메일, SMS/유무선 및 .NET알림을통해전달
Clalit HMO : 이스라엘 건강관리 회사
전국의 환자와 의사들에게 중요한 진단 결과를 제공하여 치료와 서비스 개선
Consorzio Gruppo Monte dei Paschi di Siena : 이탈리아 금융기관
인트라넷 어플리케이션은 워크플로우 생산성과 주요 문서 처리 관리를 개선
사례
Dresdner Kleinwork Wasserstein : Alianz Group
은행의 백오피스 시스템에서 발생하는 광범위한
이벤트를 모니터링 하고 증권인수업자와 거래자들이 온라인 알림을 제공함
MobileSys
무선장치를 이용하여 안전하고 신뢰성있는 메세징을 통해 모든 무선 장치로 중요한 데이터를 전송할수 있게 해주는 전달 인프라를 제공
Nasdaq.com : 미국 최대 증권 거래소
가입자들이 각 개인에게 관련된 금융 데이터 변동에 관한 개인화된 알림을 수신할수 있도록 하여 시장 변화에 대한 고객인식을 향상시키고 중요한 정보를 신속하게 제공
New York Times : 부동산 알림 서비스
새로운 부동산 목록에 대한 신속한 알림 서비스 제공
SummarySQL Server Notification Services
다양한 알림 어플리케이션을 위한 플랫폼
다양한 프로그래밍 모델
A scalable server for deployment
Technology
구독정보에 대한 이벤트 Match
XML파일내에서 모든 정의가 가능
SQL Server의 모든 기능을 Fully 사용가능
Comments