mlfetch is a request manager for scenarios that require lots of requests to be sent, which uses fetch() api to send requests. It could also automatically adjust the concurrency based on the request statistical data(include the size of request queue and the request time and others) to achieve the balance between enqueue and shift.
You can click two link below to lean the usage of mlfetch. The implementation of mlfetch is loacted in package/mlfetch
. And the test environment is located in playground/jsonplaceholder
, it could handle the task of request https://jsonplaceholder.typicode.com/photos/${i}
80 times per second.