Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

16 min read

Redis Transforms into AI Data Infrastructure: Vector Search, Vector Sets, Semantic Cache & Agent Memory

This article details Redis's evolution into a comprehensive AI data infrastructure, covering its four core capabilities—vector search with hybrid queries, native Vector Sets data type, LangCache semantic caching for 70% LLM cost reduction, and Redis Iris context engine for AI agent memory—with technical implementations, performance benchmarks, and use-case recommendations.

13 min read

Why Spring Cloud Gateway Rate Limiting Fails to Protect Downstream Services

The article analyzes five reasons why Spring Cloud Gateway's Redis-based token bucket rate limiting fails to protect downstream services during traffic bursts, including QPS vs. concurrency confusion, burstCapacity spikes, multi-route quota multiplication, KeyResolver fallback flaws, and Redis bottleneck fail-open behavior, then recommends tightening burst limits, adding downstream concurrency isolation with Sentinel/Resilience4j, and hardening KeyResolver configuration.

9 min read

Design a Universal, Rock‑Solid Risk‑Control System with Redis‑Lua and Kotlin Annotations

This article explains why a custom risk‑control component is needed for AI‑heavy services, outlines the requirement for real‑time adjustable limits, and walks through a Redis‑Lua based implementation of daily, hourly, and combined counters together with a Kotlin @Detect annotation for seamless integration.

31 min read

10GB File Upload: Chunked Concurrency, Resumable & Instant Upload with MinIO + Redis

This article presents a complete solution for uploading 10GB files, covering frontend chunking with WebWorker MD5, concurrent upload control, backend MinIO multipart upload with Redis state tracking, resumable upload, instant upload via hash deduplication, Java NIO zero-copy merging, and interview-focused Q&A with code examples.

29 min read

Reliable Delivery for Billion-Scale LongConn Gateways: Tackling ACK Storms

The article explains why a successful Netty write does not guarantee message delivery, and presents a production‑grade solution for billion‑scale long‑connection gateways that combines application‑level ACKs, timeout‑driven retries, offline compensation, state‑machine design, back‑pressure handling, and observability to prevent ACK storms and retry avalanches.

31 min read

Enterprise MultiAgent Memory: Short-Term Context & Four-Layer Architecture

The article details a four-layer memory system for enterprise MultiAgent platforms, covering short-term memory loading/writing with Redis/MySQL, long-term memory retrieval via MemOS semantic search, token budget allocation, LLM-based memory judgment, deduplication, conflict resolution, and write-before-delete strategies.

15 min read

Microservice Traffic Defense: 5-Layer Rate Limiting & Risk Control for Production Systems

This article details a production-grade five-layer traffic protection architecture for microservices, covering hierarchical rate limiting algorithms, IP and user-level sliding window implementations with Redis Lua scripts, dynamic blacklist mechanisms, interface classification (P0/P1/P2), and a real incident review where crawlers bypassed global limits and were defeated by fine-grained controls.

20 min read

Custom Spring Cloud Gateway Filters for Rate Limiting, Circuit Breaking & Gray Release

This article details the development of custom Spring Cloud Gateway plugins for rate limiting, circuit breaking, and gray release to overcome Sentinel's production limitations, covering architecture design, Redis-based rule storage with pub/sub, token bucket and sliding window algorithms, circuit breaker state machines, tag-based canary routing, and production lessons learned with performance benchmarks.

37 min read

Token Authentication Deep Dive: JWT, OAuth2, SSO & Production Patterns with Code

This comprehensive guide compares Session-Cookie, JWT, OAuth2.0, and SSO authentication schemes, details production-ready dual-token JWT implementation with RS256, Redis blacklist/whitelist, Spring Cloud Gateway filters, and covers concurrency, revocation, and security hardening with code examples and interview insights.

11 min read

Microservice Idempotency: 7 Production Patterns to Eliminate Duplicate Orders & Payments

