Tagged articles

Redis

3508 articles · Page 29 of 36
Programmer DD
Programmer DD
Aug 3, 2020 · Backend Development

How I Cut Search API Latency from 150ms to 32ms in 10 Days

This article recounts a developer's step‑by‑step optimization of a search API—detailing four load‑test rounds, configuration tweaks, batch queries, caching, and code clean‑up—that ultimately reduced average response time from 150 ms to 32 ms, meeting a sub‑100 ms requirement.

API optimizationOpenSearchRedis
0 likes · 7 min read
How I Cut Search API Latency from 150ms to 32ms in 10 Days
Ctrip Technology
Ctrip Technology
Jul 30, 2020 · Backend Development

Design and Implementation of a Distributed Ticket Order Cache System at Ctrip

This article describes how Ctrip's ticket order post‑service team identified scaling bottlenecks, selected Redis, designed a two‑level cache architecture, implemented active and passive caching strategies, tackled consistency and failure issues, and applied various optimizations to achieve over 90% cache hit rate and dramatically reduce database load.

CacheCtripRedis
0 likes · 14 min read
Design and Implementation of a Distributed Ticket Order Cache System at Ctrip
Programmer DD
Programmer DD
Jul 30, 2020 · Databases

Understanding Redis Cluster: Sharding, High Availability, and Hash Slot Mechanics

This article explains Redis Cluster’s automatic sharding, built‑in high availability, the role of the cluster bus ports, the limitations of traditional hash algorithms, and how consistent hashing with virtual nodes and the 16384‑slot hash slot mechanism enable efficient data distribution and low‑cost node scaling.

ClusterHash SlotRedis
0 likes · 3 min read
Understanding Redis Cluster: Sharding, High Availability, and Hash Slot Mechanics
MaGe Linux Operations
MaGe Linux Operations
Jul 29, 2020 · Backend Development

How to Build Safe Distributed Locks with Redis and Redisson

This article explains why simple SETNX/EXPIRE commands can cause deadlocks, shows how to achieve atomic lock operations with Lua scripts or the Redis SET command, and demonstrates how to use the Redisson library for re‑entrant, auto‑renewing distributed locks in Java.

Lua ScriptRedisRedisson
0 likes · 8 min read
How to Build Safe Distributed Locks with Redis and Redisson
Programmer DD
Programmer DD
Jul 28, 2020 · Databases

Designing Scalable Like/Comment Systems: MySQL vs Redis Strategies

This article explores the requirements and database design patterns for implementing likes, comments, and favorites in apps, comparing traditional MySQL schemas with Redis‑based storage and caching solutions, and discusses their trade‑offs, scalability, and data consistency considerations.

MySQLRedisconsistency
0 likes · 8 min read
Designing Scalable Like/Comment Systems: MySQL vs Redis Strategies
dbaplus Community
dbaplus Community
Jul 27, 2020 · Databases

How We Replaced Expensive Redis Clusters with KVROCKS on SSDs

Facing a ten‑fold cost increase for public‑cloud Redis, Ctrip engineers evaluated Redis‑on‑SSD alternatives, chose KVROCKS, performed extensive protocol‑compatible modifications, benchmarked performance on standard and Optane SSDs, and demonstrated substantial cost savings while preserving Redis semantics.

KVROCKSRedisRocksDB
0 likes · 13 min read
How We Replaced Expensive Redis Clusters with KVROCKS on SSDs
Efficient Ops
Efficient Ops
Jul 27, 2020 · Databases

Mastering Redis Persistence: When to Use RDB vs AOF for High Availability

Redis ensures high availability through two persistence mechanisms—RDB snapshots and AOF logs—each with distinct advantages, trade‑offs, and configuration nuances, and this guide explains how they work, when to choose each, and how they impact performance and data safety.

AOFDatabasePersistence
0 likes · 11 min read
Mastering Redis Persistence: When to Use RDB vs AOF for High Availability
Programmer DD
Programmer DD
Jul 26, 2020 · Databases

Mastering Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained

Redis, an in‑memory key‑value store, lets you set a maximum memory limit via configuration files or runtime commands, choose among various eviction strategies such as noeviction, allkeys‑lru, volatile‑lru, and LFU, and understand how approximate LRU works, with Java code examples illustrating these concepts.

LFULRUMemory Management
0 likes · 10 min read
Mastering Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained
Laravel Tech Community
Laravel Tech Community
Jul 22, 2020 · Databases

Integrating Lua Scripts with Redis: Concepts, Benefits, Commands, and Installation Guide

This article provides a comprehensive overview of using Lua scripts with Redis, covering Lua basics, advantages of Lua scripting, detailed Redis‑Lua integration syntax, command usage, return‑type mappings, script management commands, and step‑by‑step instructions for installing Lua and executing example scripts.

DatabaseEvalInstallation
0 likes · 15 min read
Integrating Lua Scripts with Redis: Concepts, Benefits, Commands, and Installation Guide
Java Captain
Java Captain
Jul 20, 2020 · Information Security

Integrating Apache Shiro with Spring Boot: Configuration, Session Management, and Permission Control

This guide demonstrates how to integrate the lightweight Apache Shiro security framework into a Spring Boot application, covering environment setup, Maven dependencies, Redis-backed session and cache configuration, utility classes, core Shiro components, annotation‑based permission control, and Postman testing for token handling and dynamic permission updates.

JavaRedisSpring Boot
0 likes · 21 min read
Integrating Apache Shiro with Spring Boot: Configuration, Session Management, and Permission Control
MaGe Linux Operations
MaGe Linux Operations
Jul 16, 2020 · Databases

Master Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained

This article explains how to configure Redis's maximum memory usage, modify memory limits at runtime, understand the built‑in eviction strategies—including noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, and volatile‑ttl—how to query and set these policies, and the details of LRU and LFU algorithms with Java examples and performance comparisons.

LFULRUMemory Management
0 likes · 10 min read
Master Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained
Ctrip Technology
Ctrip Technology
Jul 16, 2020 · Databases

Design and Implementation of Bidirectional Redis Synchronization Across IDC: Cycle Break, LWW, Vector Clock, Tombstone, GC, and Expire

This article details Ctrip's practical design and implementation of a bidirectional Redis synchronization system across data centers, covering replication loop breaking, conflict resolution with Last Write Wins and Vector Clocks, tombstone handling, garbage collection strategies, and expiration policies to ensure data consistency.

CRDTData ConsistencyGarbage Collection
0 likes · 12 min read
Design and Implementation of Bidirectional Redis Synchronization Across IDC: Cycle Break, LWW, Vector Clock, Tombstone, GC, and Expire
Architecture Digest
Architecture Digest
Jul 16, 2020 · Databases

Redis 6.0 Client‑Side Caching and Tracking Feature Overview

This article explains Redis 6.0’s new client‑side caching feature, detailing the tracking command, its options such as BCAST, PREFIX, OPTIN, OPTOUT, NOLOOP and REDIRECT, and provides step‑by‑step examples using telnet and redis‑cli to demonstrate how invalidation messages are generated and handled.

Client Side CachingRESP3Redis
0 likes · 12 min read
Redis 6.0 Client‑Side Caching and Tracking Feature Overview
Sohu Tech Products
Sohu Tech Products
Jul 15, 2020 · Backend Development

Design and Implementation of a High‑Performance Global Unique ID Generation Algorithm (Mist) and Service (Medis)

This article analyses the limitations of existing global unique ID solutions such as Snowflake, presents the design of a new high‑performance, time‑independent Mist algorithm with extended lifespan, and describes its practical Redis‑backed service Medis, including performance benchmarks and architectural considerations.

Redisdistributed systemsglobal unique ID
0 likes · 14 min read
Design and Implementation of a High‑Performance Global Unique ID Generation Algorithm (Mist) and Service (Medis)
Laravel Tech Community
Laravel Tech Community
Jul 15, 2020 · Databases

Comprehensive Redis Interview Questions and Answers

This article provides a comprehensive overview of Redis, covering its definition, advantages over memcached, supported data types, memory consumption, eviction policies, clustering options, persistence mechanisms, distributed lock implementations, cache penetration and avalanche solutions, and best-use scenarios compared to other caching systems.

CacheClusteringPersistence
0 likes · 26 min read
Comprehensive Redis Interview Questions and Answers
Programmer DD
Programmer DD
Jul 15, 2020 · Databases

Master Redis Expiration: Key Commands That Preserve or Reset TTL

This article explains how Redis handles key expiration, detailing which commands clear or keep TTL, how PERSIST and RENAME affect expiration, the impact of negative or past timestamps, and the lazy and periodic deletion strategies Redis uses to manage expired keys efficiently.

Lazy DeletionRedisTTL
0 likes · 10 min read
Master Redis Expiration: Key Commands That Preserve or Reset TTL
Qunar Tech Salon
Qunar Tech Salon
Jul 14, 2020 · Backend Development

