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: 129,339 of 188,294
Downloads: 4,845

Daily

Ranking: 58,073 of 188,277
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,083,534,422bundler
71,240,603,538activesupport
101,189,977,978rake
29935,905,765rspec
36733,355,668activerecord
79520,893,359redis
236193,267,211redis-namespace
17,316101,345formatted-metrics

Owners

#GravatarHandle
1iconbmarini