🔴

Redis

Redis — Full Architecture & Patterns APPLICATION & CLIENT LAYER ASP.NET Core App StackExchange.Redis Node.js App ioredis / node-redis Connection Pool Multiplexing · Retry Serialization JSON · Protobuf · MessagePack Health Checks ConnectionMultiplexer.IsConnected CACHING PATTERNS Cache-Aside Lazy loading Cache miss → DB → Cache Read-Through Cache loads from DB Transparent to app Write-Through Write to cache + DB Strong consistency Write-Behind Async DB write High throughput Cache Eviction TTL · LRU · LFU allkeys-lru · volatile-ttl Invalidation Manual · Pattern Pub/Sub based REDIS CORE — DATA STRUCTURES & FEATURES Strings GET/SET/INCR Cache · Counters Hashes HGET/HSET Objects · Profiles Lists LPUSH/RPUSH Queues · Stacks Sets SADD/SMEMBERS Uniqueness · Tags Sorted Sets ZADD/ZRANGE Leaderboards · Rates Streams XADD/XREAD Event log · Queues Pub/Sub PUBLISH/SUBSCRIBE Messaging · Broadcast Geospatial GEOADD/GEORADIUS Location · Nearby ADVANCED PATTERNS & INTEGRATION Rate Limiting Token Bucket · Sliding Window Distributed Locks Redlock · SET NX · Redisson Session Store ASP.NET Core Session · JWT Blacklist Persistence RDB · AOF · No persistence Sentinel / Cluster HA · Auto-failover