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
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
40
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
50
Open Web Interface for .NET
shravan
0
140
Other Decks in Technology
See All in Technology
Reflections of AI: A Trilogy in Four Parts (GOTO; Copenhagen 2025)
ondfisk
0
110
AI駆動開発を推進するためにサービス開発チームで 取り組んでいること
noayaoshiro
0
260
Adminaで実現するISMS/SOC2運用の効率化 〜 アカウント管理編 〜
shonansurvivors
4
440
いまからでも遅くない!SSL/TLS証明書超入門(It's not too late to start! SSL/TLS Certificates: The Absolute Beginner's Guide)
norimuraz
0
200
AWS IoT 超入門 2025
hattori
0
330
やる気のない自分との向き合い方/How to Deal with Your Unmotivated Self
sanogemaru
0
490
後進育成のしくじり〜任せるスキルとリーダーシップの両立〜
matsu0228
7
3.3k
20201008_ファインディ_品質意識を育てる役目は人かAIか___2_.pdf
findy_eventslides
2
610
OpenAI gpt-oss ファインチューニング入門
kmotohas
2
1.2k
PHPからはじめるコンピュータアーキテクチャ / From Scripts to Silicon: A Journey Through the Layers of Computing Hiroshima 2025 Edition
tomzoh
0
130
Performance Insights 廃止から Database Insights 利用へ/transition-from-performance-insights-to-database-insights
emiki
0
240
ニッポンの人に知ってもらいたいGISスポット
sakaik
0
130
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
53k
Writing Fast Ruby
sferik
629
62k
Keith and Marios Guide to Fast Websites
keithpitt
411
23k
Docker and Python
trallard
46
3.6k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
870
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.5k
The Invisible Side of Design
smashingmag
302
51k
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