Author: Sanjana Aggarwal

Back2Basics: Introduction to Elasticsearch

Reading Time: 2 minutes In this blog, I am going to discuss about Elasticsearch. What are the benefits of using it as a database and How to use it. Elasticsearch Elasticsearch is a highly scalable open-source full-text search and analytics engine. It allows you to store, search, and analyse big volumes of data quickly and in near real time.  Elasticsearch provides near real-time search and analytics for all types Continue Reading

Scala Cats: EitherT

Reading Time: 2 minutes In this blog, I will discuss about EitherT which is another concept of Scala Cats library. Before discussing about EitherT, lets discuss Either first then EitherT which helps us in resolving the issue or boilerplate we have due to Either. Either Either can be used for error handling in most situations. However, when Either is placed into effectful types such as Option or Future, a large amount of boilerplate is Continue Reading

Back2Basics: Partial functions and Partially applied functions in Scala

Reading Time: 2 minutes Hi Folks, in this blog I will discuss about the difference between Partial Functions and Partially Applied Functions in Scala, importance of these functions and how we can use them in our code. Before discussing about Partial Function and Partially Applied Functions, we should know about Functions. What is Function? A Function is a transformation for an input into an output which means whenever an Continue Reading

Traits – The beauty of Scala

Reading Time: 4 minutes In this blog we will discuss about a Trait and how Traits can help you to beautify your code by Multiple Inheritance. Traits Traits are a fundamental unit of code reuse in Scala. Trait encapsulates method and field definitions, which can be reused by mixing into classes. Two most important concept about Traits are :- Widening from thin interface to rich interface Defining stackable modifications. Continue Reading

Powerful Concept of Lagom – CQRS

Reading Time: 3 minutes In this blog we will talk about, What is CQRS and Why the requirement of using CQRS occurs. CQRS stands for Command, Query, Responsibility Segregation. As we know Segregation means1. Separating a Microservice for each logic business operation from a Monolith. 2. In same way, Segregate the read side from the write side. This helps in increasing the performance, scalability, and security. Tradition Approach A Continue Reading

What is the CAP Theorem?

Reading Time: 3 minutes I will discuss about CAP theorem which is the key mechanism to know how distributed database system works. CAP theorem helps understanding the design of a database keeping in mind what do we need out of Consistency, Availability or Partition tolerance for a database. Distributed Database System:- Distributed Database system is a collection of a logically interrelated database distributed over the computer network. As we Continue Reading

String Interpolation in Scala

Reading Time: 2 minutes Lets just refresh few of the Scala concepts in more detail, So in this blog we are going to discuss about string interpolation which is a amazing concept. As we know logging, printing and debugging is an important part of programming by String Interpolation we can use the String literals in an easy way. String Interpolation String interpolation is a concept in which we can Continue Reading

Functional Java: Powerful Feature of Java8 – Lambda Expression

Reading Time: 2 minutes As we know that java8 has come up with a lot of new features Lambda Expression is one of them. It will help us in many ways like reduce the boilerplate code and make our code look clean and concise. Lambda Expression A Lambda expression is an anonymous function and is expressed as an instance of functional interfaces. Why we need Lambda Expression and how Continue Reading