One of the biggest drawbacks of Akka Actors - the lack of type safety is finally addressed. Since 2.6.0 release Akka Typed is stable and recommended as the default choice when working with Akka stack. Let's play with the new actors API, walk through the basics of behaviours, learn about actor lifecycle, supervision, scheduling and other fundamental concepts. Then you'll compare it to the classical approach. Of course not everybody is lucky enough to work on a greenfield project, so we can also show you how to introduce Akka Typed to existing sources and combine two worlds of actors in one application. During this workshop you will explore important patterns and takeaways we've learned while introducing typed actors to our system.
- Actor Model: basic theory
- disadvantages of untyped actors
- spawning actors
- sender() vs replyTo
- actor behaviours
- typed actor lifecycle
- designing actor API
- error handling and supervision
- creating and managing child actors
- spawning protocol receptionist pattern
- typed and untyped actors coexistence (optional)
- stash (optional)
- dispatchers (optional)
Basic knowledge of Scala language. No previous knowledge of Akka stack is required, although users experienced with Classical Akka will also benefit from this workshop.
max 15 people