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: 131,323 of 193,756
Downloads: 4,971

Daily

Ranking: 110,042 of 193,649
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,494,238,297bundler
71,367,928,484activesupport
81,345,947,699rake
29989,540,006rspec
36801,545,420activerecord
83562,738,866redis
249205,811,623redis-namespace
17,935103,852formatted-metrics

Owners

#GravatarHandle
1iconbmarini