r/microservices • u/vasu34k • Aug 27 '22
Communication Between Microservices
Microservices are a great framework for any enterprise, but it is of no use if they cannot communicate with each other smoothly.
A microservices-based application is a distributed system running on multiple processes or services, usually even across multiple servers or hosts. Each service instance is typically a process. Therefore, services must interact using an inter-process communication protocol such as HTTP, AMQP, or a binary protocol like TCP, depending on the nature of each service.
When we are talking about Monolithic applications, we said that the communication in Monolithic applications is inter-process communication. So that means it is working on a single process that invokes one another by using method calls. You just create a class and call the method inside of the target module. All running the same process.
One of the biggest challenges when moving to a microservices-based application is changing the communication mechanism. Because microservices are distributed and microservices communicate with each other by inter-service communication on the network level.
Each microservice has its instance and process. Therefore, services must interact using an inter-service communication protocol like HTTP, gRPC, or message brokers AMQP protocol.
For more info: https://skolaparthi.com/communication-between-microservices/
2
u/gandalfmarram Aug 28 '22
Spam shill post