2015
Pluralsight
Jason Roberts
2:34
English
The traditional stateless design for web apps can become increasingly troublesome with new classes of web apps and increasing end-user expectations. This traditional approach, where the web application is essentially a stateless front-end and all state is written/read to a database, falls short when we have ever-increasing workloads and requirements for highly responsive, near real-time systems. Add in the requirements for concurrency management, scalability and fault-tolerance, and the traditional approach becomes even less attractive. By combining the features of the Actor Model (Akka.NET) with the capabilities of SignalR and a front-end SPA library, we can more easily create next-generation reactive, stateful, and concurrent SPA web apps. In this course, we'll be using the example of multi-player online games, as these are a great example of reactive concurrency in action.
Introduction
Introduction
The Move to a Stateful Web
Why Stateful?
Overview of Reactive Systems
Architectural Overview
Course Outline and Suggested Prerequisites
Getting Started in Visual Studio
Creating the Starting HTML Skeleton
Summary
Building the Player and Game Controller Actors
Introduction
Designing the Game Actor Model
Creating the Message Classes
Creating an Actor to Represent a Player
Creating the Game Controller Actor
Instantiating the Actor System in ASP.NET
Summary
Integrating Akka.NET with SignalR
Introduction
Overview of SignalR
Integrating Akka.NET and SignalR
Installing SignalR
Creating the IGameEventsPusher Interface
Creating the SignalR Bridge Actor
Creating the SignalR GameHub
Implementing an IGameEventsPusher
Wiring-up the SignalR Bridge Actor
Summary
Completing the SPA Web User Interface with Knockout
Introduction
Knockout.js Overview
Installing Knockout.js
Creating the Player JavaScript ViewModel
Creating the Game ViewModel
Completing the SignalR Client Code
Creating Knockout Bindings
Fixing Observable References and Loss of Game State
Summary
Hosting Game State in a Windows Service
Introduction
Overview of Using Lightweight Actor Systems
Adding a New Console Application to Hold Game State
Modifying ASP.NET to Use Remote Actors
Creating the Windows Service
Summary, Resources, and Further Learning
Download File Size:379.32 MB