Why does Redis freeze for seconds at a time?
One slow command blocks every client. Find it with SLOWLOG and LATENCY DOCTOR, then replace KEYS with SCAN, split big keys, delete with UNLINK and tame fork pauses.
#caching#performance#troubleshooting
Topic
One slow command blocks every client. Find it with SLOWLOG and LATENCY DOCTOR, then replace KEYS with SCAN, split big keys, delete with UNLINK and tame fork pauses.
#caching#performance#troubleshooting
Memcached is a fast, simple, multi-threaded blob cache; Redis is a data-structure server with persistence and replication. How to choose, and the pitfalls both share.
#caching#performance
What changes at scale: stampede locks, probabilistic early refresh, stale-while-revalidate, hot keys, negative caching, pipelining, timeouts, circuit breakers, warmup, clustering and alerts.
#caching#nosql#performance
Redis and Memcached compared by mechanism: threading, slab vs allocator memory, expiry and eviction, persistence, clustering, meta commands, operations and licensing, with a recommendation.
#caching#internals#nosql
Each Redis cache pattern with code, guarantees and failure modes, then the stale-set race, why delete beats update, versioned writes, outbox and CDC invalidation, and what to use for which data.
#caching#concurrency#nosql
What to cache, string vs hash, key naming, how TTLs and expiry work, maxmemory and every eviction policy, a working cache-aside example, and the commands to measure and secure a Redis cache.
#caching#configuration#nosql
Valkey is the BSD-licensed fork of Redis 7.2. What's compatible, what has diverged since, how to migrate with replication, and when staying on Redis makes more sense.
#caching#configuration#nosql
Writes fail and reads still work. Understand Redis eviction policies, find what's filling memory, and pick the right fix depending on whether Redis is a cache or a datastore.
#caching#configuration#nosql
Put Redis in front of your database the right way — choose a caching pattern, set sane TTLs, and avoid stampedes and stale data.
#caching#nosql#performance