Skip to content
Sharp

Reactive Streams · interview question

What happens if a Publisher emits more data than a Subscriber has requested in a Reactive Streams implementation?

Multiple choiceHardchapter-19-curatedpremiumreactive-streamspublisher-and-subscriber
Choose one answer
Answer and explanation

Correct answer

D. The excess data is buffered until the Subscriber requests more.

Why

In Reactive Streams, if a Publisher emits more data than requested, the excess data is typically buffered. This allows the Subscriber to process data at its own pace, ensuring that flow control (backpressure) is maintained.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →