Tagged articles

Redis

3563 articles · Page 8 of 36
JD Cloud Developers
JD Cloud Developers
Apr 16, 2025 · Backend Development

Master Spring Cache Annotations: @EnableCaching, @Cacheable, @CachePut, @CacheEvict Explained

This article explains how Spring's caching annotations—@EnableCaching, @Cacheable, @CachePut, and @CacheEvict—work together to simplify cache management, includes Maven dependency setup, configuration class, entity and service code, a full Spring Boot example, test cases, and visual illustrations of cache miss, hit, update, and eviction.

BackendRedisSpring
0 likes · 13 min read
Master Spring Cache Annotations: @EnableCaching, @Cacheable, @CachePut, @CacheEvict Explained
Su San Talks Tech
Su San Talks Tech
Apr 16, 2025 · Backend Development

How to Prevent Product Overselling in High‑Traffic E‑Commerce Systems

This article explains why inventory overselling occurs during massive sales events, analyzes the root causes such as non‑atomic database operations, and presents practical solutions—including optimistic locking, Redis atomic scripts, distributed locks, message‑queue peak shaving, and pre‑deduct strategies—while highlighting common pitfalls and best‑practice combinations for robust e‑commerce back‑ends.

Redisdistributed-lockecommerce
0 likes · 9 min read
How to Prevent Product Overselling in High‑Traffic E‑Commerce Systems
Java Backend Full-Stack
Java Backend Full-Stack
Apr 15, 2025 · Backend Development

How to Retrieve Nearby Charging Station Information Using Redis GEO

This tutorial shows how to obtain a user's current latitude and longitude via an IP API, send the coordinates to a backend service that stores charging stations in Redis GEO, and query stations within a 20‑kilometer radius, with complete front‑end and back‑end code examples.

Charging StationGEOJava
0 likes · 4 min read
How to Retrieve Nearby Charging Station Information Using Redis GEO
Java Captain
Java Captain
Apr 10, 2025 · Backend Development

Design and Implementation of Delayed Task Processing for Order Systems

This article explains various approaches to delayed task handling—such as database polling, JDK DelayQueue, Redis expiration listeners, Redisson delay queues, RocketMQ delayed messages, and RabbitMQ dead‑letter queues—evaluating their advantages, drawbacks, and best‑practice recommendations for reliable order‑expiration workflows.

Message QueueRedisSpring
0 likes · 17 min read
Design and Implementation of Delayed Task Processing for Order Systems
Liangxu Linux
Liangxu Linux
Apr 8, 2025 · Databases

How to Build a High‑Availability Redis Cluster Without Centralized Configuration

This guide explains why Redis clustering is needed for capacity, concurrency and failover, describes Redis 3.0's decentralized cluster architecture, provides step‑by‑step commands to configure, launch and combine six nodes into a cluster, demonstrates slot calculations, client usage with Jedis, and outlines fault recovery, pros and cons, and cleanup procedures.

ClusterDevOpsJedis
0 likes · 24 min read
How to Build a High‑Availability Redis Cluster Without Centralized Configuration
Selected Java Interview Questions
Selected Java Interview Questions
Apr 8, 2025 · Backend Development

Authentication Implementation: Choosing Between JWT and Session in Backend Development

This article explains the technical selection between JWT and session for authentication, compares their differences, advantages, and disadvantages, and provides a complete Java implementation—including token generation, Redis storage, login/logout, password update, and request interception—demonstrating why JWT was chosen for a distributed backend system.

AuthenticationBackendJWT
0 likes · 13 min read
Authentication Implementation: Choosing Between JWT and Session in Backend Development
Su San Talks Tech
Su San Talks Tech
Apr 8, 2025 · Backend Development

Mastering Rate Limiting: Practical Algorithms and Real‑World Cases

This article explains why rate limiting is essential for high‑traffic services, compares four classic algorithms (fixed‑window, sliding‑window, leaky‑bucket, token‑bucket), provides Java and Redis implementations, shares production case studies, highlights common pitfalls, and offers performance‑tuning tips for robust backend systems.

BackendRedisdistributed systems
0 likes · 11 min read
Mastering Rate Limiting: Practical Algorithms and Real‑World Cases
Architect
Architect
Apr 6, 2025 · Information Security

Technical Selection and Implementation of Authentication: JWT vs Session

This article compares JWT and session-based authentication, detailing their differences, certification processes, advantages, disadvantages, security considerations, performance impacts, token renewal, and revocation strategies, and provides a complete Java implementation using Spring, Redis, and custom utility classes.

AuthenticationJWTJava
0 likes · 12 min read
Technical Selection and Implementation of Authentication: JWT vs Session
Ma Wei Says
Ma Wei Says
Apr 5, 2025 · Backend Development

