Suppose an api server is utilizing HTTP/1.1 and the browser has a maximum of 6 concurrent TCP connections per domain.
If I make 7 api calls simultaneously using Promise.all
, does that mean the last api
call will have to wait for the response from the first api
call to return over the network?
Promise.all([api(), api(), api(), api(), api(), api(), api()]) // 7 api calls
Furthermore, does HTTP/2 address this issue with multiplexing, allowing all API calls to be made on the same connection so they won't need to wait for each other?