Microservice Design Patterns (Part — 03)

The proxy microservice design pattern is slightly similar to the aggregator. But according to the proxy design pattern, we do not need an aggregator on the consumer, but we create a microservice to invoke other services based on the business requirements. …

(Microservice Design Patterns — Part- 02)

If your house is powered by electricity, then you can find a circuit breaker. So when you get the power from the main grid, the power always comes through a circuit breaker. If the main grid behaves in an abnormal way, or if additional…

(Design Patterns— Part- 01)

📍 Before going into the design patterns, first, we should understand the principles behind them. So below are some principles which were used to design Microservices.

▪️ Availability

▪️ Resilient Services

▪️ Isolation from Failures

▪️ Scalability and Auto Provisioning

▪️ Autonomous Services

▪️ Independent

Why we need design patterns for microservices? 🧐


Microservices: Best Practices ✨

In this article, I’m going to discuss nine best practices that you should follow when dealing with microservices.

① Always consider using Domain-Driven Design.

✹ It should have a well-defined scope. Consider the below example,


Assume that there’s a “Rent a car” application. There’s a customer and it can represent two…

An Overview of Microservice Architecture

Monolithic Architecture

What we have today is called Monolithic Applications. These are built as a single, unified unit, or in other terms, we can say that the monolithic applications have a single executable file for your entire application (The entire application is packed into one file).

A simple overview of Docker and Container-based development.

Generation — 01

📍 Early days we deployed our applications using physical servers.

Example: Assume there is an application, database, and web server. Accordingly in those days, we used three different physical hardware boxes for this purpose.

Problems with those different hardware boxes 🧐

Have to maintain them.(If there were multiple servers…

New features in ES6 every developer must know 📝

Special features of modern JavaScript

📍 JavaScript can be defined as a very powerful programming language and it is actually based on ECMA script. (ECMA is the foundation and javascript is on top of that)

📍 JavaScript ES6 is also called ECMAScript 6 or ECMAScript 2015…

An overview of the Memento Design Pattern and its implementation with a real-world scenario!

📍 According to the book “Design Patterns: Elements of Reusable Object-Oriented Software” by a gang of four, the Memento Desing Pattern belongs to the category of behavioral design patterns and, also known as snapshot pattern.


An overview of the Chain of Responsibility design pattern & its implementation with a real-world scenario!

📍 Chain of Responsibility Design Pattern is a Behavioral design pattern.

📍 The chain of responsibility pattern is mostly used to pass the responsibility to the next if the current object cannot handle it at the moment. …

📍 The Builder Design Pattern comes under the creational design pattern.

📍 The Builder Design Pattern deals with tackle the problems with the creation of objects due to complicated multiple constructors.

📍 Sometimes we need to use multiple constructors in our program. Think of the below example➜

Assume that you…

Irushinie Muthunayake

Associate Software Engineer at Virtusa

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