In this blog, I’m going to talk about what are the good practices that should we follow when we do the microservice-based implementation. When we know the best practices you can avoid the common mistake.

Let's see one by one…

1. Design should be Domain-Driven Design

Microservices is an architecture design model with a specific bounded context, configuration, and dependencies. These result from the architectural principles of domain-driven design and DevOps. Domain-driven design is the idea of solving problems of the organization through code.

The business goal is important to the business users, with a clear interface and functions. This way, the microservice can run independently…

Businesses today use a host of SaaS applications — Those applications generate terabytes of data. Oftentimes the data in multiple platforms can be related — such as an address on a credit card used for an eCommerce purchase, which is also useful as an address for a shipping platform — and that eCommerce transaction itself can be tracked by a company’s analytics platform.

Businesses have two broad choices when it comes to rolling out technology stacks: deploy a single platform that combines many functions or take a best-of-breed approach that uses microsystems to integrate discrete services from different vendors.

Monolithic architecture


Before start this if you don’t know about the Docker/Container please go through my previous blog which I mention Docker. Click this below link and redirect to my blog:

When you port your web application on a container, that container can handle more than one application. So if you have 10 application which runs in a single container. Just assume jboss server or weblogic server. Then if one application has some problem. So have to restart. Then all of the other 9 applications will go offline. So we are writing business critical high-level applications. So it is not fair to…

Photo by Thinkstock

In the early years, any application will deploy on the physical server. For example, we have an application server, web server, and database server like three different servers. For that those days, we use three physical hardware boxes. When it comes to this there are so many problems going to face. We have to maintain it, need space, need separate networks, operating system maintenance, cost, and more than that waste. Because our app server or our web server and the database server may not use 100% of the processing power of that box and 100% memory of that box. …

Photo by Google

In this article, I will explain the modern javascript features and those features’ examples. Before we staring Javascript modern features we want to know what is javascript and its history.

What is javascript?

JavaScript was initially created to “make web pages alive”.

Javascript is known as a scripting language for web pages. If you are a software developer you might know about the frontend and backend (JavaScript can execute not only in the browser but also on the server). In both, we have to use javascript when the need for the web pages of the applications. It’s a light weighted programming language. …

As we know there are two types of design patterns in java. Once the creational pattern and other, behavioral pattern. Memento is a part of the behavioral design pattern which is concerned with algorithms and the assignment of responsibilities between objects.


Without violating encapsulation, capture and externalize an object’s internal state so that the object can be restored to this state later.

A memento design pattern describes as the when wants to save the state of an object so that can restore it later on (Promote undo or roll back to full object status). When used to store the…

Photo by Google

Normally design patterns are given a solution for real-world problems. This pattern lets you pass requests along a chain of handlers. This comes under the behavioral design pattern. This pattern request from the client is passed to a chain of objects to process them. The chain in the object will decide who is processing the request and whether the request is required to be sent to the next object in the chain or not.

This will “avoid coupling the sender of a request to its receiver by giving multiple objects a chance to handle the request”.

Avoid coupling the sender…

The builder pattern is a creational pattern that refers to that “construct a complex object from simple objects using a step-by-step approach”. The Builder Pattern uses the step-by-step approach in building complex objects using basic simple objects. The pattern allows you to produce different types and representations of an object using the same construction code.

The name Builder refers to build objects. Sometimes, the objects we create can be complex, made up of several sub-objects, or require an elaborate construction process.

builder pattern encapsulates or hides the process of building a complex object and separates the representation of the object…

Sometimes the object created in java making too expensive and resource-intensive. For example, in a render-car application, you need to show more than ten-thousands vehicles hence that create more than ten thousand objects is too expensive. This is a massive problem when doing a large industrial project. Java provides the easiest solution which is Prototype patterns.

What is a Prototype Design Pattern?

Prototype patterns come under the creational pattern to provides one of the best ways to create an object. It also called a GoF design pattern.

Photo by ekicousch on Unsplash

A Factory Pattern or Factory Method Pattern says that just define an interface or abstract class for creating an object but let the subclasses decide which class to instantiate. In other words, subclasses are responsible to create the instance of the class.

The Factory Method Pattern is also known as Virtual Constructor.

Advantage of Factory Design Pattern

  • Factory Method Pattern allows the sub-classes to choose the type of objects to create.
  • It promotes the loose-coupling by eliminating the need to bind application-specific classes into the code. …

Arun prashanth

Software Engineer at Virtusa (Pvt) Ltd.

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