Tagged articles
3240 articles
Page 27 of 33
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.

ExpirationMemory ManagementThread 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.

Spring Bootdistributed-lockjava
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.

TimeoutExceptiondatabaseperformance
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.

PHPconcurrencymysql
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.

ConfigurationLFULRU
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 ConsistencyQueuecaching
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.

CDNKubernetesRDS
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.

MobileQR loginToken
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.

GC performanceJedisParallelRefProc
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.

GeoHashLBSMongoDB
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.

Database operationsKubernetescontainerization
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.

ClusterInstallationLinux
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.

ACLRDBReplication
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.

Spring Bootdelayjava
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.

best practicesdatabaseshigh availability
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 ArchitectureSQL Serverhigh availability
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
dbaplus Community
dbaplus Community
Apr 27, 2020 · Backend Development

Why Your Redis Distributed Lock May Fail and How to Fix It

This article examines common failure scenarios of Redis‑based distributed locks, compares a simple lock implementation with the Redlock algorithm, and provides practical solutions for single‑point failures, lock expiration issues, clock drift, and high‑concurrency pitfalls.

Lock PitfallsRedlockconcurrency
0 likes · 18 min read
Why Your Redis Distributed Lock May Fail and How to Fix It
Laravel Tech Community
Laravel Tech Community
Apr 26, 2020 · Backend Development

Master Laravel: 7 Essential Tips for Clean Code and Efficient Performance

This article walks through seven practical Laravel techniques—including view composers for reusable sidebars, route naming for maintainable URLs, dynamic key‑value settings, concise database query shortcuts, polymorphic relationships, caching best practices, and separating Redis connections—to help developers write cleaner, more scalable backend code.

LaravelPolymorphic RelationsRoute Alias
0 likes · 11 min read
Master Laravel: 7 Essential Tips for Clean Code and Efficient Performance
macrozheng
macrozheng
Apr 22, 2020 · Databases

13 Proven Techniques to Supercharge Redis Performance

Learn how to dramatically boost Redis speed by shortening key/value sizes, enabling lazy free, setting expirations, disabling costly commands, using slowlog, pipelines, avoiding mass expirations, optimizing clients, limiting memory, running on physical servers, tweaking persistence, disabling THP, and adopting distributed architectures.

Lazy FreeMemory ManagementPipeline
0 likes · 19 min read
13 Proven Techniques to Supercharge Redis Performance
Code Ape Tech Column
Code Ape Tech Column
Apr 20, 2020 · Databases

Understanding Redis Persistence: RDB vs AOF and Performance Tips

This article explains how Redis implements two persistence mechanisms—RDB snapshots and AOF logs—covering their triggers, execution flows, advantages, drawbacks, differences, restart recovery procedures, and practical ways to mitigate performance overhead caused by fork operations.

AOFPersistenceRDB
0 likes · 14 min read
Understanding Redis Persistence: RDB vs AOF and Performance Tips
NetEase Smart Enterprise Tech+
NetEase Smart Enterprise Tech+
Apr 20, 2020 · Backend Development

How Camellia-Redis-Proxy Boosts Redis Cluster Performance and Simplifies Migration

This article explains the design of Redis Cluster, the challenges of migrating clients, and how the Camellia-Redis-Proxy middleware—built with Netty—provides transparent proxying, sharding, dual‑write, plugin support, and performance optimizations such as multithreading, async I/O, pipelining, and robust error handling.

Redis Clusterjavaredis
0 likes · 11 min read
How Camellia-Redis-Proxy Boosts Redis Cluster Performance and Simplifies Migration
Top Architect
Top Architect
Apr 14, 2020 · Databases

Designing a High‑Availability Redis Service with Sentinel

This article explains how to build a highly available Redis service by analyzing failure scenarios, comparing single‑instance, master‑slave with one or multiple Sentinel processes, and finally presenting a three‑Sentinel architecture that ensures continuous service despite node or network outages.

architecturefailoverhigh availability
0 likes · 11 min read
Designing a High‑Availability Redis Service with Sentinel
Architecture Digest
Architecture Digest
Apr 12, 2020 · Backend Development

Implementing Distributed Locks with Redisson

