Akka

background

SOLID Principle in Scala

Reading Time: 3 minutes Introduction SOLID is one of the most popular design principles in object-oriented software development. Adopting these practices can prevent code smells, refactoring code, and Agile or Adaptive software development. It was promoted by Robert C Martin and is used across the object-oriented design spectrum. It’s a mnemonic acronym for the following five design principles : I’m going to try to explain SOLID Principles in the Continue Reading

Entity Component Types in Kalix

Reading Time: 3 minutes First, Let’s get to know what Kalix is then we will see what an entity Is and what Its type is. Notes: All the codes in the blog are written in Scala. Kalix is a Platform-as-a-Service (PaaS) that combines an API-first, database-less programming model with a serverless runtime. Now what It means is that Kalix is a service that makes It easy for developers to Continue Reading

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