making your application realtime with signal r
TRANSCRIPT
![Page 1: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/1.jpg)
![Page 2: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/2.jpg)
Web
Building maintainable real-time web applications
![Page 3: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/3.jpg)
Web
![Page 4: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/4.jpg)
Web
AgendaKnockout JS
SignalRSingle Page Application
We will see Require JS, RavenDB ++
![Page 5: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/5.jpg)
Web
what - why - how
![Page 6: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/6.jpg)
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](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/7.jpg)
Web
MVVMModelModelModelModel
ViewViewViewView
ViewModelViewModelViewModelViewModel ObservableObservableObservableObservable
ObservesObservesObservesObserves
Get from serverGet from serverGet from serverGet from server
![Page 8: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/8.jpg)
Web
Event AggregatorViewModel 1ViewModel 1ViewModel 1ViewModel 1 ViewModel 2ViewModel 2ViewModel 2ViewModel 2
![Page 9: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/9.jpg)
Web
๏ Decouples view from logic
๏ More testable code
๏ More maintainable code
๏ Lego pieces
Why
![Page 10: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/10.jpg)
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](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/11.jpg)
Web
Why....
๏ “RealTime”
๏ Concurrency
๏ Better for load - scaling
๏ Asynchronously - Eventual consistency
Environmental friendly
![Page 12: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/12.jpg)
Web
Why....
Improve the usersexperience
![Page 13: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/13.jpg)
Web
how
![Page 14: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/14.jpg)
Web
Shameless plug
http://www.packtpub.com/signalr-realtime-dotnet-application-development/book
![Page 15: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/15.jpg)
Web
Houston, we have a problem
Houston, we have a problem
![Page 16: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/16.jpg)
Web
![Page 18: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/18.jpg)
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](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/19.jpg)
Architecture
Thanks for Thanks for your your
attentionattention
![Page 20: Making your application realtime with signal r](https://reader031.vdocuments.us/reader031/viewer/2022012913/5560b60cd8b42af93b8b4a9b/html5/thumbnails/20.jpg)