RubyGems Navigation menu

task_batcher 0.1.0

Some tasks, like database inserts, are much more efficient to process in a batch. However, we generally want our tasks to be processed "soon" even if there's only one task. The TaskBatcher gem groups tasks by a taskname parameter, and starts a timer when the first task comes in. After the batch timer expires, it processes all tasks that it received in that time. (The caller provides the block to process the tasks.) Uses EventMachine under the hood. May be combined with Messenger for durability guarantees.

Versions:

  1. 0.1.0 - April 9, 2013 (9 KB)

Runtime Dependencies:

Development Dependencies:

Authors:

  • Jon Snitow

Owners:

1889a4da46d90fd0c271e30b51dc1374

Sha 256 checksum:

6a5d0e1040f6e084add733c429ea17644953d67209755001eb60e9f4e6fba32d

Total downloads 697

For this version 697

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: