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,330 of 187,239
Downloads: 4,738

Daily

Ranking: 116,310 of 187,224
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,973,208,875bundler
71,196,180,149activesupport
101,151,901,046rake
27919,404,019rspec
36711,658,717activerecord
79509,510,097redis
232189,612,451redis-namespace
17,163100,363formatted-metrics

Owners

#GravatarHandle
1iconbmarini