It is a popular pattern to frontend a microservice with a reverse proxy, a load balancer, an edge gateway or an API gateway, in an increasing order of complexity.
- Reverse proxy: A reverse proxy is defined as a process that makes the downstream resource available as though it originated from itself. In that respect, the webserver frontend and the application server also act as reverse proxies. The reverse proxy is useful in cloud-native applications, as it ensures that the clients do not need to look up services and then access them like we did in Chapter 2, Writing Your First Cloud-Native Application. They have to access the reverse proxy, which looks up the microservices, calls them, and makes the response available ...