This article presents seven production-ready idempotency patterns for microservices — frontend debounce, token mechanism, database unique indexes, state machine validation, Redis caching, MQ consumer deduplication, and distributed locks — organized as a layered defense from frontend to database, with code examples and a real duplicate-payment incident analysis.

17 min read

Persisting Spring AI Alibaba Memory to Redis: A Hands‑On Guide

This guide walks through configuring Spring AI Alibaba 1.1.2.0 to persist an agent's short‑term memory in Redis, covering environment setup, core concepts like Checkpointer and StateSerializer, step‑by‑step Maven project creation, code snippets, common pitfalls, and verification of multi‑turn conversation state across sessions.

4 min read

What TPS Levels Define a High‑Performance E‑Commerce Flash Sale?

The article explains how flash‑sale systems differ from regular e‑commerce, outlines characteristic traffic spikes, and defines TPS ranges—100‑1,000, 1,000‑5,000, 5,000‑10,000, and 10,000‑50,000—that indicate low, medium, mature, and ultra‑high concurrency, while noting the architectural techniques needed to sustain tens of thousands of requests.

30 min read

Optimizing Slow Queries, Sharding and Cache Consistency for Appointment System

This article walks through a comprehensive case study of a provincial medical appointment platform, diagnosing slow‑query bottlenecks, proposing patient‑id + create_time composite indexes, designing read‑write separation with replication, selecting patient_id for horizontal sharding, and implementing cache‑aside strategies to ensure consistency while handling cache avalanche, penetration and thundering‑herd scenarios.

18 min read

Building Distributed Rate Limiting with Spring Boot, Redis & Lua: Sliding Window, Token Bucket & Flash Sale Defense

This article details a production-ready distributed rate limiting system using Spring Boot AOP, Redis Sorted Sets, and atomic Lua scripts, covering sliding window and token bucket algorithms, multi-dimensional flash sale protection, and benchmark results showing 100% accuracy with minimal latency overhead.

43 min read

Scalable Enterprise Real‑Time Push with Spring Boot, WebFlux, Kafka & Redis

This guide walks through why traditional polling or WebSocket solutions quickly break at scale, explains the Server‑Sent Events protocol, and presents a production‑grade architecture that combines Spring Boot 3, WebFlux, Kafka, Redis, and Kubernetes to deliver reliable, ordered, and observable one‑way push notifications for millions of concurrent users.

10 min read

Microservice Distributed Locks: Solving Timeout, Mis-deletion, Renewal & Redlock Pitfalls

This article provides a comprehensive guide to distributed locks in microservices, covering why local locks fail, four fatal flaws of basic implementations, advanced manual locks with Lua scripts, watchdog auto-renewal, Redisson production usage, Redlock for high availability, and a real-world seckill overselling case study.

40 min read

From DB Row Locks to Redis + Lua: Evolving Flash‑Sale Inventory Deduction

The article walks through the evolution of a flash‑sale inventory‑deduction system, starting with simple database row‑locking SQL, exposing its scalability limits, and progressively adding transaction trimming, Redis pre‑deduction, Lua atomic scripts, async pipelines, idempotency, reconciliation and robust engineering practices to handle extreme concurrency.

11 min read

From a Naïve Scheduled Task to Scalable Delayed‑Task Solutions for 10M+ Orders

The article dissects a common interview question about automatically canceling unpaid orders, explains why a simple cron job fails at massive scale, and presents three robust designs—Redis expiration, Redis ZSet polling, and MQ/time‑wheel approaches—plus pitfalls and a ready‑to‑use answer template.

28 min read

How to Keep Redis and MySQL Consistent? Update DB First or Delete Cache First?

This article analyzes why cache and database can become inconsistent, compares four basic cache‑update patterns, explains the delayed double‑delete technique, shows how to use MQ for retrying cache deletions, and evaluates Canal binlog subscription as a zero‑intrusion solution for strong eventual consistency.

29 min read

