You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was recommended not to use Promise.all directly too much because we could hit system's limit on open file descriptors.
The user solution is to use Bluebird's Promise.map with the concurrency parameter.
However, most connectors will only use our functions like requestFactory or saveFiles.
It would probably be a good idea to deal with the concurrency internally at least for the functions we manage. Doing so, most developers won't have to even be aware of our system's limits and of the complexity induced.
For requestFactory we could add { pool: {maxSockets: Infinity} } in the default options. Attention, this requires strictSSL to be at true (it is at falsetoday).
For saveFiles we already use Bluebird and only have to add the concurrency parameter.
The text was updated successfully, but these errors were encountered:
I was recommended not to use Promise.all directly too much because we could hit system's limit on open file descriptors.
The user solution is to use Bluebird's
Promise.map
with theconcurrency
parameter.However, most connectors will only use our functions like
requestFactory
orsaveFiles
.It would probably be a good idea to deal with the concurrency internally at least for the functions we manage. Doing so, most developers won't have to even be aware of our system's limits and of the complexity induced.
For
requestFactory
we could add{ pool: {maxSockets: Infinity} }
in the default options. Attention, this requiresstrictSSL
to be attrue
(it is atfalse
today).For
saveFiles
we already use Bluebird and only have to add theconcurrency
parameter.The text was updated successfully, but these errors were encountered: