Caches, Promises and Locks
Blog post from Redis
Instagram's engineering blog recently discussed the concept of promisifying cached values to prevent cache misses from causing stampedes on underlying DBMS. The idea is to store a dummy value (promise) in the cache, signaling to competing requesters that someone else is preparing the data, prompting them to wait instead of overwhelming the DBMS. This concept is not new and can be achieved using Redis features like key expiration, atomic operations, and Pub/Sub. The author has implemented this approach as Redis MemoLock, which primarily relies on these three Redis features. The implementation includes a simple example in Go language and aims to provide more benefits than typically offered with read/write-through caches.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.