Author: Shubham

Akka || What is It?

Reading Time: 2 minutes Akka is a toolkit and runtime for building highly concurrent, distributed, and fault-tolerant applications on the JVM. Akka is written in Scala, with language bindings provided for both Scala and Java. The Akka toolkit includes different modules to implement these features. Let’s explore the module Akka Actor to understand how It achieves concurrency. How to Set Up Akka Actor in Scala libraryDependencies += “com.typesafe.akka” % “akka-actor-typed_2.12” % Continue Reading

Scala | Multithreading

Reading Time: 2 minutes What is Multithreading Multithreading means we can execute multiple threads at once. We can also perform multiple operations independently and achieve multitasking. This helps us to develop concurrent applications. In Scala, a thread is a lightweight sub-process that occupies less memory. Let’s see how Scala creates threads and achieves multithreading. What Scala Thread Life Cycle Looks Like In between the period of creation and Termination of Continue Reading

Scala | Functions

Reading Time: 5 minutes A function is a collection of expressions that perform a certain task. We can divide a code in scala into separate functions, where each function must perform a specific task. We use functions to put some common and repetitive tasks into a single function, so instead of writing the same code again and again for different inputs, we can simply call the function. A function Continue Reading