20

Making your application realtime with signal r

Embed Size (px)

Citation preview

Page 1: Making your application realtime with signal r
Page 2: Making your application realtime with signal r

Web

Building maintainable real-time web applications

Page 3: Making your application realtime with signal r

Web

Page 4: Making your application realtime with signal r

Web

AgendaKnockout JS

SignalRSingle Page Application

We will see Require JS, RavenDB ++

Page 5: Making your application realtime with signal r

Web

what - why - how

Page 6: Making your application realtime with signal r

Web

๏ MVVM for JavaScript

๏ Built by Steve Sanderson

๏ Works for Microsoft

๏ Current version 2.3.0 - 3.0 coming soon

What:Knockout

Page 7: Making your application realtime with signal r

Web

MVVMModelModelModelModel

ViewViewViewView

ViewModelViewModelViewModelViewModel ObservableObservableObservableObservable

ObservesObservesObservesObserves

Get from serverGet from serverGet from serverGet from server

Page 8: Making your application realtime with signal r

Web

Event AggregatorViewModel 1ViewModel 1ViewModel 1ViewModel 1 ViewModel 2ViewModel 2ViewModel 2ViewModel 2

Page 9: Making your application realtime with signal r

Web

๏ Decouples view from logic

๏ More testable code

๏ More maintainable code

๏ Lego pieces

Why

Page 10: Making your application realtime with signal r

Web

What:SignalR๏ Abstraction for keeping persistent connections

between clients and server

๏ .net, JavaScript, Silverlight, WinJS, Windows Phone 7 / 8, WinRT, Mono

๏ Built for scale

๏ Redis

๏ Azure ServiceBus

๏ SqlServer

Page 11: Making your application realtime with signal r

Web

Why....

๏ “RealTime”

๏ Concurrency

๏ Better for load - scaling

๏ Asynchronously - Eventual consistency

Environmental friendly

Page 12: Making your application realtime with signal r

Web

Why....

Improve the usersexperience

Page 13: Making your application realtime with signal r

Web

how

Page 14: Making your application realtime with signal r

Web

Shameless plug

http://www.packtpub.com/signalr-realtime-dotnet-application-development/book

Page 15: Making your application realtime with signal r

Web

Houston, we have a problem

Houston, we have a problem

Page 16: Making your application realtime with signal r

Web

Page 17: Making your application realtime with signal r

Web

Its that time of the year

http://moteam.co/dolittle

Page 18: Making your application realtime with signal r

Web

Resources๏ http://knockoutjs.com

๏ http://www.nuget.org/packages/knockoutjs

๏ http://github.com/signalr

๏ http://www.asp.net/signalr

๏ http://www.nuget.org/packages/Microsoft.AspNet.SignalR/

Page 19: Making your application realtime with signal r

Architecture

Thanks for Thanks for your your

attentionattention

Page 20: Making your application realtime with signal r