Skip to content
Sharp

Project Reactor · interview question

When applying backpressure in a reactive stream, which strategy can be used to control the rate at which a Subscriber processes data?

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

Correct answer

C. Request(n)

Why

The request(n) method is part of the Reactive Streams specification and allows a Subscriber to request a specific number of items from a Publisher, thus applying backpressure to control the data flow rate.

Test yourself on Project Reactor

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

Start free test
All Project Reactor questions →