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: 132,974 of 197,085
Downloads: 5,057

Daily

Ranking: 55,182 of 197,066
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,796,160,121bundler
71,443,326,435activesupport
81,428,256,062rake
291,025,379,194rspec
37845,746,438activerecord
83586,869,473redis
257213,031,096redis-namespace
18,286105,204formatted-metrics

Owners

#GravatarHandle
1iconbmarini