Show TOC

Procedure documentationLoad Balancing Locate this document in the navigation structure

Procedure

Since an RFC client program can call a function module in an SAP system without specifying the application server which establishes the connection, you can make use of the load balancing feature.

This is done by means of the function RfcOpenConnection: First the system builds up a connection to the message server of the SAP system and tries to find the application server with the least load (load balancing principle). On the basis of this information, the RFC library internally builds up the connection to the selected application server.

This load balancing feature has the following advantages:

  • The load in an SAP system is distributed to different SAP application servers. The RFC connection is always established to the application server with the least load.

  • Using load balancing, the RFC server will be determined at run time from the application servers available. Therefore, RFC connections are independent of a specific application server.

  • Only the host name of the SAP message server and its port number are required in the hosts and services file. Information about the SAP gateway, application server, system number for the RfcOpenConnection entry, and entries for the application server and SAP gateway are no longer required there.