Technology: Scala – Platform-as-a-Service: Server less, Database less

Reading Time: 2 minutes Lightbend, comes with the new product that will meet the current developer problems and reduce the efforts while coding. comes with the advanced features that will compete the feature problems we face while developing Applications. Kalix combines the scalability and cost benefits of serverless infrastructure with the data management and responsiveness of stateful services. This adds up to one managed, cloud-based environment. By bringing Server, Continue Reading

Exceptions and Futures in Zio

Reading Time: 3 minutes ZIO is an open-source library that delivers a better “Future” for asynchronous and concurrent programming in Scala. Similarly, we can’t retry a Future in the event of failure, like we can for ZIO, because a Future isn’t a blueprint for doing something—it’s an executing computation. So if a Future fails, there is nothing else to do. We can only retrieve the failure. The central “type Continue Reading

What are Zio Effect Constructors?

Reading Time: 3 minutes In this blog post, we will discuss about ZIO effect constructors and how we can use them. Then we’ll take a look at Effect constructors for pure computations and side-effecting computations. Zio Effect Constructors A functional effect is a template for a concurrent workflow. The template which is mostly descriptive in nature, used to test for any side effects. Such as database interaction, logging, data Continue Reading

Monad – Introductory approach using Scala

Reading Time: 3 minutes Overview In this blog, I will try to keep everything beginner-friendly for monad in scala but still, you need some basic understanding of Scala that will help you get along. We will use terms like pure functions, side effects, etc very frequently in this blog so make sure you have a knack for it. Monad? Monad construction performs successive computations, it is an object that Continue Reading

Composing and Chaining Effects together in ZIO

Reading Time: 3 minutes Introduction to ZIO ZIO is a library for asynchronous and concurrent programming that is based on pure functional programming. It combined with Scala help us to develop applications that are purely functional, asynchronous, type-safe, resilient, and testable. At the core of ZIO is ZIO data type which is defined as: ZIO is lazy! The difference between ZIO and procedural programming is quite straightforward. In the Continue Reading


Understanding ZLayer: A powerful tool from ZIO

Reading Time: 3 minutes What is ZIO? ZIO is a Scala zero-dependency library for asynchronous and concurrent programming. It enables you to create applications that are scalable, resilient and responsive to your business’s demands. ZIO is built around the ZIO data type. These data types have three parameters and are referred to as ZIO[R, E, A]. R stands for environment type and the effect requires an R-type environment. When Continue Reading


How to handle Exceptions in Zio | Practical Implementation

Reading Time: 3 minutes In the previous blog ZIO Effects: How to Handle Errors? we have learned about How ZIO provides various means to handle and respond to failures. In addition to this blog, we will see all the ways to handle the exceptions with its Implementation. Either If the effect fails, the result is in the form of Left If the effect succeeds, the result is in the form Continue Reading

Currying in Scala for complete Beginners

Reading Time: 2 minutes What is Currying? Currying simply means converting a function taking more than one parameter can be into a series of functions with each taking one parameter. Example: As we can see, a function that takes 3 parameters is converted into a series of function calls taking one parameter each. The type of add is (Int, Int, Int) => Int [<function3>] The type of curriedAdd is Continue Reading

Know About Partial Functions in Scala under 3 Minutes

Reading Time: 3 minutes Functions and methods are essential components of programming. They help us to process input and provide us with output. In this blog, we will learn about partial functions through examples in Scala. Note: Do not confuse it with partially defined functions. What are partial functions? In English, “partial” means something which is not complete. Similarly, a partial function is a function applicable only for a Continue Reading

Partially Applied Functions in Scala

Reading Time: 2 minutes What is “partially applied” Partially applied functions are an expression in which we do not supply all the arguments needed by the function. Instead, we supply some of the needed arguments only. In Scala, whenever we invoke a function by passing all the needed arguments, we say that we have “applied” that function onto the arguments. Now what we mean by the term partially applied Continue Reading

Welcome to the world of Apache Spark

Reading Time: 5 minutes Welcome to another very important & interesting topic of big data Apache Spark. What is Apache Spark? Spark has been called a “general-purpose distributed data processing engine” for big data and machine learning. It lets you process big data sets faster by splitting the work up into chunks and assigning those chunks across computational resources. Why would you want to use Spark? Spark has some Continue Reading

What is a Type Class And How To Create Them In Scala

Reading Time: 2 minutes What are Type Classes A type class is an interface that defines some behavior. Simply put, it is a programming technique that we often use to add new behaviors to existing user-defined data types without altering the source code. Need for Type Class While working on projects we often feel the need to add new behaviors to our user-defined types. A naive way to do it is Continue Reading

Implicit Classes in Scala- Their Uses and How to create them?

Reading Time: 2 minutes What is an implicit class An implicit class in Scala is a normal scala class but with an implicit keyword before it. They allow the user to add methods to exiting classes and use them as if they belong to those classes. The feature is available since Scala 2.10. This is how we declare an implicit class in Scala: In short, they allow us to Continue Reading