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,191 of 197,744
Downloads: 5,067

Daily

Ranking: 41,879 of 197,724
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,863,547,421bundler
61,458,386,728activesupport
81,444,561,272rake
291,032,112,907rspec
37855,219,427activerecord
83591,995,389redis
261214,322,845redis-namespace
18,351105,362formatted-metrics

Owners

#GravatarHandle
1iconbmarini