Angular/RxJS: Limiting Concurrent HTTP Requests
July 2, 2023
In a recent project, I was working with handling parallel file uploads from the UI. In some cases, there would be 50+ upload HTTP requests to process. Initially, I implemented the parallel upload handler using Promise.all()
. However, this method fires all the requests at once which would crash the browser. I wanted a way to control how many uploads could be going at once.