This article explains the principles, design considerations, and code implementation of Redisson's distributed lock, covering mutual exclusion, deadlock prevention, performance, reentrancy, watchdog auto‑extension, Lua scripting, and potential pitfalls in Redis sentinel setups.

Watchdogjavaredis
0 likes · 8 min read
Implementing Distributed Locks with Redisson
Java Backend Technology
Java Backend Technology
Apr 11, 2020 · Backend Development

How to Achieve Automatic API Idempotency with Spring Boot, Redis, and Interceptors

This article explains how to implement automatic API idempotency in Spring Boot using Redis for token storage, custom annotations, and interceptor configuration, covering token generation, validation, Redis service utilities, and testing with Postman to prevent duplicate operations and ensure data consistency.

IdempotencyInterceptorSpring Boot
0 likes · 12 min read
How to Achieve Automatic API Idempotency with Spring Boot, Redis, and Interceptors
Wukong Talks Architecture
Wukong Talks Architecture
Apr 8, 2020 · Databases

How to Install and Configure Redis Using Docker

This tutorial walks through pulling the Redis Docker image, creating configuration files, running the container, connecting with redis-cli, testing commands, enabling persistence, and installing a visual management tool, providing complete step‑by‑step instructions for Docker‑based Redis deployment.

ConfigurationDockerInstallation
0 likes · 4 min read
How to Install and Configure Redis Using Docker
Senior Brother's Insights
Senior Brother's Insights
Mar 31, 2020 · Databases

Boost Redis Performance: 13 Proven Optimization Techniques

Learn how to dramatically improve Redis performance by shortening key-value sizes, enabling lazy free, setting expirations, disabling costly commands, using slowlog, leveraging pipeline, preventing mass expirations, optimizing client connections, limiting memory, running on physical servers, configuring persistence, disabling THP, and adopting distributed architectures.

Database TuningLazy FreeMemory Management
0 likes · 18 min read
Boost Redis Performance: 13 Proven Optimization Techniques
Programmer DD
Programmer DD
Mar 31, 2020 · Databases

Boost Redis Performance: Practical Optimization Techniques

This article explains why Redis performance matters for high‑traffic services and provides a comprehensive set of practical optimizations—including network latency reduction, command pipelining, avoiding slow commands, tuning persistence, OS/hardware settings, and scaling with sharding—to help you keep Redis fast and reliable.

Network LatencyPersistenceoptimization
0 likes · 17 min read
Boost Redis Performance: Practical Optimization Techniques
macrozheng
macrozheng
Mar 30, 2020 · Databases

Build a Redis Cluster with Docker Compose and Use It in SpringBoot

This guide walks you through setting up a six-node Redis cluster using Docker Compose, configuring the necessary redis.conf settings, deploying the containers, initializing the cluster, and then integrating the cluster into a SpringBoot application via appropriate application.yml configurations and connection commands.

DockerDocker ComposeRedis Cluster
0 likes · 8 min read
Build a Redis Cluster with Docker Compose and Use It in SpringBoot
Java Backend Technology
Java Backend Technology
Mar 28, 2020 · Backend Development

How Bloom Filters Eliminate Cache Penetration and Boost Backend Performance

This article explains why cache penetration occurs in high‑dimensional data scenarios, introduces Bloom Filters as a solution, outlines suitable use cases such as database lookups, cache outages, web request filtering, malicious URL detection and Bitcoin sync, and details practical Redis‑based implementations, advantages, drawbacks, and advanced counting filter techniques.

Data Structuresbloom-filtercache-penetration
0 likes · 13 min read
How Bloom Filters Eliminate Cache Penetration and Boost Backend Performance
Architecture Digest
Architecture Digest
Mar 27, 2020 · Databases

Understanding Redis Memory Model: Objects, Allocation, and Internal Encoding

This article explains Redis's memory model by describing how to query memory usage, the roles of used_memory, used_memory_rss, mem_fragmentation_ratio, and mem_allocator, and then dives into the internal structures such as redisObject, SDS, jemalloc, and the encoding strategies for strings, lists, hashes, sets, and sorted sets.

