Actor

Akka Actors: Introduction and its Functionality

Reading Time: 3 minutes Here in this blog i am going to explain what is an Akka Actor and how we actually work with Akka Actors. What is Akka Akka is a toolkit for building highly concurrent, distributed and resilient message- driven application for Scala and java. Akka support several programming models for concurrency. it is very useful for writing server – side scalable applications. Using Akka it is Continue Reading

Akka Stopping Actors

Reading Time: 2 minutes In Akka, you can stop Actors by invoking the stop() method of either ActorContext or ActorSystem class. ActorContext is used to stop child actor and ActorSystem is used to stop top level Actor. The actual termination of the actor is performed asynchronously. There are some other methods available in Akka, which are used to stop Actor. Some of which are PoisonPill, terminate() and gracefulStop() are Continue Reading

Beginners Level: Akka Typed API

Reading Time: 3 minutes In this blog, I will be explaining Akka Typed API. This is going to be my first blog on Akka Typed, so let us name it “Beginner Level: Akka Typed API“. Here, I will be telling you the reason for preferring Akka typed over untyped. Along with that, I will also be demonstrating some implementations with Akka Typed. Now before heading towards Akka Typed API, Continue Reading

Protobuf Serialization in Akka

Reading Time: 4 minutes Before Protobuf, lets have a look at what role does serialization play in Akka. The messages that Akka actors send to each other are JVM objects (e.g. instances of Scala case classes). Message passing between actors that live on the same JVM is straightforward. It is simply done via reference passing. However, messages that have to escape the JVM to reach an actor running on Continue Reading

Getting Started with Actors [Akka in a Nutshell #2]

Reading Time: 4 minutes Hierarchical Structure Actors are objects which encapsulate state and behavior, they communicate by exchanging messages. We can consider an actor as a person. Like a software development team, actors form hierarchies. In a team there is a project manager who takes requirements from client and distributes it over to different team leads. Then those team leads further distribute the tasks to other team members.Team members Continue Reading

Introduction to Actor Model [Akka in a Nutshell #1]

Reading Time: 3 minutes According to Akka documentation, ” An actor is a container for State, Behavior, a Mailbox, Child Actors and a Supervisor Strategy. “ Let us begin by understanding the need of an Actor Model, A lot of things have changed in the present scenario. The processes are getting more coarse, This means in order to execute our programs faster we need to use multiple cores which Continue Reading