Link:
https://stackoverflow.com/questions/36213948/what-is-the-difference-between-asynchronous-calls-and-callbacks
Synchronous: Consumer and Provider should be present at same time to communication take page.
Ex: Web Page
In API, the code will be blocked until callback is returned.This means that until a response is returned by the API, your application will not execute any further.
asynchronous: Sender and Receiver does not need to present at same time.
Email or SMS.
Asynchronous calls do not block (or wait) for the API call to return from the server. Execution continues on in your program, and when the call returns from the server, a "callback" function is executed.
https://stackoverflow.com/questions/36213948/what-is-the-difference-between-asynchronous-calls-and-callbacks
Synchronous: Consumer and Provider should be present at same time to communication take page.
Ex: Web Page
In API, the code will be blocked until callback is returned.This means that until a response is returned by the API, your application will not execute any further.
asynchronous: Sender and Receiver does not need to present at same time.
Email or SMS.
Asynchronous calls do not block (or wait) for the API call to return from the server. Execution continues on in your program, and when the call returns from the server, a "callback" function is executed.
No comments:
Post a Comment