Most of the time when we are building some web application through a framework, the frameworks usually provide a small and easy to run web server. Although these servers are good for use in the development environment to quickly realize the changes and debug through the issues inside the application during the development stage, these servers are not capable of handling the production workloads.
Even in the case when the whole application has been developed from scratch, it is generally a good idea to proxy the communication to the web application through use of a reverse proxy. But the question arises is, why do we need to do so? Why shouldn't we just run the web application directly and let it handle the incoming requests. Let's quickly go through all the responsibilities the web application serves:
- Handling of incoming requests:When a new request arrives at the web application, the web application might need to decide what to do with that request.If...