Skip to content
Sharp

Project Reactor · interview question

In Reactive Streams, how can backpressure be applied effectively to prevent overwhelming a Subscriber?

Multiple choiceMediumchapter-19-curatedpremiumproject-reactorfunctional-pipelines-flatmap
Choose one answer
Answer and explanation

Correct answer

B. By using the request(n) method to specify demand.

Why

The request(n) method allows a Subscriber to signal its demand to the Publisher, enabling effective backpressure management by controlling the rate of data flow based on the Subscriber's capacity.

Test yourself on Project Reactor

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

Start free test
All Project Reactor questions →