Skip to content
Sharp

Reactive Streams · interview question

Which operator is the safer default when order must be preserved across asynchronous work?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsfunctional-pipelines-flatmap
Choose one answer
Answer and explanation

Correct answer

D. concatMap()

Why

concatMap() preserves source ordering by subscribing to one inner publisher at a time. That makes it a better fit than flatMap() when business meaning depends on sequence, even if it sacrifices some concurrency.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →