Your SlideShare is downloading. ×
0
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Realtime web experience with signalR
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Realtime web experience with signalR

1,381

Published on

Realtime web experience with signalR presentation at the Israeli Web Developers group - WDCIL

Realtime web experience with signalR presentation at the Israeli Web Developers group - WDCIL

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,381
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  1. © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il
  2. What is “Real Time”experience“Real Time” web techniquesWhat is signalRSignalR protocolConnection & HubGroups and privatemessages.Net clientSelf HostingScaleout
  3. WebSocket ServerSentEvents ForeverFrames Long-PollingPolling
  4. • Not all servers support web sockets• Not all network components support web sockets• It’s API is limited
  5. • Code once, deploy everywhere• As cross-platform as possible• Simple API to work with
  6. • Open source project• Abstraction layer over connection technique• Can be self-hosted• Call client methods from the server WebSocket ServerSentEvents = ForeverFrames Long-Polling Polling
  7. WebSocket SignalR• Good performance • Abstraction layer• Strict prerequisites • Reach API• Limited API • Supports WebSocket
  8. Negotiate request ServerClient Negotiate response Connection phase
  9. • WebSocket-like API• Lower level code• Provides us with more control
  10. • Abstraction over signalR connection• Service-like API• Call clients methods from the server
  11. • You can use connection ID• You can access a particular client by itClients.Client(connectionId).sendMessage(message)
  12. • Part of Hub API• Stored on client• Not persistent
  13. _connection = new HubConnection("http://localhost/RanWahle.Blog.SignalR.Demo");IHubProxy proxy = connection.CreateHubProxy("soccerResultsHub");_connection.Start().ContinueWith( //define proxies); //invoke server methods _proxy.Invoke(“HubServerMethod“ , args…));
  14. • Three NuGet packages to install• Create class with Configuration method.• Map hub in the Configuration method• Use the class as a type parameter to WebApplication.Start
  15. • signalR supports ASP.NET authentication & authorization• AuthorizeAttribute• Accessing user data from context• Authenticated request may downdgrade to serverSentEvents in some clients.
  16. • Install Redis for Linux or Clone the windows porting• Add One line of code• On Windows – run redis from command line• Your app is ready to scaleout
  17. Real time experience is more thanjust pollingUsing signalR can use the bestavailable techniqueIt can be self hostedIt can scale outIt has several clients
  18. • http://www.asp.net/signalr• http://signalr.net/• Twitters:@signalr @DamianEdwards @davidfowl and @DavianFowlwards• http://blogs.Microsoft.co.il/blogs/ranw
  19. © Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il

×