Back to Problem Library
Async & Concurrency

Code Review: Promise Concurrency Exhaustion

mediumJS / TS

Problem Statement

Review the following batch notification dispatcher. Identify why firing thousands of HTTP requests with unrestricted `Promise.all()` leads to socket exhaustion, memory spikes, and API rate limit bans. Refactor with controlled concurrency.

Includes TypeScript & JavaScript starter code
Start Interview with this Problem