Ensuring Accurate Inventory Deduction in High‑Concurrency Sales with Redis

This article explains why simple GET‑modify‑SET inventory updates cause overselling in flash‑sale spikes and presents several Redis‑based solutions—including Lua scripts, WATCH‑based optimistic locks, distributed SETNX locks, and asynchronous queue processing—detailing their implementation, advantages, and trade‑offs.

BackendInventoryLua script
0 likes · 8 min read
Ensuring Accurate Inventory Deduction in High‑Concurrency Sales with Redis
Selected Java Interview Questions
Selected Java Interview Questions
Apr 4, 2025 · Backend Development

Guide to Using Lock4j Distributed Lock Component in Spring Boot

This article introduces the Lock4j distributed lock library, explains its features, shows how to add Maven dependencies, configure Redis, use the @Lock4j annotation for simple and advanced locking scenarios, and provides custom executor, key builder, and failure‑strategy examples for Spring Boot applications.

Lock4jRedisRedisson
0 likes · 6 min read
Guide to Using Lock4j Distributed Lock Component in Spring Boot
macrozheng
macrozheng
Apr 3, 2025 · Backend Development

Java Backend Interview Secrets: Redis Cache Strategies & Spring Boot Startup

This article compiles essential Java backend interview topics, covering Redis cache pitfalls and solutions, Spring Boot initialization steps, common Spring annotations, MyBatis advantages, Git workflow commands, Java exception hierarchy, Java 8 enhancements, HashMap internals, Docker isolation mechanisms, and Jenkins CI/CD pipelines, providing a comprehensive technical reference for developers.

CI/CDDockerGit
0 likes · 23 min read
Java Backend Interview Secrets: Redis Cache Strategies & Spring Boot Startup
Lobster Programming
Lobster Programming
Apr 3, 2025 · Databases

Why Is Redis So Fast? Deep Dive into Its Architecture and Data Structures

Redis achieves remarkable speed through in‑memory storage, I/O multiplexing, optimized data structures such as SDS strings, linked lists, ziplists, skip‑lists, and hash tables, a single‑threaded event loop, and intelligent data encoding, all of which eliminate disk I/O and reduce overhead.

I/O multiplexingIn-Memory DatabaseRedis
0 likes · 8 min read
Why Is Redis So Fast? Deep Dive into Its Architecture and Data Structures
Top Architecture Tech Stack
Top Architecture Tech Stack
Apr 2, 2025 · Backend Development

Implementing a Dynamic IP Blacklist with Nginx, Lua, and Redis

This article explains how to set up a dynamic IP blacklist using Nginx, Lua scripts, and Redis, covering environment preparation, design options, configuration of nginx.conf, Lua script implementation, and advanced features such as rate limiting, white‑listing, and automated detection to protect servers from malicious traffic.

BackendIP blacklistLua
0 likes · 9 min read
Implementing a Dynamic IP Blacklist with Nginx, Lua, and Redis
Architecture & Thinking
Architecture & Thinking
Apr 2, 2025 · Backend Development

Ensuring Fair Flash Sales in Multi-Active Architectures: Strategies & Code

This article examines the challenges of high‑concurrency flash‑sale scenarios in multi‑active architectures, analyzes fairness issues caused by geographic latency, and presents practical solutions such as data‑sharding and global‑clock ordered queues, complemented by a Redis‑based implementation example.

Multi-ActiveRedisfairness
0 likes · 12 min read
Ensuring Fair Flash Sales in Multi-Active Architectures: Strategies & Code
Selected Java Interview Questions
Selected Java Interview Questions
Mar 30, 2025 · Backend Development

Implementing Precise Order Cancellation: Pitfalls of Redis Expiration and Better Alternatives

The article explains why using Redis expiration or RabbitMQ dead‑letter queues for delayed order‑cancellation tasks is unreliable, compares several approaches such as message‑queue delayed delivery, Redisson delay queues, and time wheels, and recommends robust solutions like RocketMQ or Pulsar for accurate timing.

Message QueueRabbitMQRedis
0 likes · 7 min read
Implementing Precise Order Cancellation: Pitfalls of Redis Expiration and Better Alternatives
Java Backend Full-Stack
Java Backend Full-Stack
Mar 27, 2025 · Databases

Hands‑On Sharding: Implementing Database and Table Partitioning with Spring Boot and Sharding‑JDBC

This article walks through a complete sharding implementation that splits a user table across four MySQL databases and sixteen tables, discusses challenges such as distributed IDs, transactions, data migration and pagination, and provides full Spring Boot, Sharding‑JDBC, Elasticsearch and Redis configurations with code examples.

