What is sync and async execution type in vconnect Api's and what are their use cases

what is sync and async execution type in vconnect Api’s and what are their use cases

2 Likes

Sync Execution Type: In this the current API will execute after the previous API successfully completes its job.

And in async, the current API will execute along with other APIs in a parallel manner.

2 Likes

Synchronous (Sync) Execution:

Sync APIs make you wait for a response. When you ask for something, like logging into an application or retrieving dashboard data, you have to wait until you get a response. It’s like standing in line; you can’t move on to the next task until this one is done.

When vDesigner, vFlow or any Angular application call an API and it waits until response is recieved. It means it is Synchronous (Sync) Execution of API.

Asynchronous (Async) Execution:

Async APIs are like You can ask for something and then go do other tasks. For example, when generating a lengthy report or sending notifications, you don’t need to wait around. You can start the task and check back later. It’s like sending an email – you don’t have to wait for an immediate reply.

To put it in a real-life scenario, consider a money transfer service. When checking the account balance, debiting from one account, and crediting to another, you want these steps to happen in order (Synchronous). However, sending notifications to both parties can be done in the background without waiting (Asynchronous). This combination of Sync and Async operations helps the service run efficiently.

1 Like