Scala

Scala Trait: The Magnificent feature that enables Multiple Inheritance

Reading Time: 5 minutes In this blog, we will discuss Scala Trait and how it helps us to implement multiple inheritance in Scala and to increase code reusability. What is Trait? According to the dictionary, a Trait is a distinguishing property or feature, typically one belonging to a person or genetically determined characteristics. In Scala, Trait encapsulates methods and field definitions that can be re-used by extending them into Continue Reading

Scala 3: Introduction to Match Types

Reading Time: 3 minutes This article is for Scala programmers who are curious about the next features in Scala 3. In this, we are discussing particularly Match Type. Pattern Matching is one of the most powerful construct tools in Scala. One can say it is a powerful form of switch statements of Java or C++. We will get to know what are the advancement done in Scala 3 from Continue Reading

RECURSION / TAIL RECURSION IN SCALA

Reading Time: 3 minutes Recursion Recursion is a function which calls itself over and over again until an exit condition is met. It breaks down a large problem into a smaller problem, solves the smaller parts, and combines them to produce a solution. Recursion could be applied to many common problems, which can be solved using loops, for and while. Why Recursion? 1. The code is simpler and shorter Continue Reading

Difference Between Abstract Class and Trait in Scala

Reading Time: 4 minutes In this blog we’ll go through the practical difference between the Abstract class and Trait in Scala. I. OVERVIEW Firstly, Let me give you a brief introduction on what Abstract class and Traits are in Scala. After that we’ll start with the differentiation. ABSTRACT CLASS Abstraction means hiding the internal details and showing only the functionality. And, In Scala abstraction is achieved by using abstract Continue Reading

What is Apache Kafka | How to run it on Windows

Reading Time: 2 minutes What is Apache Kafka? Apache Kafka® is open-source software that provides a forum for event streaming, or we may say in simple words that it is open-source software that provides a datum processes system for reading, storing, and streaming. It is designed to be run in a “distributed” environment, as a result, rather than sitting on one user’s computer, it runs across several (or many) Continue Reading

Know About Temporal Coupling – The Design Smell

Reading Time: 2 minutes Let’s first know what are code and design smells. Code smells are something that demonstrate bad coding practice, whose existence decreases the code quality, which shows the lack of design quality in the code. Code smells doesn’t affect your code from working properly, rather they are just absolute infringement of principals of developing a software. Whereas design smells are something that glows(sometime and sometimes not) Continue Reading

Data-driven framework with selenium, Scala, and SBT

Reading Time: 4 minutes Hello everyone, in our last blog we saw that how we can execute ours test in headless mode and now in this blog we will see how we can achieve Data-driven framework with selenium, Scala, and SBT. Need for data-driven framework A data-Driven framework helps us in separating the test script logic and the test data from one another. It allows us to write test Continue Reading

Stream your data using Kinesis data stream

Reading Time: 3 minutes We live in a world driven by data and every second we are processing a large amount of data, using it, analysing it, and transforming it. Data is very essential for businesses these days. Therefore the need for handling the Dynamically generating data is important. As the number, variety, and velocity of data sources grow, new architectures and technologies are needed. This is where the need Continue Reading

mongoDB with SpringBooot- A simple CRUD

Reading Time: 3 minutes MongoDB is an open-source non relational, document oriented database. MongoDB being document oriented means that it stores data in JSON like documents which makes it more powerful and expressive. MongoDB’s ability to scale up and down very easily is considered to be one of its advantages over its competitors. Data is stored in documents in Key pair values. Another component of MongoDB is collection,  which Continue Reading

Handling failed SQS Events using AWS Dead Letter Queue(DLQ)

Reading Time: 3 minutes Amazon SQS is an amazing simple queuing service which offers us a secure, durable hosted queue which lets us integrate and decouple distributed software component. One of the exciting features that SQS provides us with is the support of dead letter queue. Whenever we are using SQS for queuing messages for our services there may be times that our message gets corrupted or for some Continue Reading

Spring custom validations

Reading Time: 3 minutes While building applications and services it is very important that we maintain data integrity especially if they are data centric. It is crucial to have control over the data that the application interacts with to ensure it behaves as expected. This can be done using validations. Many times the data received may get corrupted before reaching the application or the user may provide wrong inputs. This Continue Reading

Indexes in MongoDB

Reading Time: 4 minutes In any database, indexes in MongoDB support the efficient execution of queries. Without them, the database must scan every document in a collection or table to select those that match the query statement. If an appropriate index exists for a query, the database can use the index to limit the number of documents it must inspect. Keypoints for Indexing As you create indexes, consider the Continue Reading