Realtime signalR

11
Real-time Communications with SignalR Dave Voyles Technical Evangelist Email: [email protected] @DaveVoyles

Transcript of Realtime signalR

Page 1: Realtime signalR

Real-time Communications

with SignalRDave Voyles

Technical Evangelist

Email: [email protected]

@DaveVoyles

Page 2: Realtime signalR

Microsoft Azure

Agenda

1)Introduction to the real-time web

2)ASP.NET SignalR3)Building a real-time

Page 3: Realtime signalR

Microsoft Azure

Client Browser

WebServer

Got Data?

Got Data?

Got Data?

Got Data?

Here’s some data!

Got Data?

Got Data?

Got Data?

Got Data?

Without real-time

Page 4: Realtime signalR

Microsoft Azure

Client Browser

WebServer

I do real time, do you?

Absolutely!

With real-time

Let’s Party in Real-time!

Page 5: Realtime signalR

Microsoft Azure

Client Browser

WebServer

Basically…

SignalR!!!

Page 6: Realtime signalR

Microsoft Azure

Introducing SignalR• Abstraction over transports• Events instead of task/async• Connection management• Broadcast or target specific client

Page 7: Realtime signalR

Microsoft Azure

What does SignalR do?

• Client to Server persistent connection over HTTP

• Easily build multi-user, real-time web applications

• Auto-negotiates transport

Page 8: Realtime signalR

Microsoft Azure

SignalR Fallback

Long Polling

Forever Frames

Server Sent Events

Web Sockets

Page 9: Realtime signalR

Microsoft Azure

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

Page 10: Realtime signalR

Microsoft AzureMicrosoft /web

®

Backplane

SignalR BackplanesLoad balancing via a common transport mechanism

Load B

ala

nce

r

Page 11: Realtime signalR

Microsoft Azure

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Microsoft, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.