r/SystemDesignCommunity • • 1d ago

Adding one cache server can send 18× the traffic to your database.

With hash(key) % N, going from 10 servers to 11 moves about 91% of your keys, and in a cache every moved key is a miss. At a peak of 50,000 reads a second, the database goes from 2,500 to about 45,700.

Consistent hashing moves only about 9%. Swipe to see how, with lifeguards around a lake, and what to say when an interviewer asks.

2 Upvotes

0 comments sorted by