Skip to content
Sharp

Reactive Streams · interview question

How does a Subscriber signal its demand for data in a Reactive Streams system?

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

Correct answer

B. By sending a request signal through the Subscription.

Why

Subscribers in Reactive Streams use the Subscription object to signal their demand for data by calling the request(n) method. This method controls the data flow from the Publisher.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →