polarvorti.blogg.se

Scala interview questions
Scala interview questions










scala interview questions

What is the difference between Akka Kill vs Stop vs Poison Pill?īoth stop and PoisonPill will terminate the actor and stop the message queue. PreRestart(reason: Throwable, message: Option) The lifecycle of Akka actor is as follows. It is an abstract class which extends to ActorRefFactory trait.ĪctorSystem provides an actorOf() method which is used to create actor instance. It is also the entry point for creating or looking up actors. dispatchers, deployments, remote capabilities and addresses. An ActorSystem is a hierarchical group of actors which share common configuration, e.g. The ActorSystem is a root actor in actors structure. In other words, we can say that an actor is an object that encapsulates state and behavior.

scala interview questions

Actor has it's own state and behavior.Īs in object-oriented programming everything is an object same like everything is an actor in actor-based system. An actor is an entity which communicates to other actor by message passing.












Scala interview questions