Author: Shradha Saxena

Scheduling Messages in Akka

Reading Time: 2 minutes Take a situation where you want to make an actor sleep and it should resume after a period of time. Or you want your actor to perform a task on a recurring basis then you must schedule a message. Here I will discuss how to do that !! Scheduled delivery of messages Often, a need exists to schedule the sending of a message to an Continue Reading

Understanding Akka Actor Lifecycle

Reading Time: 3 minutes So, here is a glimpse of how an Akka Actor Lifecycle works. The actor lifecycle begins as soon as the actor is created. The stages of an Akka Actor Lifecycle are as follows – preStart() Start Stop postStop() terminated Starting Actors Creating an actor automatically starts it. A started actor is fully operable. We can start an Actor with a preStart() hook. And for more Continue Reading