Technology: Scala

black smartphone on table

Spring WebFlux — Error Handling

Reading Time: 3 minutes Introduction In this Blog, we’ll take a look at the Spring WebFlux Error Handling using @ControllerAdvice. While calling the services/micro-services anything could go wrong and result in 500 “Internal Server Errors” as shown below error: Usually, error messages like this will not be handled properly and would be propagated to all the downstream services which might impact the user experience. In some cases, applications might want to use Continue Reading

software engineer standing beside server racks

How To Use Zio DynamoDB wrapper

Reading Time: 2 minutes What is Zio ZIO is a library for Scala programming language that provides a pure, composable, and type-safe approach to error handling and asynchronous programming. ZIO provides a lot of tools for developers to write applications in a clean, concise, and functional manner. Zlayer is a module in ZIO that provides abstractions for building and composing modular applications. In this blog, we will be exploring Continue Reading

ZIO Streaming Applications, Transformation, and Error Handling

Reading Time: 4 minutes Introduction to Streaming Why do we really need streaming? We can understand the same with the following example. Suppose we have a list of integers and we want to get all the prime numbers and do some further computation on that. In the typical application, we will use ZIO.foreachParN But when we are using the above method we will have two problems:- One Is High Continue Reading

three woman in front of laptop computer

Knoldus Accelerators: One Stop for Learning and Faster Development

Reading Time: 2 minutes I am glad and happy to announce our new version and a new portal for Accelerators is up and live. Knoldus Accelerators –  https://accelerator.prod.go1percent.com/ We have divided our accelerator into 3 parts – Learning Accelerators These are your one-step solution providing curated templates in more than 22 technologies and languages. It’s a repository of templates to accelerate all your development requirements. Kickstart your development with Continue Reading

How To Perform Operations on ZIO Fibers

Reading Time: 3 minutes In this blog post, we will discuss ZIO fibers and how we can use them. We will also get a quick overview of operations on ZIO fibers. Concurrency in ZIO ZIO is a highly concurrent framework powered by fibers, which are lightweight virtual threads that enable huge scalability when compared to threads, reinforced with resource-safe cancellation, which supports several features in ZIO. This robust concurrency Continue Reading

Hacker hands using laptop computer to code

Pattern Matching and Its Types in Scala

Reading Time: 4 minutes In this blog, we will read about pattern matching in Scala followed by various types of patterns in match expressions. What is Pattern Matching? Pattern matching in Scala is a powerful mechanism of checking a value against a pattern. Thus, we match a value against a pattern and a successful match deconstructs the value into its constituent parts to be used further. While providing the Continue Reading

Analyzing data.

What is a Closure in Scala ? Why it is required ? How to use it ?

Reading Time: 2 minutes Objects are more flexible for certain use cases because they carry both data members and member functions, whereas a function does not have data members. So if there is a requirement to pass data members along with functions, How will we achieve it in functional programming ? The answer is yes, we can achieve it using a closure and a free variable. What is a Continue Reading

Digital business and technology

Akka Cluster Sharding: Introduction

Reading Time: 3 minutes In this blog, we will learn the basics of Akka Cluster Sharding which will include what Sharding and Cluster Sharding is and their basic components. So, let’s get started. What is Sharding? The term Sharding means Partitioning. Sharding basically helps the system to keep data in different resources like memory after dividing it into different parts. Here in this section, I will explain Sharding in Continue Reading

Metaverse digital Avatar, Metaverse Presence, digital technology, cyber world, virtual reality

Introduction to ZIO Fibers and Fiber Data Type

Reading Time: 3 minutes In this blog post, we will discuss fibers in ZIO, and how are they different from threads. Introduction ZIO is a highly concurrent framework powered by fibers that are lightweight virtual threads. They enable tremendous scalability compared to threads and are reinforced with resource-safe cancellation, which supports several features in ZIO. What are Fibers? Fibers are lightweight equivalents of OS threads which represent an ongoing Continue Reading

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

IntelliJ hacks using Scala

Reading Time: 3 minutes Introduction An IDE or integrated development environment is a software application that combines, in one place, all the tools needed for a software development project. On a more basic level, IDEs provide interfaces for users to write code, organize text groups, and automate programming redundancies. Here we will talk about IntelliJ IDEA, one of the popular IDE in the market which has advantages over others Continue Reading

Getting Started with Kalix

Reading Time: 2 minutes Kalix is a PaaS (Platform-as-a-Service) which makes it easy for developers to build high-performance and data-centric applications at a low cost. Now, the question arises, why should we use it. How is it different from others? Now, let us understand the key benefits of using Kalix. Key Features It is less in many ways. As we all know less is more. This is the approach. It is – Continue Reading

Overview of gRPC Descriptor and its Implementation in KALIX

Reading Time: 4 minutes Before diving into gRPC descriptors and it’s implementation in kalix let’s get a brief understanding of gRPC so, What is gRPC? gRPC is an open-source Remote Procedure Call (RPC) framework developed by Google. It’s modern, fast, efficient, and built on top of HTTP/2, low latency supports streaming, is language-independent, and makes it super easy to plug in authentication, load balancing, logging, and monitoring. Now the Continue Reading