7
Why Create a Web Framework
Building Simple Application Server (SAS) has provided us with a deep understanding of the fundamental mechanics of a web server. From handling sockets to dynamic method invocation via reflection, SAS has taught us how web servers really work under the hood. However, at the same time, it has also shown us that there is a practical limit to the use of hand-crafted solutions in production or more demanding development environments.
While SAS can be scaled, as demonstrated in this chapter, it is not a replacement for robust, well-established servers such as Apache Tomcat, which is maintained by the Apache Software Foundation, implements the official Java Servlet specification, and is widely used by Java applications worldwide. For example, some limitations include the inability to add extensions such as JPA, lack of support for handling timeout requests, and the absence of thread pooling.
By the end of this chapter, you will understand
- The motivation of creating...