We have learned how to write a microservices controller using the C++ REST SDK. Maybe we can say that the server we just implemented can be a microservice instance. In a real-life microservices architecture scenario, there will be multiple services hosted in different boxes (Docker containers or Virtual machines), and microservices controller will access these independently deployed services to cater to the client. The microservice controller will aggregate output from different services to send as a response to the client. A basic architecture for a microservice application is shown in the following diagram:
In the previous diagram, the REST (HTTP) client makes an HTTP call to the microservices controller, which wraps http_listener object. The controller invokes three microservices to retrieve data, and the resultant data...