Data StructuresMemory ManagementSDS
0 likes · 28 min read
Understanding Redis Memory Model: Objects, Allocation, and Internal Encoding
Ops Development Stories
Ops Development Stories
Mar 26, 2020 · Operations

How to Auto‑Discover and Monitor Redis Ports with Zabbix

This guide explains how to use Zabbix's auto‑discovery feature to automatically find Redis instances on a server, create shell or Python scripts for port detection, configure Zabbix agent keys, set up server‑side templates, discovery rules, item prototypes, graphs, and triggers, and finally apply the template to monitored hosts.

Auto-discoveryPythonShell
0 likes · 9 min read
How to Auto‑Discover and Monitor Redis Ports with Zabbix
macrozheng
macrozheng
Mar 26, 2020 · Backend Development

How to Build a High‑Performance URL Shortening Service: Architecture & Algorithms

This article explores the design of a high‑performance short‑link system, covering its benefits, redirection mechanics, hash‑based and auto‑increment generation methods, database schema, Bloom filter optimization, and a scalable OpenResty‑based architecture for handling massive traffic.

Backend ArchitectureHashingOpenResty
0 likes · 15 min read
How to Build a High‑Performance URL Shortening Service: Architecture & Algorithms
Liangxu Linux
Liangxu Linux
Mar 23, 2020 · Databases

10 Essential Redis Best Practices Every Developer Should Follow

This article presents ten practical Redis best‑practice guidelines—from avoiding the costly KEYS * command and leveraging SCAN, to using INFO for command statistics, employing hashes, setting expirations, selecting eviction policies, handling errors, scaling with clusters, understanding threading limits, and configuring Sentinel for high availability.

best practicescachingdatabase
0 likes · 9 min read
10 Essential Redis Best Practices Every Developer Should Follow
macrozheng
macrozheng
Mar 23, 2020 · Backend Development

Boost Spring Security Performance with Redis Caching and AOP Exception Handling

Learn how to resolve performance bottlenecks in a Spring‑based mall project by caching user and permission data in Redis, adding cache logic with RedisTemplate, and using AOP to gracefully handle Redis failures, ensuring stable authentication even when the cache is unavailable.

Spring Bootaopbackend-development
0 likes · 13 min read
Boost Spring Security Performance with Redis Caching and AOP Exception Handling
dbaplus Community
dbaplus Community
Mar 22, 2020 · Backend Development

Designing Multi‑Data‑Center Redis Cache with Strong Consistency and Failover

This article walks through the evolution of a Redis‑based cache layer for multi‑data‑center deployments, addressing consistency, safety, performance, disk‑space, data loops, timestamp versioning, master‑slave failover, and global numeric aggregation, and culminates in a ready‑to‑use middleware solution.

Cache ConsistencyLogical Clockfailover
0 likes · 19 min read
Designing Multi‑Data‑Center Redis Cache with Strong Consistency and Failover
dbaplus Community
dbaplus Community
Mar 19, 2020 · Databases

Inside Redis: A Deep Dive into Its Core Data Structures

This article explains the internal implementations of Redis’s five major data structures—simple dynamic strings (SDS), linked lists, dictionaries, skiplists, integer sets, and ziplists—detailing their definitions, memory layouts, key characteristics, and how Redis leverages them for high‑performance storage and retrieval.

Data StructuresDatabase InternalsSDS
0 likes · 12 min read
Inside Redis: A Deep Dive into Its Core Data Structures
macrozheng
macrozheng
Mar 16, 2020 · Backend Development

Mastering Spring Data Redis: Installation, Caching, and Advanced Usage

This comprehensive guide walks you through installing Redis on Linux and Windows, configuring Spring Cache annotations, setting up JSON serialization with RedisTemplate, using connection pools, and implementing a flexible RedisService with controller examples, providing all the essential steps to integrate Redis into your Spring Boot applications.

Spring CacheSpring Data Redisbackend-development
0 likes · 25 min read
Mastering Spring Data Redis: Installation, Caching, and Advanced Usage
Tencent Cloud Developer
Tencent Cloud Developer
Mar 15, 2020 · Industry Insights

Who Rules the Database World? Insights from Tencent’s TVP Tech Forum

