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

PDF
FinTech with Internet of Things
PDF
TravelPerk - NOAH17 London
PDF
ملخص التربية الإسلامية 2019.pdf
PPTX
Real time Communication with Signalr (Android Client)
PPTX
Stephy
PPTX
SignalR with asp.net
PPTX
Stephy
PPTX
Web services - A Practical Approach
FinTech with Internet of Things
TravelPerk - NOAH17 London
ملخص التربية الإسلامية 2019.pdf
Real time Communication with Signalr (Android Client)
Stephy
SignalR with asp.net
Stephy
Web services - A Practical Approach

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

PPTX
Servlet.pptx
PPTX
Servlet.pptx
ODP
Angularjs
PDF
Project report
PDF
Docebo: history of a journey from legacy to serverless
PDF
Getting all the 99.99(9) you always wanted
DOCX
Resume_Sandip_Mohod_Java_9_plus_years_exp
PPTX
Ria Mvc
PDF
Struts notes
PDF
Struts natraj - satya
PDF
Struts natraj - satya
PPTX
Reverse ajax in 2014
PDF
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드
PDF
IBM IMPACT 2014 - AMC-1882 Building a Scalable & Continuously Available IBM M...
PDF
Meetup #4: AWS ELB Deep dive & Best practices
PDF
X-Ray distributed tracing proof-of-concept
PDF
CMPE282_009994036_PROJECT_REPORT
PPTX
Architecture for monitoring applications in Cloud
PPT
session and cookies.ppt
PDF
HBaseCon2017 Highly-Available HBase
Servlet.pptx
Servlet.pptx
Angularjs
Project report
Docebo: history of a journey from legacy to serverless
Getting all the 99.99(9) you always wanted
Resume_Sandip_Mohod_Java_9_plus_years_exp
Ria Mvc
Struts notes
Struts natraj - satya
Struts natraj - satya
Reverse ajax in 2014
Confluent Workshop Series: ksqlDB로 스트리밍 앱 빌드
IBM IMPACT 2014 - AMC-1882 Building a Scalable & Continuously Available IBM M...
Meetup #4: AWS ELB Deep dive & Best practices
X-Ray distributed tracing proof-of-concept
CMPE282_009994036_PROJECT_REPORT
Architecture for monitoring applications in Cloud
session and cookies.ppt
HBaseCon2017 Highly-Available HBase
Ad

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
KodekX | Application Modernization Development
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Understanding_Digital_Forensics_Presentation.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Spectral efficient network and resource selection model in 5G networks
Sensors and Actuators in IoT Systems using pdf
Advanced Soft Computing BINUS July 2025.pdf
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
NewMind AI Monthly Chronicles - July 2025
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Dropbox Q2 2025 Financial Results & Investor Presentation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Transforming Manufacturing operations through Intelligent Integrations
madgavkar20181017ppt McKinsey Presentation.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
KodekX | Application Modernization Development
“AI and Expert System Decision Support & Business Intelligence Systems”
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.