Who Holds The Lock
To stop a stampede you add a distributed lock: on a miss, one caller acquires a per-key lock with a 10 second expiry and queries the origin, and the others sleep and retry the cache. The key is read 20,000 times per second and the origin call takes about 900 milliseconds. What is the real weakness of this design?
Sign in to answer questions and track your progress
Sign In