Summary
In this chapter, we learned that the old web container—JBoss Web Server—of JBoss AS has been replaced by Undertow. This new web server/container is blazing fast and highly adaptive to handle new technologies.
Support for HTTP, HTTPS, and AJP is available through listeners that connect to a chain of handlers that, in turn, provide dynamic functionality.
Undertow is based on the XNIO framework that, supports and enhances Java NIO.
There are relatively few tuning points in Undertow, but heed should be taken for the available worker pools, buffer pools, and JSP compilation attributes. As always, the needs of your specific use case and environment can only be satisfied by tests.
Using a web server such as Apache HTTPD (with mod_cluster) as a frontend to one or many underlying application servers such as WildFly can be very beneficiary and allows the following:
HTTPS termination
Static content handling
DMZ
Load balancing
After setting the stage with the foundation of a web container, we now move...