Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Building Realtime Web Applications With ASP.NET...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Shravan Kumar Kasagoni
June 01, 2013
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Building Realtime Web Applications With ASP.NET SignalR
Shravan Kumar Kasagoni
June 01, 2013
More Decks by Shravan Kumar Kasagoni
See All by Shravan Kumar Kasagoni
Functional Programming in JavaScript
shravan
0
48
ASP.NET Core – Deep Dive on Building a Real Website
shravan
0
49
Cross-Platform Mobile Development using Visual Studio and Xamarin
shravan
1
49
Angular 2 with TypeScript
shravan
1
170
Building Next Generation Web Apps and Services using ASP.NET 5
shravan
0
94
Writing Application-Scale JavaScript:TypeScript
shravan
0
66
Running, improving and maintaining a site in the real world
shravan
0
45
Real-time Communications with SignalR
shravan
0
55
Open Web Interface for .NET
shravan
0
150
Other Decks in Technology
See All in Technology
2026TECHFRESH畢業分享會 - 原生還是跨平台? App 開發踩坑實錄
line_developers_tw
PRO
0
1.3k
入門!AWS Blocks
ysuzuki
1
160
Kubernetesにおける学習基盤とLLMOpsの概要
ry
1
320
Android の公式 Skill / Android skills
yanzm
0
160
【Snowflake Summit 2026 Recap!!】Snowflake Summit Deep Dive: Security & Governance
civitaspo
1
260
AWS Security Agent といっしょに脅威モデリングをやってみよう
amarelo_n24
1
170
2026TECHFRESH畢業分享會 - AI 時代的人生存檔點
line_developers_tw
PRO
0
1.3k
SONiCの統計情報を取得したい
sonic
0
230
秘密度ラベル初心者が第1歩でつまづかないための「設計・運用」ポイント
seafay
PRO
0
110
2026 TECHFRESH 畢業分享會 - 開發日常大解密!從領域驅動到企業級上線
line_developers_tw
PRO
0
1.3k
ロボティクスの技術 / Robotics Technology
ks91
PRO
0
110
Lightning近況報告
kozy4324
0
180
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Practical Orchestrator
shlominoach
191
11k
Side Projects
sachag
455
43k
Leo the Paperboy
mayatellez
7
1.8k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
350
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.3k
Facilitating Awesome Meetings
lara
57
7k
Paper Plane
katiecoart
PRO
1
51k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
The Limits of Empathy - UXLibs8
cassininazir
1
360
Transcript
None
Your Presenter Shravan Kumar Kasagoni Software Engineer @ Thomson Reuters
Microsoft MVP – ASP .NET / IIS | MCP Microsoft User Group Hyderabad http://theshravan.net @techieshravan
Agenda Introduction to real-time apps What is SignalR? Demos SignalR
Components Scaleout SignalR
Real-time Application? Real-time functionality is the ability to have server
code push content to connected clients instantly as it becomes available, rather than having the server wait for a client to request new data.
Why Real-time? Users want the latest info, NOW!
Show Me Some Examples Twitter, Facebook, Mail - live
searches/updates Stock streamers Auctions Interactive games Live Scores Collaborative apps (google docs, office web apps) Live user analytics (live graphs)
How to build real-time web apps?
HTTP is an old beast… Never designed for real-time communications
Web is all about request-response Web is stateless
None
Periodic polling Poll from time to time using Ajax
Delay in communication due to polling interval Wastes bandwidth & latency Server Client Polling interval
Long polling Poll but doesn’t respond until there's data
Poll again after data received or after the connection times out Consumes server & threads & connection resources Server Client
Forever Frame Server tells client that response is chucked
Client keeps connection open until server closes it Server pushed data to the client followed by \0 Consumes server threads Server Client
HTML5 Web sockets Extension to HTTP Provides raw
sockets over HTTP Full-duplex Traverses proxies It's still a draft Not every proxy server supports it Not every web server supports it Not every browser supports it They are raw sockets!
too many options
None
None
What is SignalR? An open-source series of libraries that provide
an abstraction around persistent HTTP connections SignalR makes real-time HTTP so easy it seems like magic that it works [In English, please]
SignalR on Old Servers or Clients
SignalR on New Servers and Clients
Basically…
What does SignalR do? Client to Server Persistent connection
over HTTP Easily build multi-user, real-time web applications Auto-negotiates transport
None
SignalR Fallback Long Polling Forever Frame Server Sent Events Web
Sockets
None
None
http://shootr.signalr.net http://firework.cloudapp.net
None
CLIENTS BACKPLANES HOSTS
None
Three backplanes Windows Azure Service Bus SQL Server
Redis
Backplane Load balancing via a common transport mechanism
References http://www.asp.net/signalr/ http://signalr.net/ https://github.com/SignalR/SignalR/wiki
Keep in touch http://theshravan.net @techieshravan
[email protected]
None