#Redis
4 posts
-
Implementing FCFS with Queues: From Redis Sorted Set to Kafka
Implements a first-come-first-served system using Redis Sorted Set waiting queues and Kafka message queues. Covers queue UX (polling vs WebSocket), slot reallocation on timeout/abandonment, and traffic spike absorption strategies.
-
Implementing FCFS with Redis: From DECR to Lua Scripts
Implements a first-come-first-served stock deduction system using Redis DECR atomic operations and Lua scripts. Builds it with Spring Boot + Redisson, directly compares TPS against DB locks under identical conditions (100 stock, 100 concurrent users), and covers Redis-DB consistency and failure recovery strategies.
-
First-Come-First-Served Systems Explained: 6 Implementation Strategies and How to Choose
Breaks down the core challenges of FCFS systems — concurrency, stock deduction, duplicate prevention — and compares 6 implementation strategies from DB locks to Redis, message queues, waiting queues, and token issuance.
-
Spring Boot Practical Guide Part 2: Caching Strategy and Redis
A complete caching guide from Cache-Aside pattern to cache problem resolution, ready to apply in production