ElasticsearchMySQLRedis
0 likes · 10 min read
Hands‑On Sharding: Implementing Database and Table Partitioning with Spring Boot and Sharding‑JDBC
ITPUB
ITPUB
Mar 26, 2025 · Cloud Native

How KubeBlocks Enables Scalable, Automated Redis on Kubernetes at Kuaishou

This article details Kuaishou's migration of massive Redis clusters to Kubernetes using the KubeBlocks Operator, covering architecture, multi‑layer management requirements, federated cluster deployment, custom controllers, performance and stability considerations, and the resulting operational benefits.

KubeBlocksKubernetesOperator
0 likes · 15 min read
How KubeBlocks Enables Scalable, Automated Redis on Kubernetes at Kuaishou
Cognitive Technology Team
Cognitive Technology Team
Mar 26, 2025 · Game Development

Designing Scalable Game Leaderboards with Redis: Core Requirements, Data Structures, and Architecture

This article analyzes the essential requirements of massive‑scale game leaderboards, explains how Redis sorted sets and hash tables provide fast ranking and lookup, and presents a multi‑layered architecture—including hot‑key sharding, dynamic partitioning, tiered storage, read/write separation, pipeline batching, and hybrid persistence—to achieve real‑time, billion‑user performance.

LeaderboardPersistenceRedis
0 likes · 5 min read
Designing Scalable Game Leaderboards with Redis: Core Requirements, Data Structures, and Architecture
Sanyou's Java Diary
Sanyou's Java Diary
Mar 24, 2025 · Databases

Boost High‑Concurrency Performance with Redis Batch Query Techniques

This article explores why batch execution in Redis improves command efficiency, simplifies client logic, and enhances transaction performance, and then details four core batch query methods—MGET, HMGET, Pipeline, and Lua scripting—along with practical SpringBoot examples and best‑practice considerations.

Lua scriptMGETRedis
0 likes · 10 min read
Boost High‑Concurrency Performance with Redis Batch Query Techniques
macrozheng
macrozheng
Mar 24, 2025 · Databases

Master Tiny RDM: A Lightweight Cross‑Platform Redis GUI for Developers

This guide introduces Tiny RDM, a modern, lightweight, cross‑platform Redis client with over 10k GitHub stars, details its key features, installation via Docker, usage tips—including theme switching, connection creation, and data operations—and showcases a real‑world e‑commerce project that leverages Redis.

DockerGUIRedis
0 likes · 7 min read
Master Tiny RDM: A Lightweight Cross‑Platform Redis GUI for Developers
The Dominant Programmer
The Dominant Programmer
Mar 22, 2025 · Databases

Common Redis Performance Issues and How to Make Your Cache Fly

This article examines the most frequent Redis performance bottlenecks—including high memory usage, network latency, misconfiguration, poor data‑structure choices, and suboptimal persistence—explains why they occur, and provides concrete optimization techniques, monitoring commands, real‑world case studies, and emerging trends to keep your cache fast and stable.

Data StructuresMonitoringPersistence
0 likes · 8 min read
Common Redis Performance Issues and How to Make Your Cache Fly
The Dominant Programmer
The Dominant Programmer
Mar 22, 2025 · Databases

Master Redis Interview Questions: From Basics to Advanced, Ace Your Interview

This article compiles the most frequently asked Redis interview questions, covering fundamentals, data structures, persistence mechanisms, high‑availability features, clustering, performance tuning, and troubleshooting, providing clear explanations and practical guidance to help candidates confidently tackle any Redis interview.

Data StructuresPersistenceRedis
0 likes · 8 min read
Master Redis Interview Questions: From Basics to Advanced, Ace Your Interview
Bitu Technology
Bitu Technology
Mar 21, 2025 · Backend Development

Optimizing Redis Latency for an Online Feature Store: A Batch Query Case Study

This article describes how Tubi improved the latency of its Redis‑backed online feature store for machine‑learning inference by analyzing query patterns, measuring client‑side bottlenecks, and applying optimizations such as binary Avro encoding, MGET usage, virtual partitioning, and parallel deserialization to meet a sub‑10 ms SLA.

Feature StoreMLOpsRedis
0 likes · 9 min read
Optimizing Redis Latency for an Online Feature Store: A Batch Query Case Study
Java Backend Full-Stack
Java Backend Full-Stack
Mar 21, 2025 · Interview Experience

Only Four Interviews After a Layoff: My Takeaways

After being laid off, the author interviewed only four companies, detailing each interview’s technical questions—from Spring Cloud and MySQL to concurrency and design patterns—and reflecting on the interviewers’ professionalism, the relevance of his skill set, and the importance of matching resumes to job requirements.

JavaMySQLRedis
0 likes · 6 min read
Only Four Interviews After a Layoff: My Takeaways
Zhuanzhuan Tech
Zhuanzhuan Tech
Mar 20, 2025 · Backend Development

