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: 127,104 of 183,127
Downloads: 4,490

Daily

Ranking: 47,329 of 183,106
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,409,222,051bundler
7990,071,846activesupport
10954,475,095rake
25818,160,872rspec
35596,341,077activerecord
72444,087,297redis
215164,791,615redis-namespace
16,37496,910formatted-metrics

Owners

#GravatarHandle
1iconbmarini