← Questions

Run blocking API calls in parallel with a thread pool

0
BasetenCodingLast asked Aug 2026

A coding interview question asked in Baseten's technical phone screen, last asked Aug 2026. It tests concurrency, thread pools and http clients.

A program makes many blocking API calls one after another, and most of its time is spent waiting on the network. Make the calls run concurrently with a bounded thread pool, return the results in the same order as the inputs, and handle…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Baseten · Technical phone screen · Last asked Aug 202660 min · Live in CoderPad: a few minutes of intro, then 45 to 50 minutes on one practical problem

What it tests

concurrency · thread pools · http clients

Your code and the AI tutor open when you unlock this question.