Distributed Lock Mechanisms and Their Redis Implementations

This article explains the concept of distributed locks, compares various implementation approaches such as Memcached, Zookeeper, Chubby, and Redis, and details single‑node and multi‑node Redis lock designs—including SETNX, SET with NX/EX options, Redisson, and the Redlock algorithm—while highlighting their advantages, pitfalls, and best‑practice recommendations.

DatabaseRedisRedlock
0 likes · 14 min read
Distributed Lock Mechanisms and Their Redis Implementations
Top Architect
Top Architect
Jul 13, 2020 · Databases

Understanding Redis Distributed Locks: setnx, Redisson, and RedLock

This article explains the fundamentals and pitfalls of using Redis for distributed locking, covering the setnx command, the SET command with NX and PX options, Lua‑based lock scripts, Redisson’s lock implementations, and the RedLock algorithm, along with practical code examples.

LuaRedisRedisson
0 likes · 12 min read
Understanding Redis Distributed Locks: setnx, Redisson, and RedLock
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 12, 2020 · Backend Development

Distributed ID Generation Techniques Discussed in an Interview with Java Implementations

During a technical interview, the candidate explains various distributed ID generation methods—including database auto‑increment, sharding, batch allocation, UUID, Redis atomic counters, and the Snowflake algorithm—analyzes their pros and cons, and provides Java code examples for Redis‑based and Snowflake ID generators.

JavaRedisdistributed ID
0 likes · 18 min read
Distributed ID Generation Techniques Discussed in an Interview with Java Implementations
Top Architect
Top Architect
Jul 8, 2020 · Information Security

kk-anti-reptile: Spring Boot Anti‑Crawler Component and Integration Guide

The article introduces kk-anti-reptile, a Spring Boot‑based anti‑crawler component that uses servlet filters, Redis, and configurable rule chains (IP and User‑Agent), explains its workflow, shows Maven and property configurations, and provides front‑end Axios interception code for handling 509 responses.

RedisSpring Bootanti‑crawler
0 likes · 6 min read
kk-anti-reptile: Spring Boot Anti‑Crawler Component and Integration Guide
Laravel Tech Community
Laravel Tech Community
Jul 4, 2020 · Databases

Redisson 3.13.2 Released with New Features and Bug Fixes

Redisson version 3.13.2, a Java‑based Redis client with in‑memory data grid capabilities officially recommended by Redis, has been released, introducing sharding support via ShardedRedisson, new CLUSTERDOWN error handling, added configuration methods to RedisNode, and numerous bug fixes covering sentinel handling, cache clearing, SSL reconnection, and more.

Bug FixesDatabase clientIn-Memory Data Grid
0 likes · 2 min read
Redisson 3.13.2 Released with New Features and Bug Fixes
Architecture Digest
Architecture Digest
Jul 4, 2020 · Databases

Understanding Redis Locks: setnx, RedLock, and Redisson

This article explains the fundamentals of Redis locking mechanisms, including the setnx command, the RedLock algorithm, and how the Redisson Java client implements distributed locks with Lua scripts, highlighting pitfalls, best practices, and code examples for safe lock acquisition and release.

JavaLuaRedis
0 likes · 10 min read
Understanding Redis Locks: setnx, RedLock, and Redisson
Programmer DD
Programmer DD
Jul 4, 2020 · R&D Management

Why the Redis Founder Quit: Lessons on Open‑Source Maintenance Burnout

The article recounts Redis creator Salvatore Sanfilippo’s decision to step back from core development, explains his fatigue with open‑source maintenance, outlines the pressures he faced, and discusses how mature projects like Redis can continue thriving after a founder’s departure.

Maintainer burnoutRedisSalvatore Sanfilippo
0 likes · 6 min read
Why the Redis Founder Quit: Lessons on Open‑Source Maintenance Burnout
MaGe Linux Operations
MaGe Linux Operations
Jul 3, 2020 · Databases

Step‑by‑Step Guide to Deploy a Redis Cluster on Linux

This tutorial walks you through compiling Redis from source, configuring six cluster nodes on ports 7000‑7005, adjusting system memory settings, creating startup scripts, launching the services, forming the cluster, verifying its status, and testing basic read/write operations, all with detailed command examples.

ClusterRedis
0 likes · 9 min read
Step‑by‑Step Guide to Deploy a Redis Cluster on Linux
ITPUB
ITPUB
Jul 3, 2020 · Databases

Why Redis’s Founder Is Stepping Down and What It Means for the Database’s Future

