Imagine how you are setting out to implement that awesome idea for a new application. In the back-end you enjoy the horizontal and vertical scalability offered by the Actor model, and its great support for building resilient systems through distribution and supervision hierarchies. In the front-end you love the declarative way of writing rich and interactive web apps that AngularJS gives you. In this presentation we bring these two together, demonstrating how little effort is needed to obtain a responsive user experience with fully consistent and persistent data storage on the server side.
See also http://summercamp.trivento.nl/
Report
Share
Report
Share
1 of 15
Download to read offline
More Related Content
Akka and AngularJS – Reactive Applications in Practice
1. Akka and AngularJS
Reactive Applications in Practice
Dr. Roland Kuhn
Akka Tech Lead
@rolandkuhn
2. The Four Reactive Traits
Reactive
Applications
2
http://reactivemanifesto.org/
4. The Actor Model
• fully message-driven: an Actor can react by
• sending messages to other Actors
• creating Actors
• denominating behavior for the next message
• Actors are effectively single-threaded
• failures are contained and escalated within the
supervisor hierarchy
• scaling up & out through location transparency
4
5. Persistence Model: Event Sourcing
• based on storing change instead of updating state
• persistent Actors generate events:
• historic facts that do not change thereafter
• storage is append-only log
• current Actor state is updated by consuming events
• Actor can revisit the past by replaying events
• events contain more business information than
current state snapshot
5
7. Command Query Responsibility Segregation
• persistent Actors on write-side generate events
• read-side independently consumes event streams
• read model is fully decoupled from write model
• queries are served from optimal storage:
• SQL store
• graph database
• in-memory live view
• new read model can be generated on demand
7
9. Web-Server made Simple
• HTTP requests and responses are Actor messages
• powerful routing DSL turns Actor into Web-Server
• not a web framework:
• just expose Actors as web endpoints
• nicely suited for RESTful APIs
9