Lightbend CoE

Cloudstate (Part 1): What is it?

Reading Time: 2 minutes Serverless Computing, I hope you have heard or read this term in many tech talks and articles. And that’s because it is trending these days. But what is it? That is the first question that pops up in our mind as soon as we hear or read the term Serverless Computing. In this blog post, we will not only learn about serverless computing, but also Continue Reading

Understanding Testing of Akka Actors

Reading Time: 2 minutes We may sometimes say the testing situation in Akka is a little confusing. In this blog you’ll learn about how the actors are tested in Akka. In Akka generally we have two kinds of tests, synchronous and asynchronous which some people term as ‘unit‘ and ‘integration‘ tests. ‘Unit tests‘ are synchronous, you directly test the receive method without requiring an actor system, etc. ‘Integration tests‘ Continue Reading

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

What is Ask Pattern in Akka?

Reading Time: 3 minutes After going through the previous blogs, we are now familiar with Akka, Actors, and their implementation (implementing-actors-in-akka). In this blog, we are going to discuss the Ask Pattern in Akka. So, let’s begin. Communication Among Actors In Akka, actors communicate with each other by sending and receiving messages. The messages can be sent in many patterns like- Fire and Forget –The tell() method works on 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

Implementing Actors in Akka

Reading Time: 2 minutes After going through the previous blog (Introduction to Akka), we are now familiar with the term Akka. In this blog, I am going to talk about Actors and their implementation. So, let’s begin. What Are Actors? Actors were invented in 1973 by Carl Hewitt. Akka is an implementation of the Actor Model. The Actor is the fundamental unit of computation embodying processing, storage, and communication. Continue Reading

Introduction To Akka

Reading Time: 2 minutes In this blog I’m going to talk about Akka – What is Akka, some design principles behind it, and why was it developed. So let’s begin. What is Akka? Akka is a toolkit and runtime for building highly concurrent, distributed, and fault-tolerant message-driven applications on the JVM (Java Virtual Machine). So, understanding each keyword- Toolkit – By toolkit, it means that it’s not heavy-weight. The Continue Reading

Implementing Akka Cluster Sharding

Reading Time: 3 minutes Now that we have a basic understanding of Akka Cluster Sharding in my previous blog. Let’s have a look at how we are going to implement this and what are the things that we need to keep in our mind while doing that.  To shard a specific type of actor we use the cluster sharding akka extension, and we call it as start, we can Continue Reading