Web server and Web Container architecture model (Java-based)

NGU
Javarevisited
Published in
4 min readApr 5, 2023

--

As an Expert or Architect, Do you understand well the basic flow of web server/container handles http(s) requests?

Traditional Web server architecture model

Web Server
A web server is software that provides web services to the outside world, receiving HTTP requests from browsers and returning the results to the browser.
What we usually call Web servers, such as Apache, Nginx, IIS, etc., tend to have a single function, providing only http(s) services that allow users to access static resources (HTML documents, images, CSS files, JavaScript files, etc.); they cannot execute any programming language, access databases, or allow users to register and log in.

In other words, if you have only a web server, you can only deploy static websites, not dynamic ones. To deploy a dynamic website, you must have the support of a programming language runtime environment (Runtime) and a database management system

HTTP request first reaches the Web server, which determines whether the request is a static or dynamic resource: if it is a static resource, it returns directly, which is equivalent to the user downloading a file from the server; if it is a dynamic resource, it cannot be…

--

--

NGU
Javarevisited

Microservices. Cloud Native. Architecture. Record Technology, Sports, Life. A picture is worth a thousand words