Defending SMS APIs from Abuse: Multi-Layer Protection with Redis+Lua Token Bucket & Bloom Filters

A comprehensive guide to protecting SMS interfaces from malicious flooding, covering emergency response, multi-layer defense (frontend to third-party), business logic optimization, monitoring, and production-ready code for distributed token buckets, Bloom filters, and sliding-window circuit breakers.

28 min read

API Flood Protection: Emergency Mitigation, Multi-Layer Defense & Rate Limiting Algorithms

This article provides a comprehensive guide to handling API abuse, covering emergency mitigation within three minutes, a multi-layer defense architecture, comparison of four rate limiting algorithms, practical implementations using Redis+Lua token bucket, Sentinel, and Guava Bloom filter, cache protection strategies, idempotency design, and a simulated interview scenario with code examples for distributed rate limiting and replay attack prevention.

7 min read

Why Redis Cluster Limits You to DB 0 (and How to Work Around It)

Redis Cluster enforces a single database (DB 0) because its slot‑based sharding model relies on a global 16,384‑slot map, and supporting multiple databases would break slot consistency, migration, and scalability, so developers must use key prefixes, separate instances, or multiple clusters to achieve logical isolation.

38 min read

Defending Against Malicious Traffic Attacks: 5-Layer Architecture, Production Code & Interview Guide

This article provides a comprehensive four-phase strategy (emergency mitigation, root cause analysis, targeted remediation, long-term defense) for handling malicious traffic attacks on PC websites, detailing a five-layer defense architecture (CDN, WAF, Gateway, Service, Data) with production-ready code for Nginx rate limiting, Spring Cloud Gateway + Sentinel, Resilience4j circuit breaking, Redis cache protection, and API signature verification, plus interview-focused technical deep-dives.

13 min read

Redis vs MySQL for Shopping Carts: Why I Chose the Option That Can Lose Data

The article explains that a shopping cart can tolerate loss of recent writes but not accumulated items, outlines the data model with seven fields and a unique key, compares client‑side storage options, details merge strategies for guest and logged‑in carts, and evaluates Redis, MySQL, and hybrid solutions with concrete trade‑offs.

16 min read

Multi-Level Cache Architecture: Caffeine + Redis to Defeat Penetration, Breakthrough & Avalanche

This article details a production-ready multi-level caching architecture using Caffeine local cache and Redis distributed cache, covering read/write flows, consistency strategies via Pub/Sub or MQ, layered defenses against cache penetration, breakthrough, and avalanche, plus real-world pitfalls and a case study showing 75% traffic intercepted locally and 60% Redis CPU reduction.

26 min read

API Idempotency Deep Dive: 5 Patterns, Code & Interview Guide

This comprehensive guide covers five proven idempotency patterns for distributed systems—database unique indexes, token mechanisms, distributed locks, state machines, and deduplication tables—with code implementations, Lua-script atomicity, Spring AOP aspects, optimistic locking, and a simulated interview covering race conditions, clock drift, and hotspot mitigation.

32 min read

How Redis Cluster’s Decentralized Design Powers Billion‑Scale Traffic

When a single Redis instance can no longer hold the data volume or write load of e‑commerce workloads, the traditional master‑slave with Sentinel model reaches its limits, and Redis Cluster—by sharding data across 16,384 slots, using gossip‑based topology, and removing a central control plane—delivers horizontal scaling and fault‑tolerance for billions of requests, provided key design, hash tags, hot‑key mitigation, and client routing are applied.

24 min read

Prevent Duplicate Orders: 4-Layer Idempotency Defense with Redis Tokens, DB Constraints & AOP

This article details a comprehensive four-layer strategy to prevent duplicate order submissions, covering frontend interception, distributed token mechanisms with Redis atomic operations, database unique constraints as ultimate fallback, scheduled reconciliation, and a reusable AOP-based annotation for zero-intrusion idempotency in Spring Boot applications.

48 min read

