4 ms·
Redis stores everything in RAM, and RAM is not as cheap as disk. Adding GB's of RAM every week will quickly get rather expensive. But I guess you could dump old
by kijin 15y ago
Redis stores everything in RAM, and RAM is not as cheap as disk. Adding GB's of RAM every week will quickly get rather expensive. But I guess you could dump old data to disk and load it back to Redis only when you need it. It might even compress well, depending on what the metrics track.
- ewb 15y ago"But I guess you could dump old data to disk and load it back to Redis only when you need it." Redis has a mode which does this automatically I believe (and it's the default if I remember correctly).
- Erwin 15y agoIsn't Redis still single-threaded for queries, but saving in the background? That seems a little risky: you've got your 100 million users setting bits in your bitsets and suddenly everything blocks for 10 seconds while old data is being loaded from disk.
- kijin 15y agoThe "virtual memory" feature is now deprecated, I think.