Skip to content
Sharp

Reactive Streams · interview question

What would be the effect of calling request(Long.MAX_VALUE) on a Subscription?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsbackpressure-strategies
Choose one answer
Answer and explanation

Correct answer

A. The Subscriber indicates it can handle an unlimited amount of data

Why

Calling request(Long.MAX_VALUE) signals that the Subscriber can handle an unlimited amount of data, effectively removing backpressure constraints.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →