@arjay_mccandless: How to add a cache server safely Consistent hashing is a way to distribute data across multiple servers without reshuffling almost everything every time you add or remove one. With a simple hash(key) % servers setup, going from 3 servers to 4 can remap roughly 75% of your keys, causing a huge spike in cache misses and database traffic. With consistent hashing, only a small portion of the keyspace moves to the new server, so the rest of your cache stays hot. #systemdesign #coding #programming

Arjay McCandless
Arjay McCandless
Open In TikTok:
Region: US
Monday 21 September 2026 18:26:33 GMT
43213
3329
24
66

Music

Download

Comments

frankchoco_
Frank :
consistent hashing with virtual nodes in the hash ring
2026-09-21 19:04:55
24
rasqall
rasqall :
advice so good I’m actually gonna download the app
2026-09-21 20:30:03
20
user6609722399958
Betty Nicholson :
Caching for capacity is a reliability anti-pattern.
2026-09-30 18:21:31
1
octaviagazebo
Octavia Gazebo :
I was like nooo it’s gonna have to rebuild all that cache. 🫣
2026-09-21 19:26:47
14
okokrne
myhaands :
thanks man, i got principal from your videos!
2026-09-30 01:47:12
1
r.swanepoel96
Hardt 🇿🇦🇳🇱 :
Wouldn't the cache servers eventually catch back up? So do the swop during quieter-ish hours and hope for the best
2026-09-29 07:42:53
1
ramontanoeiro
Ramon Tanoeiro :
Wow! I had this same problem when solving a challengr where I needed to have a shardedMap, now I can see how this would happen!
2026-09-26 00:17:16
1
jonathansigrist
Jonathan Sigrist :
I've been doing this for a decade and a half. Uh what? 😅
2026-09-21 18:50:27
1
vivalabagget
VivaLaBagget :
mate that's so fecking clever what on earth
2026-09-21 19:46:16
0
mrnebby22
MrNebby22 :
how well does this work in action though? from your example it looks like it only reduces the pressure on 1 or the replicas with the others unchanged. is there a process to space out the servers overtime to have them all be equal?
2026-09-21 22:43:52
1
sallltiktokacc
SSAL :
As someone who's still learning systems your videos have helped a lot bro. Thank you!
2026-09-26 15:26:08
0
pacific.81
name expired, 😂 :
sql Cache servers, are these even necessary when u choose a none row/table locking db?
2026-09-22 06:57:26
0
thelazydeveloper
thelazydeveloper :
Love this
2026-09-22 10:15:38
0
th..ht
thøht :
👏👏👏
2026-09-22 08:07:52
0
To see more videos from user @arjay_mccandless, please go to the Tikwm homepage.

Other Videos


About