1.4.0
The release introduces an experimental storage_mode
option for the utube
and utubettl
drivers with the memtx
engine. It could be used to create a utube
or utubettl
queue with an additional buffer space that stores only ready to take tasks.
local tube = queue.create_tube('utube_with_ready_buffer', 'utube',
{storage_mode = queue.driver.utube.STORAGE_MODE_READY_BUFFER})
local tube = queue.create_tube('utubettl_with_ready_buffer', 'utubettl',
{storage_mode = queue.driver.utubettl.STORAGE_MODE_READY_BUFFER})
The storage mode slower in general cases, but a much faster in cases when you have utubes with many tasks (see README.md for the performance comparison). So you should make your choice carefully.
Added
- Experimental
storage_mode
option for creating autube
andutubettl
tube (#228). It enables the workaround for slow takes while working with busy tubes.