Tag: Redis
6 posts
-
Redis Internals and Usage: The Event Loop, Encodings, RDB vs AOF, Replication and Cluster
Deep dive into Redis: single-threaded event loop, SDS and skiplist encodings, RDB vs AOF persistence, PSYNC replication backlog, Sentinel, Cluster.
-
Redis Caching Patterns in Node.js: Cache-Aside, Write-Through, Refresh-Ahead and Stampedes
Redis caching in Node.js with working code: cache-aside, write-through, write-behind and refresh-ahead compared, stampede locks, pub/sub invalidation, eviction policy, and what happens when Redis is down.
-
Background Jobs with Bull and Redis: Retries, Priorities, Delays and Cron Jobs
Running background jobs in Node.js with Bull: job processing, retries, priorities, delayed and repeatable jobs, progress events, and building a reliable Redis-backed queue.
-
Caching in C++ Services: A Thread-Safe LRU+TTL Cache, Redis Cache-Aside and Stampede Protection [#50-8]
Caching in a C++ service: an O(1) LRU+TTL cache using splice, sharded locks, hiredis cache-aside with timeouts, single-flight loads and TTL jitter.
-
A Minimal Redis-like Server in Modern C++ [#48-1]
Build an in-memory key-value server with Boost.Asio: single-threaded io_context, async_read_until, GET/SET/DEL, and ops patterns.
-
API Rate Limiting: Fixed Window, Sliding Log and Token Bucket, and Making Them Atomic in Redis
How fixed window, sliding log, and token bucket rate limiters actually behave, how to make them atomic in Redis, and the proxy, clock, and retry pitfalls that break them in production.