Load Balancing with Tomcat

Uniface uses Apache Tomcat as its default web server. It serves both static content, such as HTML pages and images, and dynamic content, such as JSPs and servlets (such as the Uniface WRD). However, it is not as fast for delivering static content as some other web servers. It is therefore preferable to use a dedicated web server for web requests and static content, and a dedicated servlet container such as Tomcat for dynamic content.

Tomcat provides plug-ins that enable it to work with other web servers, such as Apache and Microsoft IIS. These are available at tomcat.apache.org/connectors-doc.

For example, you can configure an Apache Web server to deliver Uniface servlet requests to multiple Tomcat servers (or engines). When a client browser requests a Uniface server page for the first time, the request is redirected to one of the two Tomcat server. Further requests that originate from the same client session are automatically forwarded to the same Tomcat server. For the next client browser that requests the same server page, the request is sent to the second Tomcat server, and so on.

You can also spread the processing load by using multiple Web servers, including Tomcat HTTP Servers, Apache Web Servers, or Microsoft IIS.