• Save
Upcoming SlideShare
Loading in...5
×
 

Real time web applications with SignalR (BNE .NET UG)

on

  • 246 views

Static web pages and data don't cut it anymore. Information online is real-time and even web applications should respond to continuous changes. As SignalR has recently been introduced as a component ...

Static web pages and data don't cut it anymore. Information online is real-time and even web applications should respond to continuous changes. As SignalR has recently been introduced as a component to the ASP.NET runtime there's no better time to start building web application that respond to change. SignalR does all the heavy lifting and makes it easy to introduce into a wide range of projects, so pry your application out of the static mould and start responding to the real dynamic nature of information and changes as they occur.

Statistics

Views

Total Views
246
Views on SlideShare
207
Embed Views
39

Actions

Likes
0
Downloads
0
Comments
0

3 Embeds 39

http://kowitz.net 21
http://www.kowitz.net 16
http://feedly.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Real time web applications with SignalR (BNE .NET UG) Real time web applications with SignalR (BNE .NET UG) Presentation Transcript

  • Real-time web applications with SignalR 2.0 Brendan Kowitz brendan.kowitz@readify.nethttp://www.kowitz.net@brendankowitz
  • Agenda Getting started with SignalR Adding Real- time updates to an existing app Advanced scenarios (Rich client, Performance and scaling)
  • Why SignalR?
  • Why use SignalR?
  • What is SignalR? http://channel9.msdn.com/Events/TechEd/NorthAmerica/2014/DEV-B416
  • Getting started
  • SignalR Hosts Host agnostic – run in asp.net or stand alone with self-host on OWIN Changes in 2.0 – more integration with OWIN, different hub registrations // no longer:RouteTable.Routes.MapHubs(); namespace MyWebApplication { public class Startup { public void Configuration(IAppBuilder app) { app.MapSignalR(); } } }
  • Hubs and Connections Connections – LOW LEVEL Raw strings up and down Broadcast to all clients, groups or individuals Connection, reconnection and disconnection semantics Hubs – Bit higher level Client-server and server-client Automatic client proxy generation
  • Try it yourself:
  • What to include?
  • Adding SignalR to an existing app
  • Agile Dashboard
  • Agile dashboard libraries DurandalJS Knockout Postal Toastr
  • Security? Same as any other web application (browser will respect auth cookies and HTTPS).
  • SignalR clients? Clients for pretty much everybody. .NET 4.5 SL5 Store apps Phone apps Portable apps Xamarin
  • Rich client SignalR
  • Rich client SignalR – how is it different? CreateHubProxy .On<Stock>
  • Agile dashboard…In Excel!!
  • Performance & Scale
  • Performance Throughput 100,000s of message per second Very low memory overhead Scale Fully async to optimise resource utilisation 1,000s of connections per server (concurrent) Supports horizontal scaleout using pluggable message bus backplane
  • Which are currently valid scale-out options for SignalR? a) SQL Server b) Windows Azure Service Bus c) ZeroMQ d) Redis e) Messaging Ferrets http://animals.nationalgeographic.com/animals/mammals/ black-footed-ferret/ http://www.asp.net/signalr/overview/performance-and- scaling/scaleout-in-signalr
  • How does it work?
  • What’s next? http://www.quickmeme.com/meme/35dm11/
  • Further watching Building Real-time Applications with SignalR http://channel9.msdn.com/Events/TechEd/NorthAmerica/201 4/DEV-B416 Microsoft ASP.NET SignalR: The Real-Time Web Made Simple http://channel9.msdn.com/Events/TechEd/NorthAmerica/201 3/DEV-B302 Building Real-time Web Apps with ASP.NET SignalR http://channel9.msdn.com/Events/Build/2012/3-034
  • Take-away Getting started with SignalR Adding Real-time updates to an existing app Performance Advanced scenarios
  • Get the source! https://github.com/brendankowitz/AgileR brendan.kowitz@readify.nethttp://www.kowitz.net@brendankowitz