Implementing Geolocation‑Based Fraud Detection with Redis GEO Commands

This article outlines a fraud‑detection use case that leverages Redis GEO commands to compare user order addresses with known malicious locations, discusses technology choices among MySQL, Redis, and Elasticsearch, explains Redis’s Sorted‑Set and GeoHash implementation, and provides Java code examples for GEOADD, GEOPOS, GEODIST, and GEORADIUS.

BackendGEOADDGeoHash
0 likes · 9 min read
Implementing Geolocation‑Based Fraud Detection with Redis GEO Commands
Sohu Tech Products
Sohu Tech Products
Mar 19, 2025 · Databases

Redis Vector Search Technology for AI Applications: Implementation and Best Practices

The article explains how Redis vector search, powered by RedisSearch’s FLAT and HNSW algorithms and supporting various data types and precisions, enables fast AI-driven similarity queries for text, image, and audio, and provides implementation guidance, optimization tips, and a real‑world customer‑service use case.

AI applicationsHNSWHybrid Retrieval
0 likes · 17 min read
Redis Vector Search Technology for AI Applications: Implementation and Best Practices
vivo Internet Technology
vivo Internet Technology
Mar 19, 2025 · Operations

Cache Monitoring Practices for Redis and Caffeine in High‑Traffic Game Services

The article details practical monitoring strategies for both remote Redis and local Caffeine caches in high‑traffic game services, including prefix‑based Redis key tracking, Aspect‑oriented instrumentation, Caffeine statistics collection, and real‑world case studies that illustrate how these metrics identify hot‑keys, cache‑miss spikes, and reduce system load.

AspectJCache MonitoringCaffeine
0 likes · 19 min read
Cache Monitoring Practices for Redis and Caffeine in High‑Traffic Game Services
Sanyou's Java Diary
Sanyou's Java Diary
Mar 17, 2025 · Backend Development

Mastering Flash Sale Scalability: Redis, MQ, and Inventory Hint Strategies

This article explores industry‑proven techniques for handling massive flash‑sale traffic, covering pressure‑distribution, Redis + MQ combos, Lua‑based stock deduction, RocketMQ transactional messages, and Alibaba Cloud's Inventory Hint to ensure consistency and performance under extreme concurrency.

High ConcurrencyInventory HintLua script
0 likes · 14 min read
Mastering Flash Sale Scalability: Redis, MQ, and Inventory Hint Strategies
macrozheng
macrozheng
Mar 14, 2025 · Databases

Boost High‑Traffic Services with Redis: Local & Remote Caching Strategies

This article explains how to use Redis as a high‑performance caching layer—covering local and remote caches, support for multiple data structures, expiration and eviction policies, persistence mechanisms like RDB and AOF, a simple TCP protocol, and advanced modules—enabling services to handle tens of thousands of queries per second without overloading MySQL.

Data StructuresPersistenceRedis
0 likes · 10 min read
Boost High‑Traffic Services with Redis: Local & Remote Caching Strategies
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 14, 2025 · Databases

All About Redis Cluster: Architecture, Setup, Operations, and High‑Availability

This article provides a comprehensive guide to Redis Cluster, covering its background, overall architecture, deployment steps, configuration templates, cluster creation commands, basic key‑value operations, high‑availability testing, and how to manually assign master‑slave relationships for robust distributed caching.

ClusterRedisdatabase
0 likes · 14 min read
All About Redis Cluster: Architecture, Setup, Operations, and High‑Availability
Sohu Tech Products
Sohu Tech Products
Mar 12, 2025 · Databases

Understanding Redis Streams: Core Commands and SpringBoot Integration

The article introduces Redis Streams as a Kafka‑like messaging structure, explains its fundamental concepts and seven core commands (XADD, XRANGE, XREAD, XGROUP CREATE, XREADGROUP, XACK, XTRIM), demonstrates integration with Spring Boot, and evaluates its fit for lightweight, low‑backlog queue scenarios.

Consumer GroupRedisRedis Commands
0 likes · 14 min read
Understanding Redis Streams: Core Commands and SpringBoot Integration
Sohu Tech Products
Sohu Tech Products
Mar 5, 2025 · Databases

Redis Persistence Mechanisms: AOF, RDB, and Hybrid Persistence

Redis offers three persistence options—AOF, which logs every write command; RDB, which creates periodic snapshots; and hybrid persistence, which combines both—to balance data safety, recovery speed, file size, and performance, with configurable settings for sync policies, rewrite processes, and compression.

AOFHybrid PersistencePersistence
0 likes · 20 min read
Redis Persistence Mechanisms: AOF, RDB, and Hybrid Persistence
dbaplus Community
dbaplus Community
Mar 4, 2025 · Databases