The article reviews a Tencent Cloud TVP closed‑door forum where experts compared MySQL 8.0, PostgreSQL, Redis and the cloud‑native CynosDB, highlighting each product’s technical strengths, ecosystem support, and the broader industry trend toward cloud‑native, multi‑database solutions as the future of data management.

Cloud NativeCynosDBdatabases
0 likes · 17 min read
Who Rules the Database World? Insights from Tencent’s TVP Tech Forum
ITPUB
ITPUB
Mar 12, 2020 · Backend Development

Why Redis Uses Its Own String Type (SDS) and How It Boosts Performance

The article explains Redis's custom Simple Dynamic String (SDS) implementation, its memory layout, dynamic resizing rules, and performance benefits such as O(1) length retrieval, buffer‑overflow protection, and reduced allocation overhead through pre‑allocation and lazy reclamation.

SDSString Implementationperformance
0 likes · 7 min read
Why Redis Uses Its Own String Type (SDS) and How It Boosts Performance
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 10, 2020 · Backend Development

Why Your Redis Distributed Lock May Fail and How to Fix It

This article examines common failures of Redis‑based distributed locks, explains the limitations of simple implementations, introduces the Redlock algorithm, and provides practical solutions for high‑concurrency, node failures, TTL overruns, and system clock drift.

Redlockredis
0 likes · 17 min read
Why Your Redis Distributed Lock May Fail and How to Fix It
JD Retail Technology
JD Retail Technology
Mar 5, 2020 · Backend Development

Technical Implementation and Resilience Practices of JD.com PC Homepage

This article details the architectural redesign, fault‑tolerance mechanisms, performance optimizations, and monitoring strategies employed in JD.com’s PC homepage, illustrating how backend technologies such as OpenResty, Lua, Redis, and NGINX are orchestrated to achieve high availability and sub‑30 ms page loads.

LuaOpenRestyResilience
0 likes · 12 min read
Technical Implementation and Resilience Practices of JD.com PC Homepage
MaGe Linux Operations
MaGe Linux Operations
Mar 2, 2020 · Databases

10 Essential Redis Best Practices Every Engineer Should Follow

This article presents ten practical Redis best‑practice tips—from avoiding the costly KEYS * command to using hashes, setting appropriate expiration, choosing the right eviction policy, and ensuring high availability—helping developers optimize performance and reliability of their in‑memory data stores.

Backendbest practicescaching
0 likes · 9 min read
10 Essential Redis Best Practices Every Engineer Should Follow
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 2, 2020 · Databases

Redis Internals Explained: Data Structures, Memory Management & Use Cases

This article explores Redis, a high‑performance in‑memory key‑value store, detailing its core data types—String, List, Hash, Set, ZSet—the underlying structures such as SDS, quicklist, hashtable, and intset, and demonstrates practical usage patterns like caching, rate limiting, and inventory control.

Data StructuresIn-Memory DatabaseMemory Management
0 likes · 16 min read
Redis Internals Explained: Data Structures, Memory Management & Use Cases
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Feb 29, 2020 · Databases

Master Redis Memory Management: Expiration & Eviction Strategies Explained

Redis employs distinct memory reclamation mechanisms—expiration policies (timed, lazy, periodic) and eviction strategies triggered when maxmemory is reached—each with trade-offs in CPU and memory usage, and offers configurable policies such as allkeys‑lru, volatile‑ttl, and noeviction to manage cache data effectively.

cachingevictionredis
0 likes · 6 min read
Master Redis Memory Management: Expiration & Eviction Strategies Explained
21CTO
21CTO
Feb 14, 2020 · Backend Development

How QR Code Login Works Behind the Scenes: From WeChat to Taobao

This article explains the technical workflow of QR code login, covering the generation of UUIDs, QR images, server‑side Redis storage, mobile‑side token verification, long‑polling mechanisms, and the concrete implementations used by WeChat and Taobao, providing a complete reference for developers building similar authentication features.

QR loginTaobaoWeChat
0 likes · 16 min read
How QR Code Login Works Behind the Scenes: From WeChat to Taobao
FunTester
FunTester
Feb 12, 2020 · Backend Development

