Why should synchronous calls be avoided?

Synchronous calls during the requests may result into the cumulative effect of downtime. If an API call is synchronous, the thread will block or wait until the API call returns back and your application will not perform any further until a response is received by the API. This results in a performance lag in your application.

To overcome this problem, you can decide between asynchronous calls that doesn’t block or synchronous calls that wait until the API call returns from the server. The aim should be to free the main thread so that it will result in a continuous response to the user interface.

Some sites use a simple rule on their platform viz. one synchronous call per user request, whereas some of them have redesigned their API platform and have built asynchronicity into the API framework.

Vmoksha has come up with its own Enterprise Architecture over a period of time and advocate the need for asynchronous calls or requests.



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>