Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
NSC | When is it Best to Use Asynchronous Web Service Operations?
Asynchronous web service operations are preferred when dealing with potential performance bottlenecks. Slow or unstable connections can hinder synchronous operations, leading to timeouts or errors. By using asynchronous methods, you ensure that network issues do not impact the overall system performance.
In NetSuite’s SOAP Web Services, the following asynchronous equivalents are available for these list operations:
- addList: asyncAddList
- updateList: asyncUpdateList
- upsertList: asyncUpsertList
- deleteList: asyncDeleteList
- getList: asyncGetList
- search: asyncSearch
- initialize / initializeList: asyncInitializeList
You can use the checkAsyncStatus and getAsyncResult operations to track asynchronous requests.
Advantages of Asynchronous Web Services Operations:
- Long-Running Tasks: Asynchronous processing is crucial for tasks that take an extended time to complete. Synchronous operations have a timeout limit of 15 minutes, and exceeding this limit results in failures. Asynchronous operations allow these long-running jobs to execute fully without timing out.
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see