Welcome back, For those who have not gone through the previous blog of this series, I would recommend to go through the Part 1 (5 min read) for a better understanding!

What is Immutability and Mutability?

Image Credit: https://www.tes.com/lessons/oyJgbl4VmcFTag/function-notation

Functional programming(FP) is a way of writing software applications using only pure functions and immutable values. Or Let’s say FP is a mathematical oriented way to write code. So, what do I mean by Pure Functions?

f(x) => x+1 ; This is a pure function as it will result in same output for the same input provided as many times as evaluated!

A pure function doesn’t change the state or change “the outside world” — the world outside of the function’s scope.

It cannot depend on any hidden state or global variables. The evaluation of the function should not cause…

Image Source


Hello readers, hope everyone is in good health. I’m writing this blog as I see the rise in machine learning articles explaining how to implement a model in 10 lines but very few blogs talking about the mathematics behind it. I decided to start my blogging again and write a few on the mathematical approach behind Machine learning in way that you understand how the things work rather than just importing sckit-learn and joining the rat race. My first blog covers the most popular and simplest regression algorithm i.e. Linear Regression.


Anyone interested in getting into Machine Learning/DataScience

Regression or a classification problem?

A lot…

What is Hadoop and Hive

‘Apache Hadoop’ software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures.

Whereas ‘Apache Hive’ is a data warehouse software which facilitates reading, writing, and managing…

Welcome to the second part of the series! If you haven’t visited the part 1, I would advise you to visit that and then come back.

So, till now we have discussed the difficulties in scaling in the monolithic world, let’s start with a very aggressive advantage of microservice architecture.

If you have for example 5 microservices within an application, you are free to choose what coding language to use according to your need. That may or may not be the same! Yes Right, one in Java, other in Scala, Python or maybe even PHP(eww old). Till the microservices are…


When services are loosely coupled, a change to one service should not require a change to another.

Sam Newman

I would be posting two parts of this series. This blog is for the entry level to intermediate software developers to know the best practices and guidelines for building your microservices. In a microservice world, still most of the people do mistake of writing tightly coupled services which is no good than a monolithic system!

Before taking a deep dive into the Microservice Architecture one should know about the Monolithic architecture, its shortcoming and why all the tech giants were…

Harshpreet Singh

SWE@LinkedIn, Tech Blogger (Scala | Java | Big Data | Spark | Azure | CI/CD | CloudFoundry) | Ex-Walmart| Ex-SAP | NSIT

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store