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: 133,397 of 198,430
Downloads: 5,087

Daily

Ranking: 89,752 of 198,401
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,939,528,074bundler
61,475,993,904activesupport
81,462,600,952rake
291,040,144,401rspec
37866,211,346activerecord
83597,789,647redis
264215,851,438redis-namespace
18,417105,593formatted-metrics

Owners

#GravatarHandle
1iconbmarini