Lock-size: reasonable default or required? #182
Labels
auto-configuration
everything about the auto-configuration features
nakadi-submission
persistence
everything around DB access
question
In #153 (solving #112), we introduced the
nakadi-producer.lock-size
configuration property for limiting how many events are loaded into memory at once for sending out.Back then, we left the default at "no limit" to stay compatible with the previous behavior. But having no limit can result in out-of-memory errors in the producing app, as well as overloading Nakadi with too large batches (the latter is a risk mentioned in #181). I see two options here:
Make the configuration option required.
Introduce an arbitrary limit (like 1000)
Any opinion?
The text was updated successfully, but these errors were encountered: