Microservices - 01

Introduction to Microservices

Microservices are distributed, loosely coupled software services that
carry out a small number of well-defined tasks
carry out a small number of well-defined tasks.

Before Going for the microservices, let's look into the monolithic architecture which is the traditional approach. Before Microservices architecture came into action, Monolithic architecture was used. (Nowadays also many Software Companies still use this and they tend to move for microservice architecture)

In a Monolithic architecture, Software is delivered as a single artifact. All the UI (user interface),
business and database access logic are packaged together into a single application artifact and
deployed to an application server.




This is how a company which has its products in a monolithic architecture.

In a Monolithic architecture, When a change of a module is done, in order to deploy, have to reinstall all the other modules also. Since the modules are tightly coupled, a change in one module can affect others. 
The microservices approach is designed to overcome this problem.

In microservices
  •   The large codebase is decoupled to small and well-defined components. 
  •   each component can live without others. independent from each other(lightly coupled)
  •   For communication, they use HTTP /JSON Protocols
  •   Since they are Using HTTP/JSON protocols for communication it is not a problem whether the application is developed in another language, It's programming language-neutral. 

Images are referenced from Spring.Microservices.in.Action2017 ebook





Comments

Popular Posts