The article recounts Salvatore Sanfilippo’s decision to relinquish his role as Redis’s benevolent dictator, outlines the new community‑driven governance model led by Yossi Gottlieb and Oran Agra, and reflects on his personal philosophy about code as artistic self‑expression while highlighting Redis’s continued prominence as a leading NoSQL database.

Community ManagementDatabase GovernanceNoSQL
0 likes · 8 min read
Why Redis’s Founder Is Stepping Down and What It Means for the Database’s Future
JD Retail Technology
JD Retail Technology
Jul 1, 2020 · Backend Development

JdHotkey: A Lightweight Hotkey Detection Framework – Architecture, Workflow, and Performance

The article introduces the JdHotkey framework, a lightweight, real‑time hotkey detection solution for Redis and other services, detailing the risks of hot keys, prior mitigation methods, core design components, operational workflow, and performance benchmarks across various hardware configurations.

HotKeyRedisdistributed systems
0 likes · 16 min read
JdHotkey: A Lightweight Hotkey Detection Framework – Architecture, Workflow, and Performance
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 30, 2020 · Databases

Understanding Redis Eviction Policies: maxmemory, LRU, LFU, and Expiration Strategies

This article explains how Redis handles memory limits with the maxmemory setting, describes the six eviction policies—including noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, and volatile‑ttl—covers the LRU and LFU algorithms, and outlines the three key expiration deletion methods as well as RDB and AOF persistence handling.

LFULRURedis
0 likes · 11 min read
Understanding Redis Eviction Policies: maxmemory, LRU, LFU, and Expiration Strategies
Open Source Tech Hub
Open Source Tech Hub
Jun 25, 2020 · Backend Development

Mastering Redis: Core Data Structures and Practical Commands Explained

This comprehensive guide explores Redis fundamentals, detailing its six primary data structures—strings, lists, hashes, sets, sorted sets, and streams—along with practical command examples, internal implementations, and usage patterns for high‑performance backend development.

CacheData StructuresMessage Queue
0 likes · 17 min read
Mastering Redis: Core Data Structures and Practical Commands Explained
Efficient Ops
Efficient Ops
Jun 25, 2020 · Cloud Native

How Xiaomi Scaled Redis with Kubernetes: Deploying Redis Cluster on K8s

This article explains how Xiaomi migrated tens of thousands of Redis instances from bare‑metal servers to Kubernetes, using Redis Proxy, StatefulSets, and Ceph storage to achieve resource isolation, automated deployment, dynamic scaling, and improved reliability while addressing latency, IP‑change, and security challenges.

AutoscalingCephKubernetes
0 likes · 20 min read
How Xiaomi Scaled Redis with Kubernetes: Deploying Redis Cluster on K8s
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 24, 2020 · Backend Development

Choosing the Right Rate‑Limiting Algorithm: Simple Window, Sliding Window, Leaky Bucket, Token Bucket & Sliding Log

This article explains the purpose of flow control, compares various rate‑limiting algorithms—including simple window, sliding window, leaky bucket, token bucket, and sliding log—provides Java interface definitions and code examples, discusses their complexity, precision, smoothness, and suitability for single‑machine and distributed scenarios, and offers practical deployment tips using Sentinel, Nginx, Guava, Tair, and Redis.

AlgorithmJavaRedis
0 likes · 31 min read
Choosing the Right Rate‑Limiting Algorithm: Simple Window, Sliding Window, Leaky Bucket, Token Bucket & Sliding Log
Top Architect
Top Architect
Jun 22, 2020 · Information Security

Implementing Token-Based Authentication, Anti‑DoS, and Repeat‑Submission Prevention in Spring Boot

This article explains how to design a secure token mechanism with timestamp validation, describes common DoS attack types, and provides practical Spring Boot code examples—including Redis configuration, token generation, interceptor logic, MD5 signing utilities, and ThreadLocal usage—to prevent repeat submissions and protect APIs.

DoS protectionJavaRedis
0 likes · 21 min read
Implementing Token-Based Authentication, Anti‑DoS, and Repeat‑Submission Prevention in Spring Boot
dbaplus Community
dbaplus Community
Jun 18, 2020 · Databases

How a Hybrid Data Warehouse Transformed Banking Data Services

This article details the 2015 hybrid data‑warehouse design implemented at Guangdong Huaxing Bank, explaining its real‑time, historical, and archival layers, the data‑bus concept, and how mixing in‑memory, relational, and Hadoop technologies addressed modern banking data‑volume, latency, and unstructured‑data challenges.

