TAG
Redis
32 notes
- 1.1 Redishistorical
Redis as an in-memory data-structure server: execution model, data types, memory management, persistence, replication, high availability, clustering, and common system-design uses.
- Redis Installation and Local Setuphistorical
A version-neutral guide to running Redis locally or in containers, with production security and persistence cautions.
- 1.3 Redis Persistencehistorical
Redis RDB snapshots and AOF persistence, fsync trade-offs, background rewrite/snapshot costs, recovery behavior, and what persistence does not guarantee.
- 1.4 Redis Transactionshistorical
MULTI/EXEC queuing, isolated execution, WATCH optimistic concurrency, error behavior, and why Redis transactions are not rollback-based ACID database transactions.
- 1.5 Redis Pipelininghistorical
How Redis pipelining amortizes network round trips, how it differs from transactions and scripting, and why large pipelines must be bounded for memory/backpressure.
- 1.6 Redis Pub/Subhistorical
Redis fire-and-forget publish/subscribe semantics, pattern subscriptions, delivery limitations, and when Streams or a dedicated message broker are more appropriate.
- 1.7 Redis Lua Scriptinghistorical
Atomic server-side Redis scripting with EVAL/EVALSHA, KEYS/ARGV, script-cache behavior, cluster constraints, bounded execution, and when to prefer Redis Functions.
- Analyzing Redis Traffic with Wiresharkhistorical
Using packet capture to inspect Redis TCP/RESP behavior in safe test environments, with TLS and credential/privacy cautions.
- Redis Client Connectionshistorical
How Redis accepts and serves many TCP clients, connection limits, buffers, timeouts, backpressure, and why client-pool sizing matters.
- Redis Process Signalshistorical
Operational signal handling in Redis: graceful shutdown/reload-related behavior and why service managers and current Redis documentation should define production procedures.
- Redis Benchmarkinghistorical
How to benchmark Redis without confusing synthetic command throughput with application capacity, including concurrency, payloads, pipelines, latency percentiles, and hot-key effects.
- Managed / Cloud Redishistorical
How managed Redis changes responsibility for topology, failover, backups, networking, scaling, observability, and compatibility without changing Redis's core consistency limits.
- 2.1 Redis Bloom Filtershistorical
Bloom-filter semantics, false positives, Redis bitmap implementations, scaling, and RedisBloom/module alternatives.
- 2.2 Redis Rate Limitinghistorical
Rate limiting with Redis counters, fixed/sliding windows, token buckets, Lua atomicity, clock/expiry considerations, and production design trade-offs.
- 2.3 Redis Data Structureshistorical
Stable Redis data-type semantics and use cases, with version-sensitive internal encodings separated from the public model.
- 2.4 Redis as an Asynchronous Queuehistorical
Lists, blocking pops, Pub/Sub, sorted-set delayed queues, Redis Streams, and when a dedicated message broker is the better choice.
- 2.5 Redis Distributed Lockshistorical
Lease-based locking with SET NX PX, ownership tokens, atomic release, renewal, failure windows, fencing tokens, and the limits of Redis replication/Redlock.
- 2.6 Redis Key Designhistorical
Practical Redis key naming, schema modeling, indexing, cardinality, hashes vs. strings, TTL boundaries, cluster hash tags, and why key scans should not become a query engine.
- Redis Command Guidehistorical
A compact guide to Redis command families and production-safe usage principles instead of a version-frozen command dump.
- 3.1 Redis Execution and Threading Modelhistorical
Redis event-driven command execution, I/O multiplexing, threaded network I/O, background work, and why the phrase 'Redis is single-threaded' needs qualification.
- 3.2 Redis Concurrency Raceshistorical
Why individually atomic Redis commands do not make multi-command application workflows atomic, and how INCR, WATCH, Lua/Functions, locks, and database constraints solve different races.
- 3.3 Redis Slow Loghistorical
What Redis Slow Log measures, what it omits, how to configure and inspect it, and how to correlate slow commands with end-to-end latency.
- 3.4 Redis Latency and Blockinghistorical
A production-oriented guide to Redis stalls caused by slow commands, big keys, CPU saturation, persistence/fork, memory pressure, swap, networking, and client backpressure.
- 3.5 Redis Big Keyshistorical
Why oversized Redis values or collections cause latency, bandwidth, memory, replication, deletion, and cluster-balance problems, plus safe detection and mitigation.
- 3.6 Redis Hot Keyshistorical
How one disproportionately popular key overloads a Redis shard, how to detect it, and strategies such as local caches, replica reads, key replication, request coalescing, and data-model changes.
- 4.1 Redis Clusterhistorical
Redis Cluster sharding with 16,384 hash slots, client redirection, hash tags, resharding, replica failover, and its consistency and multi-key constraints.
- 4.2 Redis Sentinelhistorical
Redis Sentinel monitoring and failover for primary-replica deployments, including subjective/objective down states, quorum, failover authorization, promotion, and remaining consistency limits.
- 4.3 Redis Replicationhistorical
Redis primary-replica replication, full and partial synchronization, replication backlog, stale replica reads, and asynchronous failure semantics.
- 5.1 Redis Key Expirationhistorical
TTL semantics and Redis's combined passive and active expiration strategy, without depending on historical sampling constants.
- 5.2 Redis Memory Managementhistorical
How Redis memory is consumed, why RSS differs from logical dataset memory, fragmentation and allocator effects, maxmemory, expiry, eviction, and practical observability.
- 5.3 Redis Eviction Policieshistorical
Redis maxmemory eviction policies including noeviction, LRU, LFU, random, TTL-focused policies, and how to choose among allkeys and volatile variants.
- 5.4 Redis Memory Optimizationhistorical
Modern Redis memory optimization through schema design, bounded cardinality, compact encodings, payload reduction, TTL/eviction, allocator observation, and instance sizing.