cancel
Showing results for 
Search instead for 
Did you mean: 

Regaring Synchronous communication and ASynchronous Commu

Former Member
0 Kudos

Hi,

Can any please describe me for the above Synchronous communication and ASynchronous Commu. Please don't send any weblogs.. Or Documentations please type the answers in simple language just to understand excatly.

1. when to use these.

2. where to use..

3. How its Usefull

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Synchronous communication is used when a request generated by a sender system requires an immediate response from the receiver.

Example 1: Signing on a new customer might require synch communication. The customer would require an immediate response after he raises a user id request.

Example 2: A banking transaction (A debit or credit to a particular account)would require a sync communication.

Asynchronous communication is used when a request does not require an immediate response from the receiver.

In such a communication, it is not required that the receiver be available.

The message remains in the sender system's queue, until the receiver is available and ready to process the request.

Example: Swiping in (and out) by a company's employee.

Regards,

Smitha.

former_member91687
Active Contributor
0 Kudos

Hi,

When you make a synchronous call i.e the message is sent, the receiving system is active and can accept the call and further process it if necessary.

It is advantageous in a scenario which requires immediate return of data to the sender system.

One example would be where, you create a purchase order with account assignment in the sender system, and you want to perform a budget check in central accounting before you save the purchase order.

A disadvantage would be that both systems are required to be active.

In Asynchronous communication the receiving system does not necessarily have to be available at the time a function call is dispatched from the sender system. The receiving system can receive and process the call at a later time. If the receiving system is not available, the function call remains in the outbound queue of the sending system, from where the call is repeated at regular intervals until it can be processed by the receiving system.

An example would be, you are sending a purchase order to a vendor system. The sending system cannot influence the availability of the receiving system. If the receiving system is not available, the purchase order can be sent repeatedly until the vendor system is available again.

The obvious advantage of async communication is that the receiving system does not have to be available at the time the function call is made and the disadvantage is that processes that require an immediate response to the sender system cannot be executed using this method.

Hope this gives a clear idea of sync n async communication.

Regards,

Chandra

moorthy
Active Contributor
0 Kudos

Hi,

Synchronous - Sender is awaiting response from the Receiver immediately. i.e When you send data, it expects an immediate acknowledgement.

Sender <->(Req/Response) Receiver

Required when you need to process some other business logic based on the response .

For e.g you need to post some data to SAP system. Based on successful, you need to send these data into Sender/any other system

Realtime e.g Authorizing Credit Card no.

Asynchronous- Sender is not waiting for any acknowledgement. After sending it just keep quite.

This type of communication is recommended for updates in order to avoid data inconsistencies.

e.g Sending data in batch to update database.

Sender ->(Request)Reciever

Regards,

Moorthy

Former Member
0 Kudos

Hi,

Synchronous and Asynchronous are two mode of communication that SAP XI has.

In case you need immediate response, for eg. purchasing anything online where you get immediate response. This is a synchronous call.

Asynchronous call is made where you are not expecting a response. For eg. upading a database table.

Other then this you have Batch Process. This is used for running process in a Batch mode to update data in bulk. Async and Batch can be used interchangeably.

Regards

Vijaya