So far, the microservices we have developed are based on REST. We have used REST for both internal (inter-microservice, where one microservice communicates with another microservice in the same system) and external (through the public API) communication. At present, REST fits best for the public API. Are there other alternatives for inter-microservices communication? Is it the best approach to implement the REST for inter-microservices communication? We'll discuss all this in this section.
You can build microservices that are purely asynchronous. You can build microservice-based systems that would communicate based on events. There is a tradeoff between REST and event-based microservices. REST provides synchronous communication, whereas reactive microservices are based on asynchronous communication (asynchronous message...