Skip to content
Sharp

Reactive Streams · interview question

How would you explain a key difference between using WebFlux and Virtual Threads for handling concurrency in an interview?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsbackpressure-strategies
Choose one answer
Answer and explanation

Correct answer

D. WebFlux uses non-blocking I/O, whereas Virtual Threads use blocking I/O.

Why

WebFlux operates on a non-blocking I/O model, optimizing resource usage by handling concurrency with event loops, whereas Virtual Threads use a blocking I/O approach, simplifying thread management but with different performance characteristics.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →