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: 128,780 of 186,959
Downloads: 4,661

Daily

Ranking: 104,717 of 186,713
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,905,736,219bundler
71,168,553,921activesupport
101,128,098,871rake
27909,387,510rspec
36698,039,545activerecord
79502,207,085redis
229187,367,611redis-namespace
17,04299,686formatted-metrics

Owners

#GravatarHandle
1iconbmarini