RFC+notes (2)
RFC+notes (2)
The first version of RFC is synchronous RFC (sRFC). This type of RFC executes the
function call based on synchronous communication, meaning that the systems
involved must both be available at the time the call is made.
Asynchronous RFC (aRFC)
Despite its name, aRFC is not really an asynchronous type of communication, as it
does not meet the conditions for this. With sRFC, for example, the called system
must be available during the call.
The main characteristics of aRFC are as follows:
Function control returns to the calling program directly after the call.
The parameters of asynchronous RFCs are not logged to the database, but
sent directly to the server.
Asynchronous RFCs allow the user to carry on an interactive dialog with the
remote system.
When the caller starts an aRFC, the called server must be available to
accept the request.
The calling program can receive results from the asynchronous RFC.
Using aRFC is always a good idea when real-time communication is established
with a remote system, where processing in the calling program should not be
interrupted until the results of the called function module have been obtained
(the term asynchronous is used in this sense here).
Disadvantages of tRFC
tRFC processes all LUWs independently of one another. Due to the amount
of activated tRFC processes, this procedure can reduce performance
significantly in both the send and the target systems.
In addition, the sequence of LUWs defined in the application cannot be
kept. It is therefore impossible to guarantee that the transactions will be
executed in the sequence dictated by the application. The only thing that can
be guaranteed is that all LUWs are transferred sooner or later.