Cheatsheet Redis
// Structured learning part for Cheatsheet Redis covering Status Seri.
This overview is designed to help you choose the right entry point quickly. Follow the full track from lesson one, continue from your last checkpoint, or jump straight into a phase that matches what you need right now.
Curriculum Map
Navigate by phase, then choose the lesson that matches your current depth.
Redis Foundation
22 minMental model awal Redis sebagai cache, data structure server, coordination primitive, rate limiter backend, idempotency store, queue, stream, pub/sub, dan session store.
Redis Architecture Mental Model
25 minRedis server process, event loop, command execution, memory model, persistence, replication, Sentinel, Cluster, Pub/Sub, dan Streams.
Redis Command and Data Structure Basics
18 minKey, value, string, hash, list, set, sorted set, bitmap, bitfield, HyperLogLog, geospatial, stream, TTL, atomic command, command complexity, blocking command, pipelining, transaction, Lua, and data structure selection for enterprise Java/JAX-RS systems.
Key Design and Naming Convention
18 minNamespace, prefix, environment, service, tenant, entity, version, composite key, separator convention, key cardinality, key length, hot key, big key, expiring key, persistent key, scan-safe design, ownership, lifecycle, documentation, and review checklist.
TTL, Expiration, and Eviction
18 minTTL discipline, expiry behavior, active/passive expiration, TTL jitter, no-expiry risk, eviction policy, memory pressure, and production review checklist for Redis in enterprise Java/JAX-RS systems.
Java Client Ecosystem
22 minJedis, Lettuce, Redisson, synchronous/asynchronous/reactive clients, connection pooling, Netty event loop awareness, timeout, reconnect, retry, cluster/sentinel awareness, serialization, metrics, and production review checklist.
Redis with Java/JAX-RS Service Lifecycle
20 minHTTP request to Redis command flow, JAX-RS resource boundary, service layer boundary, Redis client injection, request context, timeout propagation, correlation ID, error mapping, fallback, circuit breaker, bulkhead, cache failure behavior, Redis unavailable/slow scenarios, graceful shutdown, connection cleanup, and production review checklist.
Serialization and Data Compatibility
22 minString serialization, JSON, Jackson/JSON-B integration, binary serialization, Protobuf, Avro awareness, compression, versioned payload, backward/forward compatibility, schema drift, class rename risk, enum evolution, null handling, date/time format, BigDecimal/currency precision, serialization performance, and review checklist.
Cache Fundamentals
21 minCache mental model, cache hit, miss, fill, expiry, invalidation, cache-aside, read-through, write-through, write-behind, refresh-ahead, local cache, distributed cache, multi-level cache, negative cache, stale cache, consistency, correctness, failure modes, observability, and PR review checklist.
Cache-Aside Pattern
19 minCache-aside read, cache miss load, cache fill, TTL, invalidation, race condition, double load, stale read, database update plus cache delete, transaction boundary, PostgreSQL/MyBatis integration, Java/JAX-RS implementation, failure modes, observability, and PR review checklist.
Cache Invalidation
18 minManual, TTL-based, event-driven, Kafka/RabbitMQ-based, write-path invalidation, versioned key, tenant/entity/catalog/rules invalidation, stale data window, invalidation failure modes, Java/JAX-RS implementation, PostgreSQL/MyBatis transaction boundary, observability, and PR review checklist.
Cache Stampede and Thundering Herd
18 minCache stampede, dogpile effect, thundering herd, hot key reload, lock-based protection, single-flight, probabilistic early refresh, TTL jitter, stale-while-revalidate, request coalescing, rate-limited reload, backpressure, fallback to stale, database protection, detection, prevention checklist, and Java/JAX-RS production patterns.
Hot Key and Big Key Management
19 minHot key, big key, wide hash, large list, large set, large sorted set, large stream, network amplification, CPU amplification, memory fragmentation, cluster slot hotspot, key splitting, manual sharding, local cache, approximate data structures, detection, remediation, and production review checklist.
Redis Strings
18 minRedis string values, GET/SET, SET NX/XX/EX/PX, INCR/DECR, MGET/MSET, GETSET/GETDEL awareness, counters, tokens, lock primitive, idempotency primitive, simple cache entry, binary value, size consideration, command performance, and Java/JAX-RS production review checklist.
Redis Hashes
15 minRedis Hash mental model, HGET/HSET, sparse object cache, tenant config, partial update, hash vs JSON string, field TTL limitation, large hash risk, and production review checklist for Java/JAX-RS systems.
Redis Lists
16 minRedis List mental model, LPUSH/RPUSH, LPOP/RPOP, BLPOP/BRPOP, LMOVE/BLMOVE, simple queue, work queue, reliable queue pattern, visibility timeout limitation, trimming, large list risk, and list vs stream decision-making.
Redis Sets
16 minRedis Set mental model, SADD/SREM, SISMEMBER, SMEMBERS risk, SSCAN, SINTER/SUNION/SDIFF, deduplication, membership, permission set, tenant feature set, idempotency set, cardinality, large set risk, and production review checklist.
Redis Sorted Sets
16 minRedis Sorted Set mental model, ZADD/ZREM, ZRANGE, ZRANGEBYSCORE, ZCARD, ZCOUNT, ZPOPMIN/ZPOPMAX, ranking, leaderboard, delayed queue, sliding window rate limiter, time-based index, expiry-like cleanup, large sorted set risk, score precision, and production review checklist.
Redis Bitmaps, Bitfields, HyperLogLog, and Geo
13 minAdvanced Redis data structures for compact boolean tracking, packed counters, approximate cardinality, and geospatial lookup, with enterprise Java/JAX-RS production trade-offs.
Redis Pub/Sub
13 minRedis Pub/Sub mental model, publish/subscribe lifecycle, fire-and-forget delivery, no durability, no replay, subscriber offline behavior, message loss, cache invalidation use case, and comparison with Streams, Kafka, and RabbitMQ.
Redis Keyspace Notification
11 minRedis keyspace and keyevent notifications, expired and evicted event behavior, configuration requirements, Pub/Sub nature, durability limits, expiry caveats, operational risks, and safe enterprise usage.
Redis Streams Foundation
14 minRedis Streams mental model, stream entries, IDs, XADD, XREAD, consumer groups, XREADGROUP, XACK, pending entry list, XPENDING, XCLAIM, XAUTOCLAIM, trimming, retention, and comparison with lists and Kafka.
Redis Streams for Job Queue and Event Stream
17 minRedis Streams as durable queue and event log-lite: worker groups, ack discipline, retry, stale pending claim, poison message handling, DLQ-like stream, trimming, replay, backpressure, ordering, scaling, and production review for Java/JAX-RS systems.
Redis as Job Queue
17 minRedis job queue patterns using Lists, Streams, and Sorted Sets: job message design, workers, delayed jobs, retries, poison jobs, priorities, idempotency, timeout, progress, cancellation, visibility-like patterns, observability, and production review.
Distributed Rate Limiting Foundation
16 minRate limiting mental model for enterprise Java/JAX-RS systems: throttling, quotas, burst control, fixed window, sliding window, sliding log, token bucket, leaky bucket, per-IP/user/tenant/endpoint/global limits, local vs distributed limiters, Redis as backend, and production design checklist.
Redis Rate Limiter Implementations
14 minProduction-oriented Redis rate limiter implementation patterns: INCR+EXPIRE fixed window, Lua atomicity, sliding log with sorted set, sliding window counter, token bucket, leaky bucket, TTL handling, clock source, Retry-After, 429 responses, memory growth, fairness, performance, and PR review checklist.
Distributed Idempotency Foundation
16 minProduction-oriented idempotency mental model for Java/JAX-RS enterprise systems: idempotency key, request fingerprint, response replay, processing/completed/failed/unknown states, TTL, duplicate requests, retries, concurrent submissions, timeout ambiguity, exactly-once illusion, correctness boundary, and PR review checklist.
Redis Idempotency Store
13 minProduction-oriented Redis idempotency store design: SET NX acquisition, processing marker, response cache, state machine, TTL policy, lock + response pattern, concurrent duplicate requests, request hash mismatch, expired keys, Redis/database failure windows, PostgreSQL integration, Kafka/RabbitMQ integration, and PR review checklist.
Distributed Locking Foundation
15 minDistributed lock mental model for enterprise Java/JAX-RS systems: mutual exclusion, lease, lock owner, lock value, expiry, renewal, fencing token, critical section, clock problem, network partition, process pause, GC pause, correctness boundary, and when not to use distributed locks.
Redis Distributed Locking
14 minRedis-specific distributed locking implementation: SET NX PX, unique lock value, safe unlock with Lua, lease expiry, renewal, watchdog, Redisson awareness, Redlock algorithm, Redlock controversy, fencing token requirement, database/external/scheduler locks, failure modes, and PR review checklist.
Coordination Patterns with Redis
16 minSingle-flight, deduplication, distributed semaphore, counter, leader election-lite, global throttle, barrier-like coordination, work claiming, integrity guard, maintenance flag, kill switch, feature flag cache, dan correctness boundary Redis sebagai coordination helper.