does anyone know if there is outbound throttling i...
# suitescript
m
does anyone know if there is outbound throttling in NetSuite when making https.post.promise requests? I am using Array.map() to loop over an array and send a https.post.promise for each. My logs say they all fire at the same time(or very very close), but the end point is not receiving them all at the same time. Just wondering if this is a battle worth fighting or if NS is throttling me.
b
the answer is probably, netsuite is not gonna let each script use a 100 http connections
your logging is probably naive, netsuite is under no requirement to send a request at the moment you call https.post.promise
m
Duly noted. Thanks. For what it's worth I am sending 11 post requests at once
b
when i tested it, i got 2 simultaneous
so my guess is that its 2 max
or it may be related to suitecloud processor count since 2 matches the suitecloud processor count of my test account
m
Ahh. That would make sense. I saw the first two hit the endpoint at pretty much the same time and the rest staggered. I won't waste any more time trying to optimize. Thanks!
Hey @battk one last question. We are on the "Premium Tier" so we have 15 SuiteCloud Processors. Should I pursue with NetSuite Support in your opinion?
b
i wouldnt expect anything