Home Programming What are microservices?

What are microservices?

576
0
microservice-feature

MICROSERVICES IS A SOFTWARE DEVELOPMENT TECHNIQUE THAT ARRANGES AN APPLICATION AS A COLLECTION OF LOOSELY COUPLED SERVICES”

Robert C. Martin coined the term single responsibility principle. It states “gather together those things that change for the same reason, and separate those things that change for different reasons.”

Microservice architecture is based on the same technique. In this, the application is divided into multiple loosely coupled services that are easy to develop, maintain, and deploy.

From below image you can identify the basic difference between monolithic and microservice architecture.

microsevices

In monolithic, the project is tightly coupled into a single application with a single databse whereas in microservice the project is divided into multiple services each having a separate database.

Not all microservice require a DB. For example, the SMS service is used for sending SMS.

Features of Microservices

  • Independent deployment of Services.
  • Microservices are small, independent, and loosely coupled.
  • Each service has a separate codebase and database.
  • Services communicate with each other by using well-defined APIs or through the messaging system.
  • Each service can have different technology stack, libraries, or frameworks.

For related articles click here.

This site uses Akismet to reduce spam. Learn how your comment data is processed.