Home / Companies / Redis / Blog / Post Details
Content Deep Dive

Caches, Promises and Locks

Blog post from Redis

Post Details
Company
Date Published
Author
Redis
Word Count
851
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

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.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

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.