Code RoomGateway request queue blocking
MediumPrep Room Coding #4546

Gateway request queue blocking

On-callNetworking & APIsAlgorithms & data structuresMid–Senior~30 min

An API gateway (single shared worker pool / request queue) fronts both fast lightweight reads (~5ms) and a handful of expensive report-export endpoints (~8s each). At 15:00 a customer scripts a burst of report-export calls. Suddenly *all* traffic through the gateway, including the 5ms health checks and reads, sees latency jump to multiple seconds and some time out. Export volume is small in count but each is long-running. Triage and explain the blocking mechanism, then mitigate.

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 30 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.