How to Stress-Test a VIP Payment Callback API with Distributed Locks

This article walks through a complete performance‑testing setup for a VIP purchase callback API, detailing the request flow, distributed‑lock handling with Redis, parameter generation using AtomicInteger, Java implementation, and pitfalls to ensure accurate, high‑concurrency testing.

APIBackendPerformance Testing
0 likes · 6 min read
How to Stress-Test a VIP Payment Callback API with Distributed Locks
21CTO
21CTO
Feb 7, 2020 · Backend Development

How to Build a High‑Concurrency Ticket‑Spike System Like 12306

This article explores the challenges of massive ticket‑buying spikes during holidays, explains the multi‑layer load‑balancing architecture, presents Go and Nginx configurations for weighted routing, demonstrates Redis‑based pre‑deduction of stock with Lua scripts, and shares stress‑test results showing thousands of requests per second on a single node.

Godistributed architectureload balancing
0 likes · 18 min read
How to Build a High‑Concurrency Ticket‑Spike System Like 12306
Java Captain
Java Captain
Feb 7, 2020 · Backend Development

Implementing a Two-Level Cache System with Guava and Redis in Java

This article explains how to build a simple two‑level caching solution in Java, covering generic cache interfaces, FIFO/LRU/LFU algorithms, implementing local Guava cache and distributed Redis cache, configuring Spring Boot, handling expiration, and providing a unified cache builder for seamless use.

GuavaSpring Bootbackend-development
0 likes · 35 min read
Implementing a Two-Level Cache System with Guava and Redis in Java
Architecture Digest
Architecture Digest
Feb 4, 2020 · Databases

Comprehensive Guide to Redis: Usage, Performance, Data Types, Expiration Strategies, and Common Pitfalls

This article provides an in‑depth overview of Redis, covering why it is used for performance and concurrency, its single‑threaded architecture, core data structures and their scenarios, expiration policies, memory eviction strategies, consistency challenges, and practical solutions for cache penetration, snowballing, and concurrent key updates.

Data StructuresMemory Managementcaching
0 likes · 12 min read
Comprehensive Guide to Redis: Usage, Performance, Data Types, Expiration Strategies, and Common Pitfalls
ITPUB
ITPUB
Feb 2, 2020 · Backend Development

How Redis Starts: A Deep Dive into server.c Initialization

This article explains the step‑by‑step process Redis follows to launch, from executing the redis‑server binary, initializing the server struct, loading configuration files, setting up data structures, restoring persistence, to entering the event loop.

C ProgrammingServer Initializationevent loop
0 likes · 6 min read
How Redis Starts: A Deep Dive into server.c Initialization
FunTester
FunTester
Jan 25, 2020 · Backend Development

Why Redis Cached Data Lost Fields After Async‑to‑Sync Conversion

During a performance test a query API failed on the second request because the Redis cache was written before asynchronous tasks finished, causing missing fields; the article explains the root cause, shows the original and fixed code, and details the debugging process.

AsyncBackendCache
0 likes · 5 min read
Why Redis Cached Data Lost Fields After Async‑to‑Sync Conversion
JD Retail Technology
JD Retail Technology
Jan 21, 2020 · Backend Development

From Zero to Launch: Building JD.com’s UGC “Home Page Takeover” Project in 60 Days

This article details how JD.com’s engineering team designed, implemented, and optimized a user‑generated‑content platform that went from concept to production in 60 days, covering project background, system architecture, data storage with JimDB, messaging decoupling, asynchronous I/O, performance testing, and future improvements.

Java concurrencyUGCbackend-development
0 likes · 11 min read
From Zero to Launch: Building JD.com’s UGC “Home Page Takeover” Project in 60 Days
Selected Java Interview Questions
Selected Java Interview Questions
Jan 8, 2020 · Backend Development

Compilation of Java Interview Articles (Issues 1‑40)

This article aggregates over forty WeChat posts that cover Java interview topics ranging from Redis and hash structures to Spring lifecycle, multithreading, serialization, and database sharding, providing a valuable reference for developers preparing for technical interviews.

Backendinterviewjava
0 likes · 4 min read
Compilation of Java Interview Articles (Issues 1‑40)
Java Captain
Java Captain
Jan 6, 2020 · Backend Development

