Skip to content
Sharp

Reactive Streams · interview question

Which of the following scenarios is best suited for using the request(n) mechanism in Reactive Streams?

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

Correct answer

A. When a subscriber needs to process data at a controlled rate to avoid memory overflow.

Why

The request(n) mechanism is crucial when a subscriber needs to control the rate of incoming data to prevent overwhelming its processing capacity and avoid memory issues.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →