Using Memcached CAS for Safe Concurrent Updates
Learn how Memcached’s compare‑and‑swap (CAS) operation enables safe concurrent updates, with a worked telnet example, limits, and practical verification steps.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how Memcached’s compare‑and‑swap (CAS) operation enables safe concurrent updates, with a worked telnet example, limits, and practical verification steps.
LinkedIn’s Venice distributed cache turns heavy graph reads into fast key‑value lookups, slashing database load. This post dissects how the cache fits into the social‑graph stack, shows a concrete example, and weighs the trade‑offs of stale data and invalidation complexity.
When scaling Memcached, the classic modulo hashing approach can cause massive cache misses. Consistent hashing, combined with virtual nodes, keeps most keys on their original servers, preserving hit rates. Learn how to implement it and what trade‑offs to watch for.
FusionCache v2.x implements a stale‑while‑revalidate strategy that returns immediately stale data while an asynchronous refresh runs. The StaleWhileRevalidateDuration controls how long the stale entry remains valid after expiration. When the factory delegate throws during a background refresh, the library logs the error and preserves the stale entry until th