Implementing API Idempotency with Redis Token Mechanism in Spring Boot

This article explains how to achieve interface idempotency in a Spring Boot application by generating a unique token for each request, storing it in Redis, validating the token via a custom annotation and interceptor, and provides complete code examples and testing guidance.

IdempotencyInterceptorSpring Boot
0 likes · 16 min read
Implementing API Idempotency with Redis Token Mechanism in Spring Boot
Java Architecture Diary
Java Architecture Diary
Jan 6, 2020 · Databases

How to Install and Use the Redis 6.0 Cluster Proxy

This guide explains the new Redis 6.0 cluster proxy feature, its purpose, and provides step‑by‑step instructions for installing, starting, and connecting to the proxy, including required GCC upgrades and example commands for a smooth setup.

BackendCluster‑ProxyInstallation
0 likes · 2 min read
How to Install and Use the Redis 6.0 Cluster Proxy
Didi Tech
Didi Tech
Jan 5, 2020 · Backend Development

Investigation and Optimization of High‑Frequency Go Service Timeout in Containers

The study traced severe Redis latency spikes in an 8‑core container to the Go runtime mistakenly reading the host’s CPU count, which created hundreds of threads and scheduler contention; limiting GOMAXPROCS to the container’s quota eliminated the jitter, while further gains were suggested by reducing HMGET calls, tuning GC, and upgrading Go.

CPUContainerGOMAXPROCS
0 likes · 14 min read
Investigation and Optimization of High‑Frequency Go Service Timeout in Containers
Senior Brother's Insights
Senior Brother's Insights
Jan 4, 2020 · Databases

How iQIYI Chooses, Optimizes, and Manages Its Diverse Database Stack

This article walks through iQIYI's practical approach to database selection, covering key evaluation dimensions, a taxonomy of SQL/NoSQL and OLTP/OLAP workloads, detailed optimizations for MySQL, Redis, Couchbase and the internally built HiKV, as well as multi‑stage operational management and concrete selection recommendations.

CouchbaseHiKVdatabase selection
0 likes · 21 min read
How iQIYI Chooses, Optimizes, and Manages Its Diverse Database Stack
Top Architect
Top Architect
Jan 2, 2020 · Backend Development

Designing a High‑Concurrency Ticket‑Seckill System with Load Balancing, Pre‑Deduction, and Go Implementation

This article analyzes the challenges of handling millions of simultaneous train‑ticket purchase requests, presents a multi‑layer load‑balancing architecture, introduces a pre‑deduction inventory strategy using Redis and local memory, and demonstrates a complete Go implementation with performance testing and key architectural insights.

Distributed SystemsGohigh concurrency
0 likes · 18 min read
Designing a High‑Concurrency Ticket‑Seckill System with Load Balancing, Pre‑Deduction, and Go Implementation
Programmer DD
Programmer DD
Jan 1, 2020 · Backend Development

How to Build a High‑Performance Flash Sale System: Architecture & Code

This article examines the key challenges of flash‑sale (秒杀) systems—overselling, massive concurrency, URL exposure, and database coupling—and presents a complete backend design featuring dedicated databases, dynamic URLs, static pages, Redis clustering, Nginx proxy, rate‑limiting, token‑bucket control, asynchronous order queues, and service degradation strategies.

Backend Architectureflash salehigh concurrency
0 likes · 14 min read
How to Build a High‑Performance Flash Sale System: Architecture & Code
ITPUB
ITPUB
Dec 28, 2019 · Backend Development

How to Build a High‑Concurrency Ticket‑Snatching System Like 12306 with Nginx, Redis, and Go

This article dissects the extreme‑load challenges of China’s 12306 train‑ticket service, explains its multi‑layer load‑balancing architecture, and provides a complete Go‑based spike‑system example that uses Nginx weighted round‑robin, Redis atomic stock deduction, and channel‑based locking to safely handle millions of concurrent purchase requests.

GoNginxhigh concurrency
0 likes · 20 min read
How to Build a High‑Concurrency Ticket‑Snatching System Like 12306 with Nginx, Redis, and Go