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
Real-time Communications with SignalR
Search
Shravan Kumar Kasagoni
May 19, 2015
Technology
55
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Real-time Communications with SignalR
Shravan Kumar Kasagoni
May 19, 2015
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
Open Web Interface for .NET
shravan
0
150
Glance at Visual Studio 2013 ASP.NET and Web Tools 2013
shravan
0
82
Other Decks in Technology
See All in Technology
不要なレビューをAIにまかせて AIコーディングの環境改善を加速した
shoota
1
220
2026TECHFRESH畢業分享會 - AI 時代的人生存檔點
line_developers_tw
PRO
0
1.3k
2026TECHFRESH畢業分享會 - Lightning Talk - E起 See See : 電商推薦讀心術? 數據說了算
line_developers_tw
PRO
0
1.3k
「勝手に広まる」人気 AI エージェントを爆速で作ろう!(AWS Summit Japan 2026講演資料)
minorun365
PRO
6
1.8k
あなたの知らないPDFのアクセシビリティ
lycorptech_jp
PRO
0
220
Bucharest Tech Week 2026 - Guardians of the Cloud-Native Galaxy
edeandrea
PRO
0
120
【NRUG vol.18】KubernetesにおけるNew Relicデータ取得量削減の考え方
nrug_member
0
160
徹底討論!ECS vs EKS!
daitak
0
150
【2026年版】 ベクトル検索とEmbedding最前線
mocobeta
14
3.9k
日本 Fintech 未来予測レポート 2027〜2028年(オリジナル版)
8maki
0
2.3k
Lightning近況報告
kozy4324
0
180
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
6
1.5k
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
390
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
490
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
390
Discover your Explorer Soul
emna__ayadi
2
1.1k
A better future with KSS
kneath
240
18k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
310
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
170
New Earth Scene 8
popppiees
3
2.3k
WENDY [Excerpt]
tessaabrams
11
38k
Transcript
Real-time Communications with SignalR Shravan Kumar Kasagoni
Agenda 1) Introduction to the real-time web 2) ASP .NET
SignalR 3) Building a real-time
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.
Without real-time
With real-time
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
How to do real-time in web?
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 working 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
Basically…
Introducing SignalR • Abstraction over transports • Events instead of
task/async • Connection management • Broadcast or target specific client
What does SignalR do? • Client to Server persistent connection
over HTTP • Easily build multi-user, real-time web applications • Auto-negotiates transport
SignalR Fallback Long Polling Forever Frames Server Sent Events Web
Sockets
What does SignalR do? • Allows server-to-client push and RPC
• Built async to scale to 1000’s of connections • Scale out with Service Bus, SQL Server & Redis • Open Source on GitHub
Backplane SignalR Backplanes Load balancing via a common transport mechanism
Thank You