InterviewStack.io LogoInterviewStack.io

Server Side Asynchronous Programming Questions

Asynchronous and concurrent programming as applied to backend systems, including event loop models, thread pools, futures and promises, asynchronous I O, streaming, and reactive frameworks. Covers Node dot js event loop and streaming APIs, Java threading models and reactive libraries such as Project Reactor or RxJava, Python asyncio and multiprocessing versus multithreading trade offs, handling blocking operations, backpressure and flow control, and patterns to structure scalable non blocking servers. Candidates should demonstrate the ability to reason about throughput, latency, resource contention, and appropriate concurrency models for server workloads.

MediumTechnical
19 practiced
Compare Java's ThreadPoolExecutor and ForkJoinPool (work-stealing) for server workloads that mix CPU-bound parallel computations and many small asynchronous tasks. When is ForkJoinPool preferable, and how do blocking tasks affect its performance? Describe mitigations for blocking code executed on ForkJoinPool threads.
MediumTechnical
16 practiced
A Node.js service occasionally performs CPU-bound tasks that block the event loop for ~200ms, causing degraded tail latency. Propose and evaluate solutions: using worker_threads, external microservice, process pool, WebAssembly, or sharding. Discuss trade-offs in complexity, latency impact, throughput, and operational considerations.
MediumTechnical
16 practiced
Implement a 'single-flight' cache loader in Python using asyncio so that concurrent coroutines requesting the same missing key cause only one fetcher coroutine to run; others await the same result. Provide signatures: async def get(key) -> value and async def _fetch(key) -> value. Ensure exceptions, cancellations, and TTLs are handled correctly to avoid stuck waiters.
HardTechnical
30 practiced
You operate an async microservice managing long-lived WebSocket streaming connections in Node.js. Describe how to perform capacity planning: estimate file-descriptor/TCP limits, memory per connection, per-connection CPU, bandwidth, and network stack limits. Describe stress-test design, modelling concurrent connections vs throughput, and the safety margins you'd apply to meet SLOs.
MediumTechnical
21 practiced
Legacy services use nested asynchronous callbacks causing hard-to-maintain code and resource leaks. Explain structured concurrency concepts and how modern features (async/await, task groups in Python 3.11, StructuredTaskScope in Java) help. Provide a pragmatic plan to refactor a legacy callback-based service to structured concurrency to improve lifecycle management and error propagation.

Unlock Full Question Bank

Get access to hundreds of Server Side Asynchronous Programming interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.