Promise pool, async queue and task scheduler
Comes up in: Coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- run N at a time
- results in order
- stop on first error option
- queue with pause/resume
- priority
- scheduler with dependencies (topological order)
Words you will know
What you will practise
- implement promisePool and AsyncQueue
Interview questions this answers
- Implement a promise pool with a concurrency limit.