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: 130,555 of 192,137
Downloads: 4,933

Daily

Ranking: 59,666 of 192,103
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,342,103,677bundler
71,325,511,824activesupport
81,292,456,495rake
29970,934,436rspec
36778,810,251activerecord
82549,362,367redis
242201,676,183redis-namespace
17,774102,907formatted-metrics

Owners

#GravatarHandle
1iconbmarini