What is the purpose of Consul Gateway API together with Nginx


I’m going through this tutorial and there’s something that bothers me tremendously: what is the purpose of having both the Nginx reverse proxy and the Consul Gateway API? It looks to me like they both can process HTTP traffic. Can you remove nginx and connect your deployments to Consul Gateway with gRPC for example? What are their respective roles?

Thank you kindly

The Nginx in this example is just part of the example application (used as webserver), and as such is not part of the consul gateway itself.