Skip to content
Sharp

Project Reactor · interview question

In a reactive system, why might using map() instead of flatMap() lead to a bottleneck?

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

Correct answer

C. Because map() does not allow asynchronous task handling.

Why

Using map() for operations that require asynchronous handling can cause a bottleneck since map() is synchronous and won't efficiently handle non-blocking asynchronous tasks.

Test yourself on Project Reactor

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

Start free test
All Project Reactor questions →