BankingBig DataHadoop
0 likes · 20 min read
How a Hybrid Data Warehouse Transformed Banking Data Services
Beike Product & Technology
Beike Product & Technology
Jun 18, 2020 · Databases

Resolving Duplicate Income Splitting in a Financial System: Transaction Isolation, Spring Propagation, and Redis Lock

This article analyzes a financial system's duplicate income‑splitting bug caused by concurrent transactions, explains how MySQL isolation levels and Spring transaction propagation contributed to dirty reads, and presents two corrective approaches—adjusting transaction propagation and repositioning Redis locks—to ensure reliable data consistency.

DatabaseMySQLRedis
0 likes · 10 min read
Resolving Duplicate Income Splitting in a Financial System: Transaction Isolation, Spring Propagation, and Redis Lock
Laravel Tech Community
Laravel Tech Community
Jun 17, 2020 · Databases

Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Integration, and Tools

This article outlines comprehensive development guidelines for Alibaba Cloud Redis, covering readable and concise key naming, avoiding big keys, proper command selection, safe client usage with connection pools, eviction policies, and practical code examples for deleting large hashes, lists, sets, and sorted sets.

Client IntegrationCommand UsageJava
0 likes · 11 min read
Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Integration, and Tools
Programmer DD
Programmer DD
Jun 14, 2020 · Backend Development

How Distributed Locks Prevent Over‑Allocation in Massive Red‑Packet Systems

This article explains why traditional locks fail in high‑concurrency scenarios like large‑scale red‑packet distribution, and demonstrates how distributed locking mechanisms using Redis and Zookeeper ensure correct total amounts while avoiding deadlocks and thundering‑herd problems.

RedisZookeeperdistributed lock
0 likes · 14 min read
How Distributed Locks Prevent Over‑Allocation in Massive Red‑Packet Systems
Architecture Digest
Architecture Digest
Jun 12, 2020 · Databases

How to Build a Redis Cluster with Docker: Step‑by‑Step Guide

This article provides a comprehensive, step‑by‑step tutorial on creating a Redis Cluster using Docker, covering the preparation of a base Redis image, building node images, configuring cluster settings, assigning hash slots, adding replica nodes for high availability, testing failover, and solving network connectivity issues for production deployments.

ClusterDockerRedis
0 likes · 26 min read
How to Build a Redis Cluster with Docker: Step‑by‑Step Guide
Architect's Tech Stack
Architect's Tech Stack
Jun 11, 2020 · Backend Development

Understanding Redis Distributed Locks: setnx, RedLock, and Redisson

This article explains how Redis can be used for distributed locking, covering the setnx command, the SET command with NX and PX options, common pitfalls, Lua‑based atomic unlock scripts, the Redisson client, and the RedLock algorithm for achieving reliable locks across multiple nodes.

Lua ScriptingRedisRedisson
0 likes · 10 min read
Understanding Redis Distributed Locks: setnx, RedLock, and Redisson
Programmer DD
Programmer DD
Jun 11, 2020 · Backend Development

Mastering Redis Distributed Locks: From SETNX to RedLock and Redisson

This article explores Redis locking mechanisms, explaining the SETNX command, its limitations, the use of PX for timeouts, Lua scripts for atomic unlocks, and introduces Redisson’s advanced lock implementations including RedLock, while highlighting practical pitfalls and best‑practice recommendations for reliable distributed synchronization.

LuaRedisRedisson
0 likes · 11 min read
Mastering Redis Distributed Locks: From SETNX to RedLock and Redisson
Liangxu Linux
Liangxu Linux
Jun 8, 2020 · Operations

How to Install and Configure Supervisor on CentOS 7 for Process Management

This guide walks through installing Supervisor on CentOS 7, configuring its core settings, creating program definitions for Tomcat and Redis, and managing services with supervisord and supervisorctl, providing a reliable solution for automatic process recovery on Linux/Unix systems.

CentOSProcess ManagementRedis
0 likes · 10 min read
How to Install and Configure Supervisor on CentOS 7 for Process Management
Top Architect
Top Architect
Jun 8, 2020 · Databases

Best Practices and Development Guidelines for Using Alibaba Cloud Redis

This article outlines comprehensive development guidelines for Alibaba Cloud Redis, covering key naming conventions, value design, command best practices, client usage patterns, related tools, and detailed code examples for safely deleting large keys across various data structures.

Alibaba CloudCacheJava
0 likes · 12 min read
Best Practices and Development Guidelines for Using Alibaba Cloud Redis
Programmer DD
Programmer DD
May 31, 2020 · Backend Development