Redis Sentinel Deep Dive: Leader Election, Failover Mechanics, and Production Best Practices

This article dissects Redis Sentinel’s high‑availability workflow—from failure detection, SDOWN/ODOWN states, and quorum logic to leader election, replica promotion, and configuration propagation—while illustrating each step with a real‑world e‑commerce cache case, detailed configuration snippets, Kubernetes deployment patterns, Spring Boot integration, and operational playbooks for observability and fault‑injection testing.

38 min read

Master‑Slave Replication in Redis: Core Mechanics Explained and Production Deployment

This article provides a comprehensive, production‑focused analysis of Redis master‑slave replication, covering its internal state machine, full and partial sync processes, configuration pitfalls, performance bottlenecks, consistency trade‑offs, and practical deployment patterns with Docker, Kubernetes, and Spring Boot.

8 min read

Cache Strategy Testing: Cost‑Benefit Analysis for Test Engineers

With modern high‑concurrency, low‑latency systems relying on multi‑layer caches like Redis, CDN, and Guava, this article presents a risk‑based, cost‑effective testing framework that quantifies hidden testing costs, prioritizes cache types by impact, and recommends high‑leverage techniques such as protocol validation, expiration edge testing, and production traffic replay.

16 min read

SpringBoot Backend Anti‑Duplicate Submission: Stop “Hand‑Shake” Clicks with Redis‑AOP

This article explains why frontend debouncing cannot fully prevent duplicate form submissions, compares common backend anti‑duplicate strategies, and provides a step‑by‑step guide to implementing a robust, annotation‑driven solution in SpringBoot using Redis distributed locks, AOP, and custom exception handling.

33 min read

Redis Persistence Deep Dive: From a Major P0 Outage to RDB+AOF Hybrid Implementation

The article analyses a real‑world P0 outage caused by treating Redis as a simple cache, explains why persistence is the decisive factor when Redis stores session, inventory or lock data, and provides a step‑by‑step guide to RDB, AOF and hybrid persistence, configuration, monitoring, recovery and best‑practice recommendations.

18 min read

How a Full Redis Connection Pool Triggered a Service Outage: Step‑by‑Step Investigation

An online education platform experienced a cascade failure when Redis reached its maxclients limit, causing authentication, session, and cache services to become unavailable; the article details the connection mechanism, root‑cause analysis, rapid mitigation steps, and long‑term best practices for preventing similar outages.

9 min read

How to Detect a 30‑Day Continuous Sign‑In for 1 B Users with 1 GB Memory

The article breaks down a large‑scale interview question, showing why storing each sign‑in as a database row is infeasible, how a bitmap compresses a year of data to 46 bytes per user, the pitfalls of BITCOUNT, the importance of key dimension design, and the exact Redis commands and local‑scan algorithms—including a five‑step bit‑wise trick—to reliably determine a 30‑day continuous sign‑in.

32 min read

Production API Overload: Emergency Response, Root Cause Analysis & Resilience Patterns

A comprehensive guide to handling production API overload covering emergency mitigation (rate limiting, degradation, circuit breaking), root cause diagnosis via monitoring and tracing, long-term optimizations (caching, async, DB tuning), with practical Java code for Sentinel, Caffeine+Redis, CompletableFuture, and Bloom filters, plus interview-ready troubleshooting frameworks.

7 min read

How to Design a “Cut‑the‑Price” Giveaway Without Going Broke – Interview‑Winning Solution

The article dissects a high‑concurrency “cut‑the‑price” giveaway system, detailing a user‑value‑based pricing algorithm, micro‑unit Redis storage, anti‑fraud device fingerprinting, extreme convergence logic, and unit‑switching tricks, and provides a concise interview answer template.

11 min read

Embedding Sharding Genes in Business IDs for Direct Routing in Sharded Databases

By embedding a shard identifier (“gene”) into the low bits of a business ID generated via Redis INCR or similar sequencers, the article shows how to achieve direct table routing without broadcast queries or extra mapping tables, detailing the algorithm, implementation, integration with Snowflake and Leaf, and common pitfalls.

