SlideShare a Scribd company logo
How SignalR  and SQL Dependency Work Process in ASP.NET with SQL Server?
Web Evolution
Static HTML Pages
Event-Based , Real-Time UI
Dynamic Pages , Forms
Partial Page Updates(Ajax),RIA
How SignalR  and SQL Dependency Work Process in ASP.NET with SQL Server?
Server
Client
}
Delay
Request
Response
Time: requests event ‘n’ seconds (fixed time)
NOW WHAT TO DO…???
Right Path
What is a real time web application?
g
g
What is SQL Dependency?
As the word describes itself, it is
used to notify your application or
user when certain criteria or
condition is satisfied.
In short the SqlDependency provides
capabilities to your application to monitor
your database for data change without the
hassles of continuously querying the
database using timers or loops
It Means….!!!
When Data Changes in Database.
Server
Client 1
(With Sql SignalR & Sql Dependency)
Client 2
Server
(Without SignalR & Sql Dependency)
Client 2
Client 1
What happens when you don’t use SignaLR?
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
6 Month 12 Month 18 Month 24 Month
Speed
Types of SQL Dependency
Example:
Changes in notification
table then get all unread
notifications.
Example:
After Student Attendance
Send a SMS to Guardian of
the Student With
Attendance Date and Time.
Dependency
SQL
Dependency.
Table
Dependency
.
Table Dependency Code Example.
How SignalR Works?
Server Side – Hub 1/2
Top layer of Persistent Connection.
Can connect with 1-N clients.
Can send messages and call methods.
Routes automatically mapped.
SignalR handle the binding of complex object and arrays
of objects automatically.
Communication is serialized by JSON.
Hubs are per call, which means, each call from client to
the hub will create a new hub instance.
Server Side – Hub 2/2
client Side – 1/2
• Exposing methods from the server - The JavaScript
client can declare methods that the server can invoke.
• Method – name of the client side method.
• Callback – A function to execute when the server
invokes the method.
• - If you misspell names you will not get any warnings or
notifications even when logging is enabled.
client Side – 2/2
Hub routing for both Side
Signalr requirements,
 Windows Server 2012.
 Windows Server 2008 R2.
 Windows 7/8/ Later Version.
 Windows Azure
 Operating System
 IIS – 7/7.5 (With Extension less URL(2); 8/8 Express)
 .Net – 4.5 framework.
How SignalR  and SQL Dependency Work Process in ASP.NET with SQL Server?

More Related Content

PPTX
Getting started with react & redux
DOCX
Differences
PPTX
Server interaction with web socket protocol
PPT
Apache kafka- Onkar Kadam
PPT
DOCX
Web 10mca556 syllabs
PPTX
Spring Services
PPTX
Server Monitoring 101
Getting started with react & redux
Differences
Server interaction with web socket protocol
Apache kafka- Onkar Kadam
Web 10mca556 syllabs
Spring Services
Server Monitoring 101

Similar to How SignalR and SQL Dependency Work Process in ASP.NET with SQL Server? (20)

PPTX
Real time Communication with Signalr (Android Client)
PPTX
SignalR with asp.net
PPTX
SignalR Powered X-Platform Real-Time Apps!
PPTX
Real-time web applications using SharePoint, SignalR and Azure Service Bus
PPTX
SignalR powered real-time x-plat mobile apps!
PPTX
SignalR for ASP.NET Developers
PPTX
signalr
PPSX
SignalR With ASP.Net part1
PPTX
ASP.NET MVC 5 and SignalR 2
PDF
Introduction to SignalR
PPTX
Real-time ASP.NET with SignalR
PPTX
SignalR Dublin ALT.NET
PDF
PPTX
Asynchrone Echtzeitanwendungen für SharePoint mit SignalR und knockout.js
PPTX
Real Time Web with SignalR
PDF
How SignalR Can Simplify Your Messaging Needs? | Virtuoso Infotech
PPTX
Real-time Communications with SignalR
PPTX
Building Realtime Web Applications With ASP.NET SignalR
PPTX
Building Real Time Applications with ASP.NET SignalR 2.0 by Rachel Appel
PPTX
SignalR Overview
Real time Communication with Signalr (Android Client)
SignalR with asp.net
SignalR Powered X-Platform Real-Time Apps!
Real-time web applications using SharePoint, SignalR and Azure Service Bus
SignalR powered real-time x-plat mobile apps!
SignalR for ASP.NET Developers
signalr
SignalR With ASP.Net part1
ASP.NET MVC 5 and SignalR 2
Introduction to SignalR
Real-time ASP.NET with SignalR
SignalR Dublin ALT.NET
Asynchrone Echtzeitanwendungen für SharePoint mit SignalR und knockout.js
Real Time Web with SignalR
How SignalR Can Simplify Your Messaging Needs? | Virtuoso Infotech
Real-time Communications with SignalR
Building Realtime Web Applications With ASP.NET SignalR
Building Real Time Applications with ASP.NET SignalR 2.0 by Rachel Appel
SignalR Overview
Ad

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
A Presentation on Artificial Intelligence
PPTX
Cloud computing and distributed systems.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation theory and applications.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Machine Learning_overview_presentation.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
A Presentation on Artificial Intelligence
Cloud computing and distributed systems.
Chapter 3 Spatial Domain Image Processing.pdf
Programs and apps: productivity, graphics, security and other tools
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
“AI and Expert System Decision Support & Business Intelligence Systems”
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation theory and applications.pdf
Electronic commerce courselecture one. Pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Digital-Transformation-Roadmap-for-Companies.pptx
Machine Learning_overview_presentation.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Ad

How SignalR and SQL Dependency Work Process in ASP.NET with SQL Server?

  • 2. Web Evolution Static HTML Pages Event-Based , Real-Time UI Dynamic Pages , Forms Partial Page Updates(Ajax),RIA
  • 5. NOW WHAT TO DO…??? Right Path
  • 6. What is a real time web application?
  • 7. g
  • 8. g What is SQL Dependency? As the word describes itself, it is used to notify your application or user when certain criteria or condition is satisfied. In short the SqlDependency provides capabilities to your application to monitor your database for data change without the hassles of continuously querying the database using timers or loops
  • 9. It Means….!!! When Data Changes in Database. Server Client 1 (With Sql SignalR & Sql Dependency) Client 2 Server (Without SignalR & Sql Dependency) Client 2 Client 1
  • 10. What happens when you don’t use SignaLR? 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 6 Month 12 Month 18 Month 24 Month Speed
  • 11. Types of SQL Dependency Example: Changes in notification table then get all unread notifications. Example: After Student Attendance Send a SMS to Guardian of the Student With Attendance Date and Time. Dependency SQL Dependency. Table Dependency .
  • 14. Server Side – Hub 1/2
  • 15. Top layer of Persistent Connection. Can connect with 1-N clients. Can send messages and call methods. Routes automatically mapped. SignalR handle the binding of complex object and arrays of objects automatically. Communication is serialized by JSON. Hubs are per call, which means, each call from client to the hub will create a new hub instance. Server Side – Hub 2/2
  • 16. client Side – 1/2 • Exposing methods from the server - The JavaScript client can declare methods that the server can invoke. • Method – name of the client side method. • Callback – A function to execute when the server invokes the method. • - If you misspell names you will not get any warnings or notifications even when logging is enabled.
  • 18. Hub routing for both Side
  • 19. Signalr requirements,  Windows Server 2012.  Windows Server 2008 R2.  Windows 7/8/ Later Version.  Windows Azure  Operating System  IIS – 7/7.5 (With Extension less URL(2); 8/8 Express)  .Net – 4.5 framework.