Categories: None [Edit]

capacitor

https://rubygems.org/gems/capacitor
Instead of making ActiveRecord calls to change a counter field, write them to capacitor. They'll get summarized in a redis hash, with a separate process batch-retrieving and writing to ActiveRecord. Being single-threaded, the writing process avoids row lock collisions, and absorbs traffic spikes by coalescing changes to the same row into one DB write.

Total

Ranking: 129,282 of 187,988
Downloads: 4,818

Daily

Ranking: 78,133 of 187,967
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,048,429,741bundler
71,227,183,868activesupport
101,178,455,784rake
29930,679,140rspec
36726,531,445activerecord
79517,313,542redis
235192,095,465redis-namespace
17,274101,004formatted-metrics

Owners

#GravatarHandle
1iconbmarini