Skip to content
Sharp

Reactive Streams · interview question

How does Spring WebFlux's use of a non-blocking event loop increase scalability over a traditional thread-per-request model?

Multiple choiceHardchapter-19-curatedpremiumreactive-streamsnon-blocking-i-o-event-loops
Choose one answer
Answer and explanation

Correct answer

B. By using fewer threads, it reduces context-switching overhead.

Why

Spring WebFlux's non-blocking event loop model uses fewer threads, thereby reducing the context-switching overhead associated with many threads in a traditional model. This allows handling more requests with the same resources.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →