Concurrency & Asynchronous Performance Questions

How concurrency choices change throughput, latency and resource use in server-side software. Covers sizing and choosing thread pools and executors for CPU-bound versus I/O-bound work, including bounded queues, rejection policies and work-stealing pools, event-loop behavior and what blocks it, offloading blocking calls, the GIL and process-versus-thread trade-offs, connection and worker pool limits and exhaustion under a slow dependency, lock contention and how to find it (perf, eBPF, flamegraphs), lock sharding and striping, lock convoys, spinning versus blocking and backoff, head-of-line blocking, request coalescing so concurrent callers share one fetch, scheduling pipeline stages across pools, and the coordination costs that cap parallel speedup. Focuses on the performance consequences of concurrency design rather than the correctness theory of synchronization or any one language's API. Primitives and deadlock theory, per-language concurrency APIs, async syntax and promise semantics, message-driven system design, and database isolation are covered elsewhere.

MediumTechnical
52 practiced

What is head-of-line blocking? Describe where it shows up in server software (a single event loop, a shared FIFO work queue, a multiplexed connection) and how you would stop one slow request from delaying fast ones.

HardTechnical
57 practiced

Your service shows lock convoys and long tail latencies under certain workloads. What is a lock convoy, why does it inflate tail latency, and what remedies would you weigh, such as shorter critical sections, backoff, fair versus unfair locks, sharding or lock-free structures, and what does each cost?

HardTechnical
53 practiced

An async API server goes from healthy to timing out on every endpoint within minutes of one downstream dependency slowing down, while CPU stays low. Which shared resources could be saturating, how would you tell which one it is, and how would you contain the blast radius next time?

HardSystem Design
68 practiced

A server-side image pipeline runs fetch, decode, ML detection, annotate and render stages. How would you schedule the stages across thread pools to maximize throughput while keeping latency low for interactive requests? Discuss pool sizing per stage, batch sizes, backpressure between stages, prioritizing urgent requests, and memory limits.

HardTechnical
63 practiced

Design an adaptive backoff strategy for a highly contended lock on cloud VMs whose performance varies because of noisy neighbors. How do you choose between spinning and blocking, where do exponential backoff and jitter fit, and which metrics would you collect to tune the parameters automatically?

Unlock Full Question Bank

Get access to all 16 Concurrency & Asynchronous Performance interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.