@krishnachaytanya: one cache key expired. why did the database melt? it's the Thundering Herd: the instant a hot key's TTL ends, every reader misses the cache at the same millisecond and rushes the DB at once — 10,000 reads slam in and it falls over. the cache was supposed to protect the DB, and its expiry is what killed it. the fix is single-flight: ONE reader goes in to recompute the value, everyone else waits for that one result. one query, not ten thousand. the database survives. (also helps: staggered TTLs, background refresh before expiry, a short per-key lock.) #trending#vibecoding #systemdesign #ai #softwarearchitecture

KrishnaChaitanya|SystemDesign
KrishnaChaitanya|SystemDesign
Open In TikTok:
Region: US
Thursday 28 May 2026 13:01:27 GMT
3897
62
0
4

Music

Download

Comments

There are no more comments for this video.
To see more videos from user @krishnachaytanya, please go to the Tikwm homepage.

Other Videos


About