Memcached vs Redis: Which In‑Memory Cache Wins for Your Applications?

This article compares Memcached and Redis, covering their installation, shared features such as sub‑millisecond latency and language support, and key differences in data structures, persistence, replication, transactions, pub/sub, geospatial commands, scripting, and memory efficiency to help you choose the right cache solution.

ComparisonInstallationMemcached
0 likes · 9 min read
Memcached vs Redis: Which In‑Memory Cache Wins for Your Applications?
Top Architect
Top Architect
May 29, 2020 · Databases

Redis Scaling Strategies: Partitioning, Master‑Slave Replication, Sentinel, and Cluster

This article explains how to extend Redis beyond single‑node limits by using partitioning, master‑slave replication, Sentinel for automatic failover, and Redis Cluster with hash slots, detailing their usage, advantages, drawbacks, and configuration examples for building high‑availability and scalable in‑memory data stores.

ClusterRedisReplication
0 likes · 11 min read
Redis Scaling Strategies: Partitioning, Master‑Slave Replication, Sentinel, and Cluster
Selected Java Interview Questions
Selected Java Interview Questions
May 28, 2020 · Databases

Comprehensive Overview of Redis: Data Types, Structures, Use Cases, Persistence, Replication, and More

This article provides an in‑depth guide to Redis, covering its core data types, internal data structures, common usage scenarios, differences from Memcached, key expiration, eviction policies, persistence mechanisms, transactions, event handling, replication, Sentinel, sharding, and a practical forum system example.

Data TypesIn-Memory DatabasePersistence
0 likes · 23 min read
Comprehensive Overview of Redis: Data Types, Structures, Use Cases, Persistence, Replication, and More
ITPUB
ITPUB
May 26, 2020 · Databases

Master Redis: Core Data Types, Commands, and Advanced Features Explained

Redis is a high‑performance, open‑source key‑value store offering persistence, rich data structures, replication, pub/sub, transactions, and clustering; this guide explains its fundamentals, data types (string, hash, list, set, sorted set), essential commands, and advanced features such as persistence options, replication, Sentinel, and sharding.

Data StructuresPersistenceRedis
0 likes · 16 min read
Master Redis: Core Data Types, Commands, and Advanced Features Explained
ITFLY8 Architecture Home
ITFLY8 Architecture Home
May 25, 2020 · Databases

Mastering Redis: Expiration Strategies, Memory Management, and Transactions

This guide explores Redis key expiration policies—including active, lazy, and periodic expiration—memory eviction strategies, resource consumption, thread model, and transaction mechanisms, providing practical insights on configuring TTL, optimizing memory usage, and understanding Redis’s single‑threaded architecture for reliable data handling.

Memory ManagementRedisThread Model
0 likes · 12 min read
Mastering Redis: Expiration Strategies, Memory Management, and Transactions
ITFLY8 Architecture Home
ITFLY8 Architecture Home
May 25, 2020 · Databases

Mastering Redis: Why It’s Fast, How It Works, and When to Use It

This comprehensive guide explains Redis’s architecture, performance advantages, data types, common use cases, persistence options, and scaling strategies, helping developers decide when and how to leverage this high‑speed in‑memory database for caching, session management, and more.

Data TypesIn-Memory DatabasePersistence
0 likes · 12 min read
Mastering Redis: Why It’s Fast, How It Works, and When to Use It
Java Captain
Java Captain
May 25, 2020 · Backend Development

Implementing Distributed Locks with Redisson in Spring Boot

This article demonstrates how to integrate Redisson with Spring Boot to create Redis‑based distributed locks, covering Maven dependencies, YAML configuration, a Redisson configuration class, utility methods for locking and unlocking, and a sample controller that simulates concurrent access to verify lock behavior.

JavaRedisRedisson
0 likes · 8 min read
Implementing Distributed Locks with Redisson in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
May 23, 2020 · Databases

Root Causes and Troubleshooting of Redis Timeout Exceptions

This article analyzes why Redis service nodes may experience massive TimeoutException errors, covering external influences such as CPU and memory contention, network resource exhaustion, and internal Redis usage issues like slow queries, persistence overhead, and configuration pitfalls, and provides concrete diagnostic commands and mitigation steps.

DatabasePerformanceRedis
0 likes · 9 min read
Root Causes and Troubleshooting of Redis Timeout Exceptions
Laravel Tech Community
Laravel Tech Community
May 21, 2020 · Databases

When to Use Optimistic vs. Pessimistic Locks in MySQL (and Redis)

