Skip to main content

Redis.

07 posts — Posts about Redis

01

Designing L1 and L2 Caches

A look at the two-tier caching architecture combining a local (L1) cache with a Redis (L2) cache: the access flow, what each tier solves, consistency and capacity control, and common cache update strategies.

02

Redis Distributed Locks

From local locks to distributed locks: implementing locking and safe release with Redis atomic commands, plus lock expiration, WatchDog renewal, consistency risks under master-replica failover, and the trade-offs versus etcd/ZooKeeper.

03

The Redis Threading Model

Redis is often called 'single-threaded,' but that's only half true. From the event loop and IO multiplexing to Redis 6's IO threads—where Redis performance comes from and what the single-threaded model means in practice.

04

Redis GUI Clients Worth Using

Inspecting Redis data from the command line isn't very visual. Here are a few Redis GUI clients I keep coming back to — RDM, AnotherRedisDesktopManager, and QuickRedis — with picks and caveats.

05

Redis Cache Penetration, Breakdown, and Avalanche

Cache penetration, breakdown, and avalanche are the three most common problems with Redis caching. This post explains what causes each one, how they differ, and the corresponding solutions: Bloom filters, caching empty objects, mutex locks, staggered expiration, and two-tier caching.

06

Redis Cache Consistency

A look at why Redis caches drift out of sync with the database, comparing write-through, single delete, and delayed double delete strategies — and their trade-offs under high concurrency.

07

Setting Up Redis Replication, Sentinel, and Cluster

Setup walkthroughs and configuration notes for Redis's three deployment modes — replication, Sentinel, and Cluster — with pros and cons of each, plus the causes of and remedies for data skew.