Why Does Redis Prefer Hash Slots Over Consistent Hashing?

Redis Cluster distributes data using 16,384 hash slots calculated via CRC16, a design that offers flexible slot allocation, simpler data migration, and better performance compared to traditional consistent hashing, and this article explains the slot mechanism, node scaling, client routing, and the reasons behind the 16K slot choice.

CRC16Hash SlotsRedis
0 likes · 9 min read
Why Does Redis Prefer Hash Slots Over Consistent Hashing?
Cognitive Technology Team
Cognitive Technology Team
Mar 1, 2025 · Databases

Async IO Thread in Redis 8.0 M3: Design, Implementation, and Performance Evaluation

The article explains why Redis needs asynchronous IO threading, describes the shortcomings of previous IO‑thread models, details the design of the new async IO thread architecture with event‑notified client queues and thread‑safety mechanisms, and presents performance test results showing up to double the QPS and significantly lower latency.

IO threadsRedisasync IO
0 likes · 15 min read
Async IO Thread in Redis 8.0 M3: Design, Implementation, and Performance Evaluation
Cognitive Technology Team
Cognitive Technology Team
Mar 1, 2025 · Databases

Understanding and Mitigating Redis Large‑Key Issues

The article explains what constitutes a Redis large key, outlines its performance and stability risks, describes common scenarios and root causes, and provides practical detection commands, mitigation techniques such as splitting, compression, proper data modeling, and monitoring strategies to prevent future issues.

Large KeyMemory OptimizationMonitoring
0 likes · 6 min read
Understanding and Mitigating Redis Large‑Key Issues
macrozheng
macrozheng
Feb 28, 2025 · Backend Development

Mastering Two-Level Cache in Spring Boot: Caffeine + Redis Integration

This article explains how to build a two‑level cache architecture using Caffeine as a local cache and Redis as a remote cache in a Spring Boot project, covering manual implementation, Spring cache annotations, and a custom AOP‑based solution while discussing advantages, consistency challenges, and best‑practice code examples.

Cache ManagementCaffeineRedis
0 likes · 20 min read
Mastering Two-Level Cache in Spring Boot: Caffeine + Redis Integration
Cognitive Technology Team
Cognitive Technology Team
Feb 28, 2025 · Databases

Why Redis Is So Fast: An In‑Depth Analysis of Its High‑Performance Design

Redis achieves exceptional speed by storing all data in memory, using a single‑threaded event‑driven architecture with epoll/kqueue, employing efficient I/O multiplexing, optimizing data structures such as strings, hashes and sorted sets, and providing flexible persistence and high‑availability options, all of which are detailed in this article.

CachingIn-MemoryRedis
0 likes · 7 min read
Why Redis Is So Fast: An In‑Depth Analysis of Its High‑Performance Design
Cognitive Technology Team
Cognitive Technology Team
Feb 27, 2025 · Backend Development

High‑Concurrency Seckill Solutions: Redis + MQ, Pressure Distribution, and Inventory Hint Techniques

This article examines common industry practices for handling massive e‑commerce flash‑sale traffic, detailing pressure‑distribution, Redis + MySQL, Redis + MQ, and Alibaba's Inventory Hint approaches, and explains how Lua scripts, transactional MQ messages, and database hints together ensure atomic stock deduction and consistency under extreme load.

Inventory HintMQRedis
0 likes · 13 min read
High‑Concurrency Seckill Solutions: Redis + MQ, Pressure Distribution, and Inventory Hint Techniques
Java Architect Essentials
Java Architect Essentials
Feb 27, 2025 · Backend Development

How to Enforce Login Attempt Limits with Spring Boot, Redis, and Lua Scripts

This article walks through the problem of locking out users after multiple failed login attempts, explains why IP‑based locking with Redis and Lua scripts is effective, and provides a complete Spring Boot implementation—including front‑end HTML, custom annotations, AOP aspect, Redis configuration, and sample controller code—to enforce a configurable login‑attempt limit.

BackendJavaLogin Rate Limiting
0 likes · 18 min read
How to Enforce Login Attempt Limits with Spring Boot, Redis, and Lua Scripts
vivo Internet Technology
vivo Internet Technology
Feb 26, 2025 · Backend Development

Building a Million-User Group Chat System: Server-Side Architecture and Implementation

The article details how to engineer a Web‑based group chat that supports one million members by selecting WebSocket for real‑time communication, using read‑diffusion storage, a three‑layer architecture with Redis routing and Kafka queues, ensuring ordered, reliable delivery via TCP, ACKs and UUID deduplication, calculating unread counts with Redis ZSETs, and handling massive traffic through rate‑limiting, protobuf compression and message chunking.