41 min read

Taming Message Storms: Redis 7.x Engineering Practices for Enterprise Live‑Streaming Platforms

This article dissects why a simple Redis upgrade is insufficient for large‑scale live streaming, then walks through how Redis 7’s Sharded Pub/Sub, Function, and ACL v2 features together eliminate broadcast storms, streamline script governance, and enforce fine‑grained multi‑tenant control, backed by concrete architecture diagrams, production‑grade Java code, capacity planning, monitoring, rollout procedures, and real‑world benchmark results.

7 min read

Mastering Redis High Availability: Replication, Sentinel, and Cluster Explained

The article explains why Redis must be highly available and walks through three progressive architectures—master‑slave replication, Sentinel automatic failover, and Redis Cluster—detailing their mechanisms, advantages, drawbacks, and when to choose each for small, medium, or large‑scale production systems.

6 min read

Why 50,000 Simultaneous Registrations Crashed the System—and How Isolation Prevents It

When an education company faced 50,000 concurrent re‑registration requests, its monolithic internal‑external architecture collapsed, but by physically separating networks, enforcing gateway rate‑limiting and circuit‑breaking, pre‑loading data into Redis, and using one‑way Kafka streams, the system remained stable.

20 min read

Stateless Design at Ten‑Million QPS: Moving State Out of Compute for Elastic Scaling

The article analyzes how local state—such as in‑memory sessions, caches, files, and long‑lived connections—breaks elastic scaling, outlines four concrete paths to externalize that state (Redis, JWT, object storage, and gateway separation), and explains the resulting scalability benefits, trade‑offs, and performance considerations.

29 min read

Redis High Availability: Master-Slave, Sentinel & Cluster Deep Dive with Production Code

This article comprehensively covers Redis high availability architectures — master-slave replication, Sentinel automatic failover, and Redis Cluster sharding — with detailed working principles, pros/cons, comparison tables, production-grade Java code for Jedis and Lettuce clients, hash-tag routing for cross-slot operations, Spring Retry integration, and solutions for split-brain, async replication data loss, failover downtime, data skew, and cluster scaling latency.

8 min read

Redis Officially Launches RedisInsight: A Stunning GUI with Powerful Features

RedisInsight is a visual GUI for Redis that uniquely supports Redis Cluster, offers SSL/TLS connections, memory analysis and an integrated CLI; the article walks through downloading the package, configuring environment variables, starting the service on Linux, deploying it on Kubernetes with a YAML manifest, and using the UI to monitor and operate Redis instances.

18 min read

Dynamic Data Permissions in Spring Boot: Row/Column-Level Control with MyBatis-Plus

This article details a production-ready dynamic data permission system using Spring Boot 3.x and MyBatis-Plus 3.5+, covering row-level interception via JSqlParser, column-level masking with Jackson serialization, RBAC+ABAC hybrid model, two-level caching with Caffeine and Redis, and lessons learned from handling complex JOINs, hot updates, and performance overhead.

19 min read

Is the Classic Update‑DB → Delete‑Cache → TTL Pattern Really the Best Way to Keep Cache Consistent?

The article examines why the common update‑database, delete‑cache, add‑TTL workflow can still produce permanent stale data under high concurrency, explains the underlying race conditions, and compares several alternative strategies—including delete‑first, binlog‑driven invalidation, and lease‑based approaches—to help engineers choose the most reliable and low‑complexity solution for cache consistency.

6 min read

How to Eliminate MySQL Master‑Slave Lag: Parallel Replication, Read‑Routing, and Redis Marking

To address MySQL master‑slave replication lag, the article explains enabling parallel replication (setting slave_parallel_workers), routing reads to the master for latency‑sensitive operations, and using a Redis short‑term marker to direct recent writes to the master, while outlining configuration steps and trade‑offs.

31 min read

