Categories: None [Edit]

task_batcher

https://rubygems.org/gems/task_batcher
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.

Total

Ranking: 147,531 of 195,789
Downloads: 4,149

Daily

Ranking: 152,870 of 195,762
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
291,006,734,618rspec
161328,119,491eventmachine
55095,397,125mocha

Owners

#GravatarHandle
1iconapartmentlist