Distributed ArchitectureIM SystemRedis
0 likes · 21 min read
Building a Million-User Group Chat System: Server-Side Architecture and Implementation
Bilibili Tech
Bilibili Tech
Feb 25, 2025 · Artificial Intelligence

Design and Implementation of a Live Streaming Highlight System with AI Optimization

The paper details a live‑streaming highlight system that integrates heterogeneous data sources, uses a three‑stage pipeline with MySQL/Redis storage, applies sliding‑window interval optimization and AI‑driven title generation, scoring, and segment selection, managed by a shared state‑machine, and outlines future stability and observability improvements.

Data ProcessingHighlight SystemMySQL
0 likes · 22 min read
Design and Implementation of a Live Streaming Highlight System with AI Optimization
macrozheng
macrozheng
Feb 25, 2025 · Databases

Master Redis: 16 Real-World Patterns for Caching, Locks, and More

This guide explores 16 practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tags, filtering, follow models, and ranking—providing code snippets and implementation tips for each pattern.

BitmapsRedisdistributed lock
0 likes · 9 min read
Master Redis: 16 Real-World Patterns for Caching, Locks, and More
MaGe Linux Operations
MaGe Linux Operations
Feb 23, 2025 · Databases

Master Redis Cluster Setup: High Availability, Configuration, and Java Integration

This guide walks through why Redis clustering is needed for high availability, explains the decentralized cluster architecture introduced in Redis 3.0, provides step‑by‑step configuration of multiple redis.conf files, demonstrates creating a six‑node cluster, shows key slot calculations, fault‑tolerance handling, and includes Java Jedis code for connecting to the cluster.

ClusterJava JedisRedis
0 likes · 19 min read
Master Redis Cluster Setup: High Availability, Configuration, and Java Integration
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Feb 21, 2025 · Databases

Why Redis’s In-Memory Architecture Beats Disk: Speed, Events, and Data Structures

Redis stores data directly in memory rather than on disk, leveraging microsecond‑level access, a single‑threaded Reactor event loop with I/O multiplexing, optimized data structures like strings, hashes, lists, sets, and a simple text protocol, all of which combine to deliver exceptionally high performance for high‑frequency read/write workloads.

Data StructuresIn-Memory DatabaseRedis
0 likes · 3 min read
Why Redis’s In-Memory Architecture Beats Disk: Speed, Events, and Data Structures
Sanyou's Java Diary
Sanyou's Java Diary
Feb 20, 2025 · Databases

How Redis Sentinel Ensures Automatic Failover and High Availability

Redis Sentinel provides a robust high‑availability solution by monitoring master‑slave clusters, automatically detecting failures, electing leaders, and performing failover, while using quorum voting, Pub/Sub communication, and configuration provisioning to ensure seamless master promotion and client redirection without manual intervention.

RedisSentineldatabase
0 likes · 16 min read
How Redis Sentinel Ensures Automatic Failover and High Availability
Sohu Tech Products
Sohu Tech Products
Feb 19, 2025 · Backend Development

Using Apache Commons Pool for Object Pooling and Jedis Connection Pool in Java

The article explains how to use Apache Commons Pool to create reusable object pools in Java—showing Maven setup, a custom PooledObjectFactory, pool configuration, borrowing and returning objects, and demonstrates a Redis Jedis connection pool built on the same framework while detailing the pool’s initialization, borrowing, and return mechanisms.

JavaJedisRedis
0 likes · 8 min read
Using Apache Commons Pool for Object Pooling and Jedis Connection Pool in Java
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 19, 2025 · Backend Development

High-Concurrency Flash Sale Solutions: Pressure Distribution, Redis + MQ, and Inventory Hint Techniques

This article examines common industry approaches for handling massive flash‑sale traffic, detailing pressure‑distribution sharding, Redis + MQ integration, the Inventory Hint optimization, and provides concrete Lua script examples and transactional‑message workflows for reliable stock deduction.

Inventory HintLua scriptMessage Queue
0 likes · 12 min read
High-Concurrency Flash Sale Solutions: Pressure Distribution, Redis + MQ, and Inventory Hint Techniques
ITPUB
ITPUB
Feb 14, 2025 · Databases

Why Did Redis Crash at 100% Memory? Deep Dive into Buffer Overflows and Mitigation

An incident where massive key traffic pushed Redis memory usage to 100% revealed that buffer memory, not the dataset itself, exhausted the instance, leading to timeouts and crashes; the analysis explains the root causes, shows detailed INFO MEMORY output, and provides practical mitigation guidelines.

Key DesignRedisbuffer overflow
0 likes · 25 min read
Why Did Redis Crash at 100% Memory? Deep Dive into Buffer Overflows and Mitigation
dbaplus Community
dbaplus Community
Feb 13, 2025 · Databases