MySQL & Redis Dual-Write Consistency: 4 Proven Strategies with Code & Interview Guide

This comprehensive guide analyzes four production-ready strategies for MySQL-Redis dual-write consistency, from basic cache-aside with delayed double-delete to binlog-based CDC, including Spring Boot code examples, concurrency pitfalls, and interview-focused scenario breakdowns.

19 min read

Spring Boot + Spring Session: Distributed Session Management & Multi-Client Sync in Practice

This article provides a production-ready guide to replacing traditional HttpSession with Spring Session backed by Redis, covering multi-client session unification, performance tuning, security hardening, high-availability patterns, and practical Spring Boot 3.x configuration with code examples.

32 min read

Redis Cache Penetration, Breakdown & Avalanche: Java Solutions & Production Lessons

This article analyzes Redis cache penetration, breakdown, and avalanche — three high-concurrency failure modes — detailing root causes, solutions like Bloom filters, logical expiration, and multi-level caching, with production-ready Java code, real incident postmortems, and interview-focused technical comparisons.

7 min read

Secure Redis Upgrade Guide: Deploy Without Root Using a Regular User and Patch Critical Vulnerabilities

Most online Redis tutorials compile and run as root, creating serious security risks, so this guide walks through a complete, non‑root deployment and upgrade process—including backup, source compilation with a private prefix, configuration reuse, environment setup, post‑upgrade hardening, and a one‑click rollback—to safely patch high‑severity vulnerabilities on common Linux distributions.

28 min read

Seckill System Architecture: 7 Core Design Strategies for High-Concurrency Sales

This article presents a comprehensive, step‑by‑step analysis of building a flash‑sale (seckill) system that can survive instant traffic spikes, detailing seven essential design ideas such as static page delivery, token gating, Redis atomic decrement, asynchronous queuing, multi‑layer rate limiting, service isolation, idempotent processing, and end‑to‑end monitoring and recovery.

22 min read

Why Delayed Double Delete Fails: A Hierarchical Java Design for MySQL‑Redis Consistency

The article analyzes why MySQL and Redis cannot guarantee strong consistency with simple cache‑aside patterns, explains the pitfalls of delayed double delete, and presents a tiered Java design—including transaction‑after‑commit deletion, retryable invalidation, CDC/Outbox pipelines, TTL safeguards, and multi‑level cache considerations—to achieve reliable cache consistency.

34 min read

From MySQL to 10M QPS: A Full‑Stack Engineering Blueprint for High‑Throughput Transaction Systems

This white‑paper dissects why a monolithic MySQL‑based order service collapses under peak traffic and presents a layered, asynchronous architecture—using Redis for stock pre‑allocation, RocketMQ for transactional messaging, sharding, idempotency, and comprehensive observability—to reliably handle tens of millions of queries per second.

19 min read

Designing a Hundred‑Million‑Scale Like System: Graph Store + KV Approach

The article analyzes the requirements of a massive‑scale like feature, compares small‑scale MySQL implementations with the graph‑plus‑KV architectures used by ByteDance, Kuaishou and Xiaohongshu, and presents a practical hybrid solution based on Redis, MySQL and batch processing to handle hot content and super‑node challenges.

6 min read

Why Every Project Needs Caching – Master Local and Distributed Cache Basics

The article explains the fundamental purpose of caching—placing frequently accessed data in faster storage—to dramatically reduce database load, compares local memory caches with distributed solutions like Redis, outlines their pros, cons, suitable scenarios, and presents a two‑level cache pattern plus common pitfalls such as cache penetration, breakdown, and avalanche.

7 min read

Designing a 5‑Layer Flash‑Sale System to Handle Millions of Requests

To survive a million concurrent flash‑sale clicks, the article breaks down a production‑grade, five‑layer architecture—CDN, load balancer, API gateway, Redis/Lua stock control, message‑queue order processing, and a state‑machine fallback—that filters traffic early, uses atomic operations, and decouples writes to keep database load to just a few QPS.

