MICROSOFT DEVELOPER PHILIPPINES TECHNICAL SHARINGSIGNALR101                                                         Patric...
The web evolved       Event-based, real-time UI     Partial page updates (Ajax), RIA          Dynamic pages, forms        ...
Scenarios
Implementations   Periodic Pooling   Long Polling   Server-Sent Events   Web Sockets
Periodic Pooling Polling interval Cons: • Poll from time to time using Ajax • Delay in communications due to polling inter...
Long Pooling Cons: • Poll but don’t respond untill there’s data • Poll again after data received or after the connection t...
Web Sockets (HTML 5)  •   Extension to HTTP  •   Provide raw sockets over HTTP  •   Full-duplex  •   Traverses proxies  • ...
So What Now?  Superman SignalR to the rescue!
Enter SignalR• ASP.NET SignalR is a new library for ASP.NET developer that makes it incredibly  simple to add real-time we...
Enter SignalR
Transport Priority         Web Sockets       Server-Sent Events         Forever Frame          Long Polling
Demo
Resources • SignalR project page:               http://www.signalr.net • SignalR on github:               https://github.c...
Thanks!
Upcoming SlideShare
Loading in …5
×

SignalR 101

682 views
524 views

Published on

This topic covers SignalR on a general level. The demo used for this talk was a modification of the default chat application to make it more descriptive and realistic in enterprise setting.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
682
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
12
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

SignalR 101

  1. 1. MICROSOFT DEVELOPER PHILIPPINES TECHNICAL SHARINGSIGNALR101 Patrick Oliveros Microsoft MVP ASP.NET/IIS
  2. 2. The web evolved Event-based, real-time UI Partial page updates (Ajax), RIA Dynamic pages, forms Static HTML pages
  3. 3. Scenarios
  4. 4. Implementations Periodic Pooling Long Polling Server-Sent Events Web Sockets
  5. 5. Periodic Pooling Polling interval Cons: • Poll from time to time using Ajax • Delay in communications due to polling interval • Wastes bandwidth & latency 
  6. 6. Long Pooling Cons: • Poll but don’t respond untill there’s data • Poll again after data received or after the connection times out • Consumes server threads & connection resources 
  7. 7. Web Sockets (HTML 5) • Extension to HTTP • Provide raw sockets over HTTP • Full-duplex • Traverses proxies • It’s still a draft… • Not every proxy server supports it  • Not every webserver supports it  • Not every browser supports it  • They are raw sockets!
  8. 8. So What Now? Superman SignalR to the rescue!
  9. 9. Enter SignalR• ASP.NET SignalR is a new library for ASP.NET developer that makes it incredibly simple to add real-time web functionality to your applications• Async signaling library for .NET to help build real-time, multi-user interactive web applications ( aka persistent connection abstraction for .NET);
  10. 10. Enter SignalR
  11. 11. Transport Priority Web Sockets Server-Sent Events Forever Frame Long Polling
  12. 12. Demo
  13. 13. Resources • SignalR project page: http://www.signalr.net • SignalR on github: https://github.com/SignalR/SignalR
  14. 14. Thanks!

×