Communication Over Microservices

Rajesh Khadka
7 min readMay 3, 2020
Interaction between services

Proper choice of the communication protocol over Microservices makes the application more responsive and efficient. Various aspects need to be considered regarding communication before breaking down into services.

There are 2.5 quintillion bytes of data generated every day. Software built using monolithic architecture may face problems like difficulties in scaling, longer time to ship, spaghetti code, etc.

Microservice architecture has become the de facto choice for modern application development. As the name suggests, Microservice architecture is an approach to building a server application as a set of small services.

With the wide adoption of trending architecture, there are lots of challenges to deal with small service as it doesn’t suggest common standards and patterns. The implementation depends on team maturity and business requirements. Architecture becomes more mature and independent as the team faces the problems over time.

As the services get deployed independently, it requires an efficient protocol to communicate between the services. Improper use of the communication protocol may lead to poor performance in applications.

Communication Protocol

There are two styles of communication: synchronous and asynchronous. These are the foundations for the…

--

--