cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between synchronous and asynchronous

Former Member
0 Kudos

Hi, i´m doing a t01 syncbo... what is the difference between synchronous and asynchronous?

What is better for syncbo t01, and for syncbo s01?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Victor,

adding to the thngs above - the Synchronous can make a sync really long - and so it is not that good for the performance of the App if it should be like your last "online" App.

BUT: you learned about repetitive sync a while back. Repetitive gives you the best result if you combine it with Synchronous. Cause: even a synchronous sync stops the sync after a while - even if the data was not send down to the device. Well, lets say you have a 2way BO configured as Synchronous. But the answer of the backend takes ages. Cause it is Synchronous, the device has to wait for the result. But - this could cause a frozen device - more or less. So after a while the sync stops automatically even without the result. With repetitive sync it will start emmediately a new sync - up to the number of max repetitive syncs. And if the result is not there at the end of tha loop, it will inform you that data is still missing.

Without setting a BO to synchronous - you will not get the information tha still data is missing.

Hope I have not lost you!

Regards,

Oliver

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Whenever a device connects with the middleware, it uploads data if there is any and downloads new data. This can be done in 2 different ways depending upon the urgency of the results of data created on the field.

Synchronous and Asynchronous.....

In Synchronous the results is returned to the device while it is still online connected to the middleware. In Asynchronous the device places request and gets disconnected. Then user has to synchronise again to the get result.

Thanks..

Preetham S

Former Member
0 Kudos

Hi

There are two options available:

Synchronus in which the data is exchanged while the mobile is online. The mobile sends the messages to the middleware and gets the response there and then, while it is online.

ASynchronus in which the mobile sends the messages to the middleware and goes offline. The responses are calculated and stored in the outbox. When the mobile again comes online and syncs, it gets the response messages.

The choice depends actually on the type of the syncBO, like if there is an Order being created on the mobile and its approval (which will come from the backend) is needed, most of the time immediately. This SyncBO must be Synchronus.

The other data, to which response is not immediately needed can be made as Syncronus.

The choice has serious performance considerations, So it should be made wisely.

Please ask if you need more information.

Thanks

Ankur

(Award Points if the info is useful)