This article explains the concepts, advantages, and drawbacks of MySQL pessimistic and optimistic locks, shows how to implement each with SQL and PHP code, compares their suitability for different traffic patterns, and demonstrates a Redis‑based optimistic lock for high‑concurrency flash‑sale scenarios.

MySQLPHPRedis
0 likes · 10 min read
When to Use Optimistic vs. Pessimistic Locks in MySQL (and Redis)
Selected Java Interview Questions
Selected Java Interview Questions
May 21, 2020 · Databases

Redis Memory Limits, Eviction Policies, and LRU/LFU Implementation

This article explains how to configure Redis's maximum memory usage, describes the various eviction strategies including noeviction, allkeys‑lru, volatile‑lru, random and ttl policies, shows how to query and set these policies via configuration files or commands, and provides Java code for a simple LRU cache while discussing Redis's approximate LRU and LFU algorithms.

ConfigurationJavaLFU
0 likes · 15 min read
Redis Memory Limits, Eviction Policies, and LRU/LFU Implementation
Programmer DD
Programmer DD
May 21, 2020 · Backend Development

Designing a Universal Cache for Static Data in Microservices

Static business data in microservice systems, such as vehicle models and user profiles, change rarely yet demand high accuracy and real‑time access; this article proposes a universal caching architecture using a business service, persistent queue, Redis cache, and consistency checks to achieve scalable, reliable reads.

Data ConsistencyQueueRedis
0 likes · 13 min read
Designing a Universal Cache for Static Data in Microservices
Zhengtong Technical Team
Zhengtong Technical Team
May 20, 2020 · Cloud Native

Case Study: Full Cloud Migration of the "Smart Citizen Pass" Mini‑Program Using Kubernetes and Cloud Services

This article details the background, initial ECS‑based deployment, performance bottlenecks during rapid user growth, and the comprehensive cloud‑native migration—including DNS load balancing, managed Kubernetes, CDN acceleration, RDS/Redis replacement, and NAS/OSS storage—resulting in significant scalability and operational improvements for the Smart Citizen Pass mini‑program.

CDNKubernetesPerformance Optimization
0 likes · 15 min read
Case Study: Full Cloud Migration of the "Smart Citizen Pass" Mini‑Program Using Kubernetes and Cloud Services
Selected Java Interview Questions
Selected Java Interview Questions
May 16, 2020 · Big Data

How Reddit Counts Page Views at Scale Using HyperLogLog and Kafka

The article explains Reddit's large‑scale page‑view counting system, detailing its real‑time requirements, the challenges of naive hash‑set storage, and how a hybrid approach using linear probability and HyperLogLog algorithms together with Kafka, Redis, and Cassandra achieves accurate, low‑memory, near‑real‑time analytics.

Big DataHyperLogLogKafka
0 likes · 7 min read
How Reddit Counts Page Views at Scale Using HyperLogLog and Kafka
Laravel Tech Community
Laravel Tech Community
May 13, 2020 · Backend Development

How QR Code Login Works: From Web Page to Mobile Server

This article explains the end‑to‑end implementation of QR‑code login, covering how a web page requests a QR image, how the server stores a UUID in Redis, how a mobile app scans the code and validates the user, and how the browser finally receives a token to complete authentication.

QR LoginRedisWeb Authentication
0 likes · 5 min read
How QR Code Login Works: From Web Page to Mobile Server
Yanxuan Tech Team
Yanxuan Tech Team
May 12, 2020 · Backend Development

Why G1GC Slowed Down During Load Test and How ParallelRefProc Fixed It

During a full‑chain load test, latency spikes were traced to a slow G1GC pause caused by single‑threaded reference processing of many Finalizer objects, which originated from an over‑aggressive Jedis connection pool; enabling the JVM flag -XX:+ParallelRefProcEnabled eliminated the bottleneck and restored performance.

G1GCGC performanceJVM Tuning
0 likes · 8 min read
Why G1GC Slowed Down During Load Test and How ParallelRefProc Fixed It
macrozheng
macrozheng
May 8, 2020 · Backend Development

Build an Efficient ‘Nearby Users’ Feature Using MySQL, Redis, MongoDB & GeoHash

This article explores multiple backend strategies for implementing a location‑based “nearby users” service, covering pure MySQL queries, MySQL combined with GeoHash, Redis Geo commands, and MongoDB geospatial indexes, explaining design principles, pros and cons, and providing complete code examples for each approach.