37 min read

14 Painful Spring Boot Cache Pitfalls and How to Build a High‑Availability Architecture

This article walks through 14 real‑world failure scenarios of Spring Boot distributed caching, explains why high cache hit rates are misleading, and provides concrete analysis, code samples, and step‑by‑step recommendations for designing a resilient cache layer that isolates faults, handles hot keys, and ensures data consistency across Redis, local caches, and databases.

10 min read

Redis Distributed Lock with Three Checks: Why Small Projects Should Rethink Its Use

The article analyzes Redis distributed locks—its three‑step verification, the limited guarantees it provides, and why small‑to‑medium projects should often prefer database constraints, idempotency keys, or state machines over adding a lock that introduces extra complexity and maintenance overhead.

3 min read

Good Architecture Means Cutting Components, Not Adding More

The article argues that seasoned developers improve system architecture by removing unnecessary components—such as redundant Redis caches or message queues—rather than continuously adding new ones, because each addition raises complexity and maintenance overhead, while simpler designs are easier to manage and evolve.

14 min read

Cutting 50 M‑record Deep Paging from 10 min to 1 s – 600× Faster with ES Search‑After & Redis

This article details how a photo‑contest backend migrated from MySQL to Elasticsearch and, through three rounds of optimization—including multi‑level Redis anchor caching, recent‑anchor positioning, and a large‑interval‑plus‑small‑page‑anchor strategy—reduced arbitrary deep‑page response time from ten minutes to about one second, achieving a 600‑fold speedup while exposing remaining data‑drift challenges.

30 min read

Building a Scalable Smart Tag System for 100k QPS with AI‑Generated Code

The article explains that while many teams focus on model accuracy, the real challenges of an AI‑powered tagging system are write spikes, timeouts, duplicate tagging, cost overruns and state inconsistency, and it proposes a five‑layer architecture, async fallback, governance and validation practices to reliably achieve a 100 k QPS target.

21 min read

How to Distinguish Real Users from Scalper Bots in Flash Sale Systems

The article presents a comprehensive five‑layer risk‑control architecture—covering front‑end behavior verification, device fingerprinting, account profiling, IP network analysis, and backend request sequencing—designed to separate genuine shoppers from scalper scripts during high‑traffic flash‑sale events, using Redis‑based storage and dynamic thresholds to minimize false positives.

35 min read

Building a Billion‑Message, Millisecond‑Scale Private Messaging System with Spring Boot, RabbitMQ & Redis

This article presents a production‑grade design for a social private‑messaging system that handles billions of messages with millisecond latency, detailing how MySQL serves as the message fact store, RabbitMQ provides low‑latency distribution, Redis manages online state and indexes, and Outbox plus idempotent consumption ensure reliability and ordering.

23 min read

Beyond Caching: 10 Advanced Redis Use Cases You’re Probably Missing

This article walks through ten advanced Redis features—including Bloom filters, Redisson distributed locks, delayed queues, token‑bucket rate limiting, bitmaps, HyperLogLog, GEO, Streams, Lua scripts, and RedisJSON—explaining their principles, pros and cons, typical scenarios, and providing complete Spring Boot code examples.

4 min read

How I/O Multiplexing Gives Redis a 10× Performance Boost

Redis achieves its high speed not only because it is an in‑memory, single‑threaded database with efficient data structures, but primarily thanks to I/O multiplexing, which lets a single thread manage tens of thousands of client connections, dramatically cutting thread‑switch overhead and boosting throughput up to tenfold.

12 min read

Building a Real‑Time Recommendation Engine with Flink: A Complete Example Project

The article walks through constructing a full‑stack real‑time recommendation system—from user‑behavior collection via Kafka, through Flink streaming jobs for hot‑list, user and item profiling, to storage in Redis, HBase and Elasticsearch, and finally a React/Ant Design console that visualizes the pipeline and enables debugging.