Eager vs Lazy prefetch #1397
Labels
area/gen4
Possible research theme for Reactor 4
status/on-hold
This was set aside or cannot be worked on yet
Milestone
In current version of Reactor ( 3.2.1.RELEASE ), this code will do
request(100)
(because of eager prefetch):Suggestion:
Optional prefetch mode,
LAZY|EAGER
. If it isLAZY
, there will be no prefetch unless downstream does it's first request.Motivation:
While it's ok for most of use cases, it might be a big issue when the publisher is some IO source (e.g. Kafka, RSocket, etc), where requesting before the subscriber is ready to consume is a waste of resources and might affect the startup time of the app if there are some global publishers (e.g. message processing)
The text was updated successfully, but these errors were encountered: