Synchronous Versus Asynchronous Request Processing

SOAP web services requests can be processed synchronously or asynchronously.

With synchronous requests, your client application sends a request to NetSuite, and the client waits until the request is processed and a response is returned. That is, the application does not proceed with other work until receiving the response.

With asynchronous requests, your client application sends a request to SOAP web services, where it is placed in a processing queue and handled asynchronously with other requests. Your client application does not wait for a response but goes on to other work. After a job is submitted, a job Id is returned in the SOAP web services response. Your client application can then check on the status and result of the request by referencing the job Id.

Asynchronous processing may be advantageous in the following situations:

Be aware that asynchronous responses may not be returned immediately. Before committing to using asynchronous operations, you should consider this factor and decide whether it fits in with your business logic.

Related Topics

General Notices