Automating Redis Resource Balancing to Cut DBA Effort

To handle growing memory pressure across thousands of Redis servers, the platform implements an automated, daily resource‑balancing scheduler that selects overloaded hosts, chooses optimal nodes based on instance count, tier, and placement rules, then safely migrates them through a multi‑step process with rigorous validation.

RedisResource Balancingautomation
0 likes · 14 min read
Automating Redis Resource Balancing to Cut DBA Effort
macrozheng
macrozheng
Feb 11, 2025 · Backend Development

Unlock Redis Performance: Using Lua Scripts in Spring Boot Applications

This comprehensive guide explains how to integrate Lua scripts with Spring Boot and Redis, covering Lua fundamentals, performance benefits, practical use cases, step‑by‑step implementation in Java, error handling, security considerations, and best practices for optimizing distributed applications.

Lua scriptingRedisSpring Boot
0 likes · 21 min read
Unlock Redis Performance: Using Lua Scripts in Spring Boot Applications
Ma Wei Says
Ma Wei Says
Feb 10, 2025 · Databases

How Redis Handles Expired Keys: Periodic vs Lazy Deletion Strategies

This article explains Redis's two expiration mechanisms—periodic scanning with configurable frequency and lazy deletion on client access—detailing their configurations, execution steps, performance trade‑offs, and replication pitfalls to help developers manage memory efficiently.

Lazy DeletionRedisdatabases
0 likes · 5 min read
How Redis Handles Expired Keys: Periodic vs Lazy Deletion Strategies
Java Captain
Java Captain
Feb 9, 2025 · Backend Development

Using Lua Scripts in Spring Boot with Redis for Performance and Atomic Operations

This article explains how to integrate Lua scripts into Spring Boot applications with Redis, covering Lua fundamentals, advantages of Lua in Redis, practical use cases, step‑by‑step implementation in Spring Boot, performance optimizations, error handling, security considerations, and best practices for reliable backend development.

BackendLuaRedis
0 likes · 23 min read
Using Lua Scripts in Spring Boot with Redis for Performance and Atomic Operations
JD Retail Technology
JD Retail Technology
Feb 7, 2025 · Backend Development

Cache Big‑Key and Hot‑Key Issues: Case Study, Root‑Cause Analysis, and Mitigation Strategies

A promotional event created an oversized Redis cache entry that, combined with cache‑penetration bursts, saturated network bandwidth and caused a service outage, prompting mitigation through Protostuff serialization, gzip compression, request throttling, and enhanced monitoring, while recommending design‑time cache planning and stress testing to prevent future big‑key failures.

BackendBigKeyHotKey
0 likes · 9 min read
Cache Big‑Key and Hot‑Key Issues: Case Study, Root‑Cause Analysis, and Mitigation Strategies
macrozheng
macrozheng
Feb 6, 2025 · Databases

How KeyDB Transforms Redis into a Multi‑Threaded Database

KeyDB, a Redis fork, replaces the single‑threaded architecture with a multi‑threaded model using a main thread and worker I/O threads, SO_REUSEPORT, per‑thread connection management, fastlock spin‑lock mechanisms, and active‑replica support, enabling concurrent data access and improved performance.

KeyDBRedisconnection management
0 likes · 9 min read
How KeyDB Transforms Redis into a Multi‑Threaded Database
Architect
Architect
Feb 4, 2025 · Databases

How to Detect Redis Big Keys in Real Time with Zero Code Changes

This article presents a lightweight, non‑intrusive eBPF‑based method for instantly identifying Redis big‑key operations, explains the underlying kernel and user‑space implementation, provides complete code samples, and evaluates performance before and after optimization.

GoPerformance MonitoringRedis
0 likes · 21 min read
How to Detect Redis Big Keys in Real Time with Zero Code Changes
Lobster Programming
Lobster Programming
Feb 2, 2025 · Backend Development

How to Prevent Redis Cache Avalanche, Breakdown, and Penetration

This article explains the three major Redis cache issues—cache avalanche, cache breakdown, and cache penetration—how they can overload databases, and provides practical solutions such as high‑availability deployment, appropriate key expiration, local caches, mutex locks, empty‑object caching, request validation, and Bloom filters.

Rediscachedatabase
0 likes · 5 min read
How to Prevent Redis Cache Avalanche, Breakdown, and Penetration
MaGe Linux Operations
MaGe Linux Operations
Jan 30, 2025 · Databases

Master Redis Data Types and Commands: Strings, Hashes, Lists, Sets, Sorted Sets

