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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Shravan Kumar Kasagoni
June 01, 2013
Technology
0
130
Building Realtime Web Applications With ASP.NET SignalR
Shravan Kumar Kasagoni
June 01, 2013
Tweet
Share
More Decks by Shravan Kumar Kasagoni
See All by Shravan Kumar Kasagoni
Functional Programming in JavaScript
shravan
0
37
ASP.NET Core – Deep Dive on Building a Real Website
shravan
0
42
Cross-Platform Mobile Development using Visual Studio and Xamarin
shravan
1
41
Angular 2 with TypeScript
shravan
1
160
Building Next Generation Web Apps and Services using ASP.NET 5
shravan
0
89
Writing Application-Scale JavaScript:TypeScript
shravan
0
56
Running, improving and maintaining a site in the real world
shravan
0
37
Real-time Communications with SignalR
shravan
0
51
Open Web Interface for .NET
shravan
0
140
Other Decks in Technology
See All in Technology
「コントロールの三分法」で考える「コト」への向き合い方 / phperkaigi2026
blue_goheimochi
0
110
TypeScript 7.0の現在地と備え方
uhyo
7
2k
スピンアウト講座06_認証系(API-OAuth-MCP)入門
overflowinc
0
180
Visional 28新卒プロダクト職(エンジニア/デザイナー)向け 会社説明資料 / Visional Company Briefing for Newgrads 28
visional_engineering_and_design
1
110
Mitigating geopolitical risks with local-first software and atproto
ept
0
150
Phase07_実務適用
overflowinc
0
290
「お金で解決」が全てではない!大規模WebアプリのCI高速化 #phperkaigi
stefafafan
4
2k
Phase10_組織浸透_データ活用
overflowinc
0
260
Phase09_自動化_仕組み化
overflowinc
0
280
品質を経営にどう語るか #jassttokyo / Communicating the Strategic Value of Quality to Executive Leadership
kyonmm
PRO
2
910
20260321_エンベディングってなに?RAGってなに?エンベディングの説明とGemini Embedding 2 の紹介
tsho
0
130
実践 Datadog MCP Server
nulabinc
PRO
2
250
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
82
BBQ
matthewcrist
89
10k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
230
Practical Orchestrator
shlominoach
191
11k
WENDY [Excerpt]
tessaabrams
9
37k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
570
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
110
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Typedesign – Prime Four
hannesfritz
42
3k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
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