Mike Robbins
06/13/2024, 3:45 PMasync-*
SOAP operations and how they relate to concurrency.
It seems to me that using async-*
operations will return a jobId
as quickly as it can, completing the API request and no longer counting toward our maximum concurrent requests even though the work isn't finished.
We would then need to make at least one (maybe more) request to checkAsyncStatus
for the job. Once the job is completed, another request to getAsyncResults
to get the results of the job.
Granted, these requests would be faster since none of them are being held while the actual work is being performed.
So the balancing act seems to be: does the overhead of multiple API calls for a single list action outweigh the time it takes to process the data. It seems that performing a updateList
operation with a single record might affect concurrency less than an asyncUpdateList
operation with subsequent checkAsyncStatus
and getAsyncResults
. But with 200 records, I can see the benefit.
Is my understanding of this correct or am I over complicating that balancing act and use async operations when possible?battk
06/13/2024, 4:01 PMbattk
06/13/2024, 4:01 PMbattk
06/13/2024, 4:01 PMMike Robbins
06/13/2024, 4:05 PMlist
operations at all and if we're going through the process or changing our integrations I'm wondering if we start defaulting to async operations when appropriate.battk
06/13/2024, 4:08 PMbattk
06/13/2024, 4:08 PMMike Robbins
06/13/2024, 4:29 PM