Skip to content
Sharp

Reactive Streams · interview question

In Project Reactor, what is a potential risk when using flatMap() in a reactive pipeline?

Multiple choiceHardchapter-19-curatedpremiumreactive-streamsthread-per-request-bottleneck
Choose one answer
Answer and explanation

Correct answer

D. It can produce data out of order

Why

Using flatMap() can lead to data being emitted out of order because it processes elements concurrently and asynchronously, unlike map(), which maintains the order.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →