Skip to content
Sharp

Project Reactor · interview question

In a reactive system, what is a potential danger of using a blocking call inside a flatMap() operation?

Multiple choiceMediumchapter-19-curatedpremiumproject-reactorfunctional-pipelines-flatmap
Choose one answer
Answer and explanation

Correct answer

B. It can lead to blocking the entire event loop.

Why

Using a blocking call inside flatMap() can block the event loop, which is critical in a non-blocking system. This can severely impact the system's ability to process other requests concurrently.

Test yourself on Project Reactor

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

Start free test
All Project Reactor questions →