How does ASP.NET Core process a request?
How does ASP.NET Core process a request?
- A request is received from a browser at the reverse proxy, which passes the request to the ASP.NET Core application, which runs a self-hosted web server.
- The web server processes the request and passes it to the body of the application, which generates a response and returns it to the webserver. The web server relays this to the reverse proxy, which sends the response to the browser.
- benefit of a reverse proxy is that it can be hardened against potential threats from the public internet. They’re often responsible for additional aspects, such as restarting a process that has crashed. Kestrel can stay as a simple HTTP server. Think of it as a simple separation of concerns: Kestrel is concerned with generating HTTP responses; a reverse proxy is concerned with handling the connection to the internet.
Comments
Post a Comment