-
Hello, Is there a way to limit parallel consumer internal queues size in order to reduce RAM usage ? Thank you. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @mikhelef, Configurable internal queue (buffer) size was implemented in Parallel Consumer version 0.5.2.8 - #682.
|
Beta Was this translation helpful? Give feedback.
Hi @mikhelef,
Configurable internal queue (buffer) size was implemented in Parallel Consumer version 0.5.2.8 - #682.
It is calculated as maxConcurrency * bufferSize * loadFactor.
#682 exposes new options in the ParallelConsumerOptions builder to allow to set load factor min/max values or set fixed value that is closest (above/ceiling) to desired queue size.
initialLoadFactor
- allows to override starting / initial load factor (default 2).maximumLoadFactor
- allows to override maximum load factor that can be reached under load (default 100).messageBufferSize
- sets bothinitialLoadFactor
andmaximumLoadFactor
to a fixed value closest to desired buffer size - calculated asceiling (messag…