I want to know the best practice for parallel processing. I have a client application in React
and a web api service in .NET 6
. The input is array of parameters and web service will return result for each item in array. Assume the maximum is 200 items.
-
Is it ok to use
Promise.all
to send the requests as batch or single requests. -
Or send all parameters to server and process using
Task.WhenAll