Loading…
Scalæ By the Bay has ended
Back To Schedule
Saturday, November 12 • 1:40pm - 2:00pm
Functional API for defining type safe, reliable Akka actors

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Akka Typed is a fairly new module of Akka, providing a statically type safe way to define actors, and interact with them. However, still being an experimental module, its integration with various other components of Akka is not yet complete. For example, it provides no support for defining event sourced (persistent) actors. This talk will present a functional API we built on top of Akka Typed. This API makes it easy to define type safe event sourced actors, and it is also integrated with Akka cluster sharding. The talk will describe how various functional programming techniques allow us to provide a convenient and flexible API offering static type safety. For example, free monads allow us to define a DSL for event sourcing (using an "actor algebra"), and type classes make the system extensible by end users. A sketch of the implementation will also be presented, demonstrating some practical aspects of these techniques. We will also discuss the advantages of our typed, monadic persistence API over the untyped one provided by Akka Persistence, and even look at some possibilities for further improvements.

Saturday November 12, 2016 1:40pm - 2:00pm PST
Caching