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,789 of 192,692
Downloads: 4,952

Daily

Ranking: 186,573 of 192,666
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,389,621,074bundler
71,339,865,813activesupport
81,311,002,349rake
29976,634,844rspec
36786,213,027activerecord
82553,493,672redis
246202,959,517redis-namespace
17,838103,265formatted-metrics

Owners

#GravatarHandle
1iconbmarini