Akka

The deadly combination of Akka with Scala

Reading Time: 3 minutes Hi, today in this blog we are going to work with Akka using the Scala Programming Language. In today’s blog, we are going to learn the basics of the Akka using Scala. What are we going to learn today? Learn the Basics of Akka Create Akka System and Akka Actors Make use of Akka actors Create an application using Akka and Scala About Akka What Continue Reading

Concurrency and Parallelism In Akka

Reading Time: 3 minutes After going through the previous blogs, we are now familiar with the basics of Akka. Moving forward let us have a look at concurrency and parallelism in Akka actors. Concurrency and parallelism are related concepts, but there are small differences. Message Processing in Akka Actors First, let us have a look at message processing in Akka actors. Akka follows single-threaded illusion. That means each actor Continue Reading

Comparing Data Streaming Frameworks | Scala

Reading Time: 4 minutes In this Era of Technology, where the amount of data is growing exponentially and every bit of data holds value. Even, according to some reports, the number of bytes being generated and stored till now in the world has already exceeded the star counts in the sky. As every bit is useful so, it is very important to store them without losing any bit. When Continue Reading

Akka Streams | Three Basic Components

Reading Time: 3 minutes Akka, a free open source toolkit simplifying the construction of concurrent and distributed system/application. We have already deal with Akka Actors where we learnt about the Akka Actors and their Behaviors. But Actors can be seen dealing with with Sequence of Data where they send or receive series of messages. So, In this blog we discuss Akka Stream in bit detail. What is Akka Streams Continue Reading

Synchronous Testing In Akka ToolKit | Testing Classic Akka Actors

Reading Time: 3 minutes Akka, a free open source toolkit simplifying the construction of concurrent and distributed systems/applications. In this blog, we are gonna discuss Testing the Akka Actors Synchronously. Usually, we people say that testing the Akka Actors is a bit confusing and tricky too, but it isn’t. Coming to the types of testing in Akka Toolkit, we have two types of testing i.e. Synchronous Testing and Asynchronous Continue Reading

Understanding Akka Streams and Its Components

Reading Time: 4 minutes Overview In this blog, we’ll be understand about akka streams and its components. Also, we’ll do a simple exercise that involves each of these components. Introduction Stream A stream is a flow of data that involves moving and transforming data. An element is the processing unit of the stream. Akka Streams In software development, there can be cases where we need to handle the potentially Continue Reading

How to do Unit testing using embedded PostgreSQL in Akka

Reading Time: 2 minutes Embedded PostgreSQL provides a platform neutral way for running PostgreSQL binary in unit tests. It is an efficient database to write test cases as it supports all data types of PostgreSQL. In this blog I will not dive deep in the features of Embedded PostgreSQL but rather focus on it’s integration with an Akka application. I have added a sample project for the better understanding. Continue Reading

Introduction to Akka Streams

Reading Time: 4 minutes Hey folks, let us understand the basics of akka streams. I hope you have a basic understanding of Akka Actor. What is Akka Streams Akka Streams is a library to process and transfer a sequence of elements. It is built on top of Akka Actors to make the ingestion and processing of streams easy. As it is build on top of Akka Actors, it provide Continue Reading

Mailboxes in Akka

Reading Time: 5 minutes Mailboxes are one of the fundamental parts of the actor model. Through the mailbox mechanism, actors can decouple the reception of a message from its elaboration. So, let’s see how Akka Typed, the most famous incarnation of the actor system, implements the concept of mailboxes. Logging Users’ Navigations First, an actor is an object that carries out its actions in response to communications it receives. Hence, in Akka Typed, Continue Reading

Scheduler in Akka

Reading Time: 2 minutes The Akka Actor System provides Akka Scheduler for managing the periodic execution of tasks. In this blog, we’ll see how we can schedule tasks using Akka Scheduler. Dependency Let’s add the Akka-actor dependency to our project: Single Execution Scheduler A single execution scheduler lets us defer the execution of a task. The task will execute after the configured delay. Let’s see how we can create a single Continue Reading

How to do Configuration in Akka

Reading Time: 3 minutes This blog is for the Scala programmer with a little bit of Akka background, but who is utterly baffled by the seemingly magical Akka Essentials. This blog is all about the configuration in Akka like how we can create a configuration in different ways. Configuration Configuration is all about the piece of text which is in the form of key value pair. You can start Continue Reading

Backpressure in Akka Stream

Reading Time: 4 minutes “Reactive Streams” — whenever we come across these words, there are two things that come to our mind. The first is asynchronous stream processing, and the second is non-blocking backpressure. In this blog, we are going to learn about the latter part. Understanding Backpressure Very simply put, the idea behind backpressure is the ability to say “hey slow down!”. Let’s start with an example that Continue Reading

Akka Actors: How do they actually work

Reading Time: 2 minutes You might have used akka actors for building concurrent and distributed systems. But do you know how actors actually works under the hood? So let us understand in this blog how akka actors actually work. First of all, let us understand what are akka actors. Introduction Akka is an open-source library that helps to easily develop concurrent and distributed applications using Java or Scala by leveraging the Continue Reading