Standards are key to implementing a Microservice Architecture. In this article, I want to focus on the Request and Response types. A request usually enters a gateway into a microservice architecture system. That request is processed and a response is generated. Then, another request is generated from the second microservice which processes and generates a second response. This process goes on for several, sometimes hundreds of microservices until finally a response leaves the system. To correlate the various requests and responses with a unique transaction all requests/responses must share a transaction ID. In addition to a transaction, it is also important to identify the originating client that made the originating request. Therefore, having a base request/response type shared among all microservices will help ensure that the processing of these requests and responses can be standardized across the system.
Rubens Gomes
No comments:
Post a Comment