In tis article we are going to learn complete Microservices architecture using spring boot.

So, First I will create two microservices in spring boot.

1. Store service 2. Catalog Service.

After creating these two microservices. We will register these microservices into Service Registry.
After that we will create API gateway. So…

In this article , we will learn how to sort a Map in java.

Ok. Lets Get Started.

Before Java8 how we can sort the Map (If Map key is primitive data type):
— — — — — — — — — — — — — — — — —…

In this article, we will learn how to sort a list in Java.

Ok. Lets Get Started.

Before Java8 how we sort the list :
— — — — — — — — — — — — — — —

List<Integer> numbers = new ArrayList<>();


How to use map(), filter() and reduce() methods on java8 stream.

map(), reduce() and filter() are intermediate operations to transforming and filtering the elements. With these three methods we can do a lot, so its worth knowing them intimately.

These three methods we can apply only on stream. In our…

Sequential Stream vs Parallel Stream in java

In this article we will learn java 8 stream with example.

What is Stream in java?
A Stream is not a data structure instead it takes input from the collection , Arrays.
A Stream in java is a sequence of objects which operates on…

Optional was introduced in jdk8. It is a public final class and used to avoid NullPointerException in Java application.

It is a public final class which is used to avoid NullPointerException in java application. It was introduced in Java8. As we know java is an object oriented programming language …

As we know set will never contain duplicate elements.
But how in java Set interface implemented class HashSet achieve this uniqueness. In this post, we will discuss about this.

HashSet uses HashMap internally to store it’s objects. Every constructor of HashSet class internally creates one HashMap object.

* Constructs…

How Spring Boot Transaction Management Works with the @Transactional annotation and Propagation types.

The process of combining related operations into single unit and executing them by applying do everything or nothing principle is called Transaction Management.

We execute sensitive logics like ticket booking, transfer money and etc. …

In this story we will learn how to use Profiles in Spring Boot Application.

Every enterprise application has many environments, like:

Dev | Test | Stage | Prod | UAT / Pre-Prod

Each environment requires a configurations that is specific to them. These environments host specific configurations called Profiles.


Gain Java Knowledge

The Java programming language is one of the most popular languages today. Stay up to date with news, certifications, free learning resources and much more.

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