Upgrade to Pro — share decks privately, control downloads, hide ads and more …



My slides from MonkeySpace 2012

David Fowler

October 18, 2012

More Decks by David Fowler

Other Decks in Programming


  1. SignalR: Awesome in Real- Time with ASP.NET David Fowler Senior

    Developer Microsoft Corporation
  2. What is SignalR? Web UI that updates in real-time Push

    messages to connected clients An existing name for HTTP push techniques Equivalent technology on node.js
  3. demo Just show me teh codez…

  4. Real-time != Chat

  5. What is SignalR? Real-time, persistent connection abstraction over HTTP

  6. Simplicity: two-level API Low level Raw strings up and down

    Broadcast to all clients, groups or individuals Connect, Reconnect & Disconnect
  7. demo Connections vs. Hubs

  8. Reach: but what about WebSockets? You use ASP.NET 4.5 on

    Windows Server 2012 AND Client uses IE10 or latest Chrome, FF, Safari AND Your load balancer/reverse proxy supports it AND Client proxy server/NAT supports it AND Everybody between client & server supports it AND You’re happy coding against raw sockets AND You manage scale-out yourself
  9. demo Transport negotiation

  10. Reach: clients for everybody! JavaScript (jQuery) .NET 3.5/4.0/4.5 Silverlight 4/5

    Windows Phone 7/7.1 WinRT iOS (community maintained) MonoTouch (community maintained)
  11. demo Mixed-clients

  12. Performance: throughput & scale Very high performance on a single

    box 100,000’s of messages per second Very low memory overhead
  13. demo Scale-out with Redis

  14. More awesome… Run it in your ASP.NET application or standalone

    with self-host on OWIN Run it on OSX or Linux with Mono #1 watched C# repo on GitHub
  15. What Next? Run make and run the samples in mono

    develop. MonoTouch and MonoDroid clients Log bugs on github https://github.com/SignalR/SignalR Talk to us in jabbr! http://jabbr.net/#/rooms/signalr david.fowler@microsoft.com Twitter: @davidfowl