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: 132,455 of 196,721
Downloads: 5,042

Daily

Ranking: 58,818 of 196,694
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,728,237,794bundler
71,426,725,582activesupport
81,410,641,125rake
291,017,967,488rspec
37835,846,227activerecord
83581,755,037redis
255211,617,170redis-namespace
18,202105,047formatted-metrics

Owners

#GravatarHandle
1iconbmarini