This strategy pre-allocates a buffer of the given size and waits
for it to fill up before emitting it downstream.
Additional events are requested only after the buffer is
emitted.
This strategy is more efficient than StopAndWait, but
less fair. For example if you have a producer that emits
a tick every second, with a bufferSize of 10 the consumer
will only see events every 10 seconds. Therefore it should
be used with a busy source, but for slow producers
StopAndWait is a better strategy.
This strategy pre-allocates a buffer of the given size and waits for it to fill up before emitting it downstream.
Additional events are requested only after the buffer is emitted.
This strategy is more efficient than StopAndWait, but less fair. For example if you have a producer that emits a tick every second, with a
bufferSize
of 10 the consumer will only see events every 10 seconds. Therefore it should be used with a busy source, but for slow producers StopAndWait is a better strategy.