This is a created article in which the information may have evolved or changed.
Comparison of concurrent implementations of Scala and Golang
What's the difference between Tomcat and Nginx,apache?
There is one answer: You can describe the relationship between CGI and HTTP server
I recently learned Java's XML DOM to try not to use Tomcat, through Apache CGI, with the shell call Java,java with the XML DOM to generate static HTML and output, the effect is still possible, the HTML hierarchy can be fully developed, Post data can also be received, feeling that the HTTP server can be supported,
At the same time, it also solves my c confusion with the realization of a httpserver, this C httpserver should be similar to tomcat a thing, CGI is a processing program, processing server requests and responses.
TINYHTTPD is an ultra-lightweight Http server with less than 500 lines, which is great for learning and helps us to really understand the nature of server programs
In this case, looking at this server handler is actually an understanding of the Tomcat-like application container, and this is a C server container.
It is not the implementation of Apache functionality.