This guide provides a comprehensive overview of Redis data structures—including strings, hashes, lists, sets, and sorted sets—along with essential commands for creating, reading, updating, and deleting keys, managing expirations, and performing set operations, enabling developers to effectively leverage Redis as a high‑performance NoSQL database.

Data TypesNoSQLRedis
0 likes · 31 min read
Master Redis Data Types and Commands: Strings, Hashes, Lists, Sets, Sorted Sets
Code Ape Tech Column
Code Ape Tech Column
Jan 27, 2025 · Backend Development

Comprehensive Guide to Rate Limiting Strategies and Implementations in Microservice Architecture

This article systematically explains the importance of rate limiting in microservice systems, compares various governance frameworks such as Dubbo and Spring Cloud, introduces common algorithms like token‑bucket and leaky‑bucket, and provides detailed implementation examples using Guava, Sentinel, Redis+Lua, and a custom Spring Boot starter.

JavaRedisSentinel
0 likes · 25 min read
Comprehensive Guide to Rate Limiting Strategies and Implementations in Microservice Architecture
Architect
Architect
Jan 26, 2025 · Databases

Optimizing Redis Cluster Slot Migration to Reduce Latency and Improve High Availability

This article analyzes the latency and availability problems of native Redis cluster slot migration, proposes a master‑slave synchronization based redesign that batches slot transfers, reduces ask‑move and topology‑change overhead, and validates the solution with performance tests showing smoother latency and higher reliability.

ClusterRedisSlot Migration
0 likes · 16 min read
Optimizing Redis Cluster Slot Migration to Reduce Latency and Improve High Availability
Java Tech Enthusiast
Java Tech Enthusiast
Jan 24, 2025 · Databases

Why Redis Is Fast: Deep Dive into Performance Principles

Redis achieves remarkable speed by storing data entirely in memory, employing a single‑threaded event loop with I/O multiplexing, and using highly optimized in‑memory data structures while balancing durability through efficient persistence mechanisms, all of which combine to minimize latency and maximize throughput.

Data StructuresI/O multiplexingIn-Memory
0 likes · 6 min read
Why Redis Is Fast: Deep Dive into Performance Principles
Code Ape Tech Column
Code Ape Tech Column
Jan 22, 2025 · Backend Development

Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide

This article introduces Lua scripting in Redis, explains its fundamentals and advantages, and provides step‑by‑step instructions for integrating and executing Lua scripts within a Spring Boot application, including code examples, performance optimization, error handling, security considerations, and best practices.

LuaRedisSpring Boot
0 likes · 19 min read
Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide
JD Cloud Developers
JD Cloud Developers
Jan 22, 2025 · Backend Development

Mastering High-Concurrency Inventory Deduction for Flash Sale Systems

This article explores practical strategies for handling the high‑concurrency inventory deduction problem in flash‑sale scenarios, covering lock‑based approaches, Redis caching, partitioned stock management, asynchronous updates, and distributed scaling techniques to prevent overselling and improve throughput.

High ConcurrencyMySQLRedis
0 likes · 11 min read
Mastering High-Concurrency Inventory Deduction for Flash Sale Systems
JD Cloud Developers
JD Cloud Developers
Jan 20, 2025 · Backend Development

Boosting Inventory Reservation Performance: Strategies for High‑Concurrency Scenarios

This article examines the core challenges of high‑concurrency inventory pre‑reservation, evaluates async throttling, horizontal stock splitting, and Redis‑based write‑shielding, and presents concrete implementations, performance results, thread‑safety techniques, deadlock avoidance, and data‑consistency safeguards for robust backend systems.

BackendInventoryMySQL
0 likes · 11 min read
Boosting Inventory Reservation Performance: Strategies for High‑Concurrency Scenarios
Lobster Programming
Lobster Programming
Jan 20, 2025 · Backend Development

Boost High‑Concurrency Performance: When to Use Redis vs. Local Cache

This article explains why traditional relational databases falter under high‑concurrency loads, introduces caching as a solution, compares Redis distributed caching with local in‑process caching, and shows how combining them into a multi‑level cache can dramatically improve performance and reliability.

CachingRedisdistributed cache
0 likes · 5 min read
Boost High‑Concurrency Performance: When to Use Redis vs. Local Cache
MaGe Linux Operations
MaGe Linux Operations
Jan 17, 2025 · Databases

Understanding Redis Cluster: Architecture, Data Distribution, and Fault Tolerance

Redis Cluster provides a scalable, fault‑tolerant distributed Redis solution, explaining why it’s needed, its architecture, virtual slot partitioning, data distribution methods, limitations, smart client optimization, and automatic failover mechanisms, while highlighting key operational considerations for high‑performance deployments.

ClusterRedisVirtual Slots
0 likes · 11 min read
Understanding Redis Cluster: Architecture, Data Distribution, and Fault Tolerance