Understanding our proxy

In the case of our application, we are using the proxy design pattern for the Create User microservices and the News microservices. All we need to do is apply this pattern to our microservices and, in addition to creating microservices, we apply the proxy policy in our Nginx.

Let's observe the configuration we currently have in our application. As can be seen in the following configuration, we have two upstreams pointing to distinct microservices, as well as distinct locations, precisely to apply the upstream.

In this configuration, we are clearly using the dumb proxy approach, because the proxy does not perform any data modification or any other task that has minimal intelligence. Take a look at the following code: ...

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.