Skip to content
Sharp

Reactive Streams · interview question

How would you explain a critical consequence of using a blocking call, like Thread.sleep(), inside a WebFlux handler in an interview?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsblocking-the-event-loop
Choose one answer
Answer and explanation

Correct answer

A. It blocks the entire event loop, reducing throughput.

Why

Blocking the event loop with Thread.sleep() prevents it from handling other requests, drastically reducing throughput and potentially crashing the server under load.

Test yourself on Reactive Streams

A free test with instant, explained results. No account needed.

Start free test
All Reactive Streams questions →