LBSMongoDBMySQL
0 likes · 20 min read
Build an Efficient ‘Nearby Users’ Feature Using MySQL, Redis, MongoDB & GeoHash
Ctrip Technology
Ctrip Technology
May 7, 2020 · Databases

CTrip's Redis Governance: Architecture, Scaling, and Hybrid Cloud Practices

This article details CTrip's evolution of Redis management—from early single‑instance deployments and custom CRedis client, through automated scaling, containerization with Kubernetes, secondary scheduling algorithms, Intel Optane integration, and hybrid‑cloud deployment—highlighting operational challenges, solutions, and performance outcomes.

KubernetesRediscontainerization
0 likes · 16 min read
CTrip's Redis Governance: Architecture, Scaling, and Hybrid Cloud Practices
Architecture Digest
Architecture Digest
May 6, 2020 · Databases

Redis Cluster Introduction, Installation, and Manual/Automatic Setup Guide

This article provides a comprehensive tutorial on Redis Cluster, covering its architecture, data partitioning and redundancy, step‑by‑step instructions for downloading, compiling, and installing Redis on CentOS, as well as detailed procedures for manually or automatically creating a six‑node cluster with master‑slave replication and slot allocation.

ClusterInstallationRedis
0 likes · 20 min read
Redis Cluster Introduction, Installation, and Manual/Automatic Setup Guide
Open Source Linux
Open Source Linux
May 4, 2020 · Databases

Redis Deep Dive: Core Concepts, Performance, Persistence, and Scaling Strategies

This comprehensive guide explains what Redis is, its advantages and drawbacks, why it excels as a high‑performance cache, the supported data structures, persistence mechanisms, memory eviction policies, threading model, transaction handling, clustering and sharding options, distributed locking, common cache pitfalls, and useful tooling for Java developers.

ClusterIn-Memory DatabasePersistence
0 likes · 45 min read
Redis Deep Dive: Core Concepts, Performance, Persistence, and Scaling Strategies
Programmer DD
Programmer DD
May 3, 2020 · Databases

What’s New in Redis 6.0? Key Features and Improvements Explained

Redis 6.0.0 stable release brings major updates such as redesigned client‑side caching, immediate RDB deletion for replication, enhanced ACL logging, faster PSYNC2 partial resynchronization, decimal timeout support, up to 30% faster RDB loading, and a new STRALGO command for string algorithms.

ACLDatabaseRDB
0 likes · 3 min read
What’s New in Redis 6.0? Key Features and Improvements Explained
Programmer DD
Programmer DD
May 2, 2020 · Backend Development

How to Implement Precise Delays in Java Backend Using Timer and Redis

This article explores various strategies for controlling execution timing in Java backend services, comparing Thread.sleep, Timer, and Redis-based expiration techniques, and provides practical code examples and configuration steps for integrating Redis with Spring Boot to achieve reliable delayed processing.

JavaRedisSpring Boot
0 likes · 10 min read
How to Implement Precise Delays in Java Backend Using Timer and Redis
ITPUB
ITPUB
Apr 30, 2020 · Databases

10 Essential Redis Tips to Boost Performance and Reliability

This guide presents ten practical Redis best‑practice tips—including avoiding KEYS *, using SCAN, analyzing command stats, leveraging hashes, setting expirations, choosing eviction policies, handling errors, scaling with clusters, understanding threading limits, and configuring Sentinel for high availability—to help you run Redis efficiently and safely.

PerformanceRedisbest practices
0 likes · 9 min read
10 Essential Redis Tips to Boost Performance and Reliability
DataFunTalk
DataFunTalk
Apr 29, 2020 · Databases

High Availability Architecture for SQL Server, MySQL, and Redis at Ctrip

This article explains Ctrip's high‑availability designs for SQL Server, MySQL, and Redis, describing multi‑replica strategies, evolution from legacy mirroring to AlwaysOn, multi‑node MHA management, and Redis sentinel‑based failover, while emphasizing fault‑tolerance across data centers.

Database ArchitectureMySQLRedis
0 likes · 12 min read
High Availability Architecture for SQL Server, MySQL, and Redis at Ctrip
Efficient Ops
Efficient Ops
Apr 28, 2020 · Databases

Master Redis: Core Concepts, Commands, and Data Types Explained

This article introduces Redis as an open‑source in‑memory data‑structure store, explains its role as a NoSQL database, covers fundamental data types, common commands, expiration handling, and advanced features like pipelines and transactions, providing a comprehensive guide for developers.

CacheData StructuresIn-Memory Database
0 likes · 15 min read
Master Redis: Core Concepts, Commands, and Data Types Explained