O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
SIGNALR &
SQL DEPENDENCY
Bart Callaerts
HOW WE DID IT IN THE PAST
We used to implement a polling system
Client Server
Got new Data ?
Got new Data ?
Got new Data ?...
WHAT IS SIGNALR ?
ASP.NET SignalR is
•Library that makes developping real-time web functionality easy
•Allows bi-direction...
SQL DEPENDENCY
• A sql dependency object can be associated with a sql command in order to detect
when query results differ...
LIMITATIONS FOR SQL DEPENDENCY
Query notifications are supported for SELECT statements that meet the following requirement...
DEMO ARCHITECTURE : FLIGHT INFO
ASP.Net
webserver
SignalRConnection
Console
application,
hooked on SQL
depdency
Sql Depend...
SignalR & SQL Dependency
Próximos SlideShares
Carregando em…5
×

SignalR & SQL Dependency

4.115 visualizações

Publicada em

Easy to use technique for Server - Client communication
In combination with SQL Dependency

Publicada em: Tecnologia
  • Dating direct: ❤❤❤ http://bit.ly/2F7hN3u ❤❤❤
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • Dating for everyone is here: ❤❤❤ http://bit.ly/2F7hN3u ❤❤❤
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • Seja a primeira pessoa a gostar disto

SignalR & SQL Dependency

  1. 1. SIGNALR & SQL DEPENDENCY Bart Callaerts
  2. 2. HOW WE DID IT IN THE PAST We used to implement a polling system Client Server Got new Data ? Got new Data ? Got new Data ? Got new Data ? Here is new data Got new Data ? Got new Data ? Got new Data ? Got new Data ?
  3. 3. WHAT IS SIGNALR ? ASP.NET SignalR is •Library that makes developping real-time web functionality easy •Allows bi-directional communication between server and client •Server can push content to connected clients instantly •Supports websockets and falls back to other compatible techniques for older browsers
  4. 4. SQL DEPENDENCY • A sql dependency object can be associated with a sql command in order to detect when query results differ from those originally retrieved. • Assign a delegate to the OnChange event, which will fire when the results change for an associated command.
  5. 5. LIMITATIONS FOR SQL DEPENDENCY Query notifications are supported for SELECT statements that meet the following requirements: •The projected columns in the SELECT statement must be explicitly stated, and table names must be qualified with two- part names. Notice that this means that all tables referenced in the statement must be in the same database. •The statement may not use the asterisk (*) or table_name.* syntax to specify columns. •The statement may not use unnamed columns or duplicate column names. •The projected columns in the SELECT statement may not contain aggregate expressions unless the statement uses a GROUP BY expression. When a GROUP BY expression is provided, the select list may contain the aggregate functions COUNT_BIG() or SUM(). However, SUM() may not be specified for a nullable column. The statement may not specify HAVING, UBE, or ROLLUP. •The statement must not reference a view. •The statement must not contain any of the following: DISTINCT, COMPUTE or COMPUTE BY, or INTO. •The statement must not reference tables or views from other databases or servers. •The statement must not contain subqueries, outer joins, or self-joins. •The statement must not use any of the following aggregate functions: AVG, COUNT(*), MAX, MIN, STDEV, STDEVP, VAR, or VARP. •The statement must not contain conditional statements that cannot change and cannot return results (for example, WHERE 1=0). …
  6. 6. DEMO ARCHITECTURE : FLIGHT INFO ASP.Net webserver SignalRConnection Console application, hooked on SQL depdency Sql Dependency Flight Info Administrati on SignalRConnection 1 2 3 Client watching Flight Info SignalRConnection 4 Client watching Flight Info 4

×