!--a11y-->
Load Balancing of the SAP Web AS for J2EE
Applications 
The purpose of load balancing is to distribute inbound requests optimally to the available resources.
The SAP Web AS provides load balancing at various levels.
These are shown in the following graphic with (1) and (2) and described below.

· Load Balancing Between Many SAP Web AS Instances (1)
You can also start a system with many J2EE
dispatchers, for which the
SAP Web Dispatcher
or another load balancer is already activated as a Web switch.
This is
described in the section
Load Balancing Between
Many J2EE Instances.
· Load Balancing Within the SAP Web AS Instance (2)
In the
J2EE Instance
the
J2EE
Dispatcher distributes the incoming requests among the
Server Processes
it is connected to. When the
first request arrives at the dispatcher for distribution, the dispatcher
executes the load balancing function. Then the dispatcher can guarantee that
subsequent requests will be distributed to the server process that is
processing this session. For more
information see:
Load Balancing by the
J2EE Dispatcher
Load Balancing for
J2EE Web Applications
