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
0
43
Real-time Communications with SignalR
Shravan Kumar Kasagoni
May 19, 2015
Tweet
Share
More Decks by Shravan Kumar Kasagoni
See All by Shravan Kumar Kasagoni
Functional Programming in JavaScript
shravan
0
31
ASP.NET Core – Deep Dive on Building a Real Website
shravan
0
35
Cross-Platform Mobile Development using Visual Studio and Xamarin
shravan
1
35
Angular 2 with TypeScript
shravan
1
150
Building Next Generation Web Apps and Services using ASP.NET 5
shravan
0
58
Writing Application-Scale JavaScript:TypeScript
shravan
0
51
Running, improving and maintaining a site in the real world
shravan
0
30
Open Web Interface for .NET
shravan
0
130
Glance at Visual Studio 2013 ASP.NET and Web Tools 2013
shravan
0
67
Other Decks in Technology
See All in Technology
今さら聞けない!? AWSの生成AIサービス Amazon Bedrock入門!
minorun365
PRO
11
2.2k
Kubeflow Pipelines v2 で変わる機械学習パイプライン開発
asei
4
330
LLMプロダクト事業の立ち上げにおける挑戦
layerx
PRO
7
1.4k
生成AIサービスPanorama AIご説明資料
sdt
0
300
Cloud Deploy と仲良くなりたい
phaya72
1
100
これまでのキャリアとこれからMLエンジニアとしてどう動くか
masatakashiwagi
0
270
XRミーティング 2024-03-20
1ftseabass
PRO
0
100
エバンジェリスト活動を7年やってきて見えてきた、コミュニティとエバンジェリストの関係
soracom
PRO
1
200
生成AI・LLM時代における 機械学習エンジニアとしてのキャリア戦略・開発戦略 / my-career-and-development-strategies-for-ml-engineer-2024
yuya4
3
210
サービスメッシュ環境における OpenTelemetry 活用 / OpenTelemetry in Service Mesh
k6s4i53rx
2
830
統計的学習理論読み Chapter 1
kmatsui
3
740
AMLD 2024 - Build Your Own GPT
donlelef
1
260
Featured
See All Featured
Bash Introduction
62gerente
604
210k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
113
18k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
28
5.9k
Building an army of robots
kneath
300
41k
BBQ
matthewcrist
78
8.7k
Why Our Code Smells
bkeepers
PRO
330
56k
Building Effective Engineering Teams - LeadDev
addyosmani
25
1.8k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
GraphQLの誤解/rethinking-graphql
sonatard
48
9.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
185
15k
Raft: Consensus for Rubyists
vanstee
130
6.2k
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