Akka has become a very successful platform for building reactive systems. At its core, the Akka-actor module implements the actor model. Surprisingly enough, although Scala and Java are type-safe languages, Akka actors are untyped. This means that we can only handle specific ones - the compiler is not ready to help us.
This pdf will walk through how to add the type parameter to the ActorRef and reduces the runtime error.
Presented By : Prabhat Kashyap
What is Akka
Untyped API Demo
What new in Typed API
My name is Prabhat Kashyap and I am a backend Scala
developer, currently living in New Delhi, India. I have a
master’s degree in computer application and currently
working with Knoldus Inc., which is world’s largest
pure-play Scala Spark services company as a Senior
Software Consultant. I started my career in software
development two and a half years ago and since then
working on Scala.
I am part of the development team responsible for developing
the application of different domain using functional approach.
I also possess the knowledge of Akka, Apache Kafka,
Carbondata and Blockchains. If you want to know more about
me or have a chat, you can connect with me on LinkedIn
❑ A open source project started by Jonas Bonér in 2009.
❑ Akka’s use of the actor model provides a level of abstraction that makes it easier to write correct concurrent, parallel
and distributed systems.
❑ Consequently, organizations building distributed systems with demanding requirements encounter challenges that
cannot fully be solved with a traditional object-oriented programming (OOP) model, but that can benefit from the
What is Akka
❑ The actor model was proposed decades ago by Carl Hewitt as a way to handle parallel processing in
a high performance network.
❑ Send a finite number of messages to other actors.
❑ Create a finite number of new actors.
❑ Designate the behavior to be used for the next message it receives.
What is Actor?
❑ An actor system manages the resources it is configured to use in order to run the actors which it
❑ The actor system as a collaborating ensemble of actors is the natural unit for managing shared
facilities like scheduling services, configuration, logging, etc.
What is Actor System?
Let’s create an sample untyped actor
❑ There is no sender() function anymore
What’s new in Akka Typed
Let’s create an sample typed actor
❑ Supervision and Monitoring
What else is there?
Thanks for Inspiring