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,779 of 189,104
Downloads: 4,873

Daily

Ranking: 88,565 of 189,083
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,155,797,051bundler
71,267,041,510activesupport
91,221,972,098rake
29946,005,779rspec
36747,347,908activerecord
80529,929,424redis
238195,829,892redis-namespace
17,427102,014formatted-metrics

Owners

#GravatarHandle
1iconbmarini