Skip to content
Sharp

Reactive Streams · interview question

How does backpressure control the data flow in Reactive Streams?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamspublisher-and-subscriber
Choose one answer
Answer and explanation

Correct answer

B. Through a demand-based mechanism where Subscribers request a specific number of items

Why

Backpressure in Reactive Streams is controlled through a demand-based mechanism where Subscribers explicitly request a specific number of items they can handle. This ensures that the Publisher does not overwhelm the Subscriber with more data than it can process.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →