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: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access