Communication between Microservices Endpoints

In the last chapter, you learned about service discovery and the API Gateway pattern. The chapter explained how to find microservices, but it would be interesting to dig into the detail of how microservices actually communicate at the protocol level. There are many options available for these interservice communication patterns. Once you decide which pattern suits your requirements, you will learn about the protocol that will be used. It could be SOAP, REST, XML-RPC, and so on. In this chapter, we will go through the major pattern found in interservice microservices communication. We will also go through an example of one of these patterns.

In this chapter, we will cover the following topics:

  • How should microservices communicate with each other?
  • Orchestration versus choreography
  • Synchronous versus asynchronous communication
  • Use of message brokers for event-driven microservices
  • Development of a financial microservice
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset