Skip to content
Sharp

Reactive Streams · interview question

How does the 'request(n)' method in Reactive Streams help manage backpressure?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsblocking-the-event-loop
Choose one answer
Answer and explanation

Correct answer

A. It limits the number of items a Subscriber can process.

Why

The request(n) method allows a Subscriber to specify how many items it can handle at a time, helping prevent overwhelming the consumer with too much data at once.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →