News for hackers. Stuff that matters.
Re:Caching at Reddit by nodesocket on Wednesday January 18, 2017 @06:35PM (#13431538)
I wonder if switching from memcached to redis would make a bottom line difference in terms of the number of instances needed (cost) and performance?
Re:Caching at Reddit by cookiecaper on Thursday January 19, 2017 @11:10AM (#13436851)
I thought the same thing. I stuck with memcached for quite a while because I didn't see a real reason to switch to redis, but after hitting some repeated annoyances with memcached, I gave redis a try and very happy I did. It's much better. Is memcached even maintained anymore?
Re:Caching at Reddit by sgmansfield on Thursday January 19, 2017 @01:18PM (#13438011)
Yeah it absolutely is. In fact, there's been tons of large improvements as of late, with more coming.
Re:Caching at Reddit by deedubaya on Wednesday January 18, 2017 @07:04PM (#13431717)
Maybe a difference in performance, but caching comes down to bits-to-be-stored. That likely wouldn't change.
Re:Caching at Reddit by cookiecaper on Thursday January 19, 2017 @11:09AM (#13436840)
redis does have some built-in features that automatically compact data. [0] I'm sure reddit has considered this, but worth noting.

[0] https://redis.io/topics/memory-optimization

Re:Caching at Reddit by sgmansfield on Thursday January 19, 2017 @01:20PM (#13438035)
client-side compression works out better for a couple of reasons:

1. You use less bandwidth in/out of the box. This matters in AWS because your bandwidth is (relatively) limited.

2. Your CPU usage to (de)compress is distributed over a larger fleet. The clients spend the CPU time, not the cache servers.

Re:Caching at Reddit by nodesocket on Wednesday January 18, 2017 @07:12PM (#13431763)
Perhaps they are already doing it, but couldn't they use client side compression as well?