Lightbend

Cloudstate (Part 5): How to work with it?

Reading Time: 2 minutes In our previous blog post, Cloudstate (Part 4): A Bird’s Eye view of its Design, we had a look at bird’s eye view of Cloudstate‘s design. To continue the streak, we are going to learn, how to work with Cloudstate in this blog. Choose Your Language Wisely To work with Cloudstate the first step we need to take is, decide the programming language of our Continue Reading

Cloudstate with Java (Part 1): Getting Started with Java

Reading Time: 2 minutes In today’s world, serverless computing has evolved a lot. And with this concept of serverless computing, Lightbend has come up with an amazing framework known as Cloudstate.  Cloudstate is a specification, protocol, and reference implementation for providing distributed state management patterns suitable for Serverless computing. – cloudstate.io To know more about Cloudstate please go through the blog series: Cloudstate – What is it ? Cloudstate Continue Reading

Cloudstate (Part 4): A Bird’s Eye view of its Design

Reading Time: 2 minutes In our previous blog posts, we came to know about, What is Cloudstate? Why we need it? and Why we need to give a second thought to the way CRUD operations are done in Serverless Computing? In this blog post, we will have a look at bird’s eye view of Cloudstate‘s design. Let’s take a look at its design. Bird’s Eye View of Design Cloudstate Continue Reading

Rebalancing in Akka Cluster Sharding

Reading Time: 4 minutes In this blog we will be discussing about one of the important feature of Akka Cluster Sharding which is Rebalancing. Before moving forward make sure you have some basic knowledge on Akka Cluster Sharding, if not then please read Introduction to Akka Cluster Sharding and Implementing Akka Cluster Sharding. Before directly diving into this amazing feature which akka sharding provides, lets first understand the need Continue Reading

Cloudstate (Part 3): Giving a Second-Thought to CRUD

Reading Time: 4 minutes In this blog post, we will take a slight detour from Cloudstate and understand why we need to give a second thought to the way CRUD operations are done in Serverless Computing. Before diving deep into the need of reconsidering CRUD operations strategy in Serverless Computing, let’s first understand CRUD. What is CRUD? CRUD is an acronym for the four general operations that a database Continue Reading

Supervising Actors in Akka

Reading Time: 3 minutes After going through the previous blogs, we are now familiar with Akka Actors, their implementation and the Ask pattern. In this blog, we are going to discuss about supervision and various supervision strategies. So, let’s begin. What is Supervision? In case of failure, rather than forcing it back on the caller(customer), we prefer to handle it internally. Within Akka, it is done using a technique Continue Reading

Cloudstate (Part 2): Why we need it?

Reading Time: 2 minutes In our previous blog post, Cloudstate (Part 1): What is it?, we came to know about the Serverless Computing, it’s advantages, and a brief introduction of Cloudstate. In this blog post we will deep dive further into Cloudstate by understanding, why we need it? For which we need to know the limitations of the Serverless Computing. Why? Because Cloudstate overcomes them and that’s why it Continue Reading

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