Module: Karafka::Pro::Cleaner
- Defined in:
- lib/karafka/pro/cleaner.rb,
lib/karafka/pro/cleaner/errors.rb,
lib/karafka/pro/cleaner/messages/message.rb,
lib/karafka/pro/cleaner/messages/messages.rb
Overview
Feature that introduces a granular memory management for each message and messages iterator
It allows for better resource allocation by providing an API to clear payload and raw payload from a message after those are no longer needed but before whole messages are freed and removed by Ruby GC.
This can be useful when processing bigger batches or bigger messages one after another and wanting not to have all of the data loaded into memory.
Can yield significant memory savings (up to 80%).
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.post_setup(_config) ⇒ Object
35 36 37 |
# File 'lib/karafka/pro/cleaner.rb', line 35 def post_setup(_config) true end |