Default And Named Arguments (Scala)

Reading Time: 2 minutes Overview In this blog, we are going to discuss the support of default and named arguments in SCALA. The method that takes multiple parameters of the same types is subject to mistakes that are invisible during compile time exchanging two arguments of the same type does not result in an error, but it can produce an unexpected outcome. Adding named parameters can simply solve this Continue Reading

What is Akka | Akka Actors | Parallelism & Multithreading

Reading Time: 2 minutes What is Akka? Akka is a platform for designing scalable, resilient systems that span processor cores and networks. It allows you to focus on meeting business needs instead of writing low-level code to provide reliable behavior, fault tolerance, and high performance. Features provided by Akka Multi-threaded behavior – without the use of low-level concurrency constructs like atomics or locks. Thus, relieving you from even thinking Continue Reading

Introduction to Akka Actors and Child Actors

Reading Time: 3 minutes Introduction In this blog, I will be explaining the basics of Akka, actors, and the way they are created. Therefore, I am naming this blog “Introduction to Akka Actors and Child Actors”. So let’s start with Akka first. What is Akka? Akka is not a framework but a toolkit and we use Akka for building distributed, highly concurrent, and fault-tolerant applications on the JVM, therefore Continue Reading

Server APIs using Akka HTTP

Reading Time: 3 minutes In this blog, we will be learning to integrate HTTP in our application using Akka HTTP. Basically, we will get to know what Akka HTTP is, what are Low Level and High level server APIs, and how to set HTTPS, etc. So, lets get started. What is Akka HTTP? First of all, the Akka HTTP is not a framework, but it is a suite of Continue Reading

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

Different log levels to explore

Reading Time: 2 minutes Introduction to Log Levels There are different ways to log messages. In order of fatality log levels have been defined as:Trace – Only when I would be “tracing” the code and trying to find one part of a function specifically. Warn – Anything that can potentially cause application oddities, but for which I am automatically recovering. (Such as switching from a primary to backup server, retrying an operation, missing Continue Reading

Build Rest Api Using Akka HTTP

Reading Time: 2 minutes In this blog, I will discuss how we can create rest API using akka HTTP. So lets begin with the introduction of the akka HTTP. What is Akka HTTP ? As we know that Akka is a popular actor-based toolkit for building concurrent and distributed applications in the JVM. And these applications mostly use Scala or Java.It has several modules that help to build such Continue Reading

How to Schedule Messages or Tasks in Akka?

Reading Time: 2 minutes In this blog, we’ll see how to schedule sending of messages to actors or execution of tasks(functions or Runnable) at a specific point of time in future or maybe repeatedly over a certain interval. For this purpose, the Akka ActorSystem provides Akka Scheduler to manage the periodic execution of tasks. Akka Scheduler In simple words, the Akka Scheduler helps us to schedule sending of messages Continue Reading

Know about Akka actor and how to create actor child

Reading Time: 3 minutes Hello everyone, so before starting this part of the blog I want to ask a question. How do we create subordinate Actors? (Akka actor and actor child)We have already worked on the Actor System and we have also successfully created some of the actors. If you want to learn the basics of creating Akka actors using ActorSystem you can visit this blog here. Through this 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

Abstraction in Java

Reading Time: 2 minutes What is Abstraction? Abstraction is one of the most important feature of OOPs (Object Oriented Programming). There are four essential features in OOPs i.e., encapsulation, inheritance, abstraction and polymorphism. Here we will discuss about one of the four features i.e., Abstraction. It is the process of showing necessary details to the user and hiding all the details of implementation. In other words, we can say Continue Reading

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