Tagged articles
3240 articles
Page 28 of 33
Liangxu Linux
Liangxu Linux
Dec 28, 2019 · Backend Development

How to Build a Million‑User Ticket Spike System: Insights from 12306

During holidays, millions of users scramble for train tickets, overwhelming the 12306 system; this article dissects its high‑concurrency architecture, explains load‑balancing layers, demonstrates Nginx weighted round‑robin configuration, and provides a Go‑based spike simulation with Redis stock management and performance results.

GoNginxhigh concurrency
0 likes · 21 min read
How to Build a Million‑User Ticket Spike System: Insights from 12306
Suning Technology
Suning Technology
Dec 25, 2019 · Backend Development

How Suning’s Bargain Group Platform Achieves High Availability and Scalability

This article examines Suning's bargain‑group platform transformation, detailing its strategic shift to a platform model, high‑availability architecture, vertical and horizontal decomposition, data sharding, cache design, dual‑data‑center deployment, and link optimizations for handling massive concurrent traffic.

Scalabilitybargain-groupdatabase sharding
0 likes · 19 min read
How Suning’s Bargain Group Platform Achieves High Availability and Scalability
ITPUB
ITPUB
Dec 24, 2019 · Databases

Why Does Redis Have 16 Databases by Default? Origins and Best Practices

Redis creates 16 logical databases by default, a design inherited from its early architecture; this article explains the origin of that number, how to modify it via configuration, the proper way to view these databases as namespaces, and the limitations when using Redis in cluster mode.

CacheClusterdatabases
0 likes · 6 min read
Why Does Redis Have 16 Databases by Default? Origins and Best Practices
Qunar Tech Salon
Qunar Tech Salon
Dec 24, 2019 · Operations

Cache Governance and High‑Availability Practices for Redis in a Hotel Quoting System

The article describes how a hotel quoting team identified recurring Redis‑related outages, designed a comprehensive cache governance plan—including fast recovery, multi‑replica, manual downgrade, and parameter tuning—and executed a structured process that improved system reliability and operational readiness.

Cache Governancehigh availabilityredis
0 likes · 8 min read
Cache Governance and High‑Availability Practices for Redis in a Hotel Quoting System
ITPUB
ITPUB
Dec 21, 2019 · Databases

How to Count Website Visits with Redis: Hash, Bitset, and HyperLogLog

This article explains three Redis‑based techniques—using hash tables, bitsets, and the HyperLogLog probabilistic algorithm—to accurately count daily page views, detailing the required commands, implementation steps, advantages, and limitations for high‑traffic sites.

BitsetHashHyperLogLog
0 likes · 6 min read
How to Count Website Visits with Redis: Hash, Bitset, and HyperLogLog
Java Captain
Java Captain
Dec 20, 2019 · Backend Development

Using Redisson for Distributed Caching in Java Applications

This article explains why caching is essential for Java distributed applications, introduces Redis and Redisson, and demonstrates how to implement distributed caches using Redisson Maps, Spring Cache integration, and the JCache API with practical code examples.

JCacheSpring Cachedistributed cache
0 likes · 6 min read
Using Redisson for Distributed Caching in Java Applications
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 17, 2019 · Big Data

Understanding Flink Sliding Windows and Performance Optimizations

This article explains Flink's sliding window mechanism, shows how the WindowAssigner and WindowOperator work with code examples, analyzes the performance impact of fine‑grained sliding windows, and proposes a practical workaround using tumbling windows combined with external storage such as Redis for efficient PV/UV aggregation.

Big DataFlinkSliding Window
0 likes · 8 min read
Understanding Flink Sliding Windows and Performance Optimizations
Architecture Digest
Architecture Digest
Dec 16, 2019 · Databases

iQIYI’s Database Selection, Optimization, and Management Practices

This article discusses iQIYI’s approach to database selection, covering evaluation criteria, the variety of databases used—including MySQL, TiDB, Redis, Couchbase, and the in‑house HiKV—along with detailed optimization, high‑availability, auditing, and operational management techniques for each system.

CouchbaseHiKVdatabase selection
0 likes · 20 min read
iQIYI’s Database Selection, Optimization, and Management Practices
Architecture Digest
Architecture Digest
Dec 14, 2019 · Databases

Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Configuration, and BigKey Management

This article presents comprehensive guidelines for Alibaba Cloud Redis, covering readable and concise key naming, value design to avoid big keys, safe command usage, client connection pooling and circuit‑breaker patterns, appropriate eviction policies, and practical code examples for deleting large hashes, lists, sets, and sorted sets.

Key Designbest practicesjava
0 likes · 12 min read
Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Configuration, and BigKey Management
Ctrip Technology
Ctrip Technology
Dec 12, 2019 · Backend Development

Improving Load Balancing for a Compute‑Intensive Ticket Query Engine with a Pooling Strategy

The article analyzes why a round‑robin load‑balancing approach caused severe response‑time spikes in Ctrip's compute‑intensive international ticket query engine and demonstrates how switching to a proactive pooling model using a Redis‑backed queue eliminated the spikes and reduced average latency by about 20%.

BackendPoolingload balancing
0 likes · 6 min read
Improving Load Balancing for a Compute‑Intensive Ticket Query Engine with a Pooling Strategy
Java Captain
Java Captain
Dec 12, 2019 · Databases

Redis Memory Limits, Configuration, and Eviction Policies (LRU & LFU)

This article explains how to set Redis's maximum memory usage via configuration files or commands, describes the built‑in eviction strategies including noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, volatile‑ttl, and shows how to query and change these policies, while also covering LRU fundamentals, a Java LRU cache example, Redis's approximate LRU implementation, its 3.0 optimizations, and the newer LFU eviction algorithm.

LFULRUdatabase
0 likes · 10 min read
Redis Memory Limits, Configuration, and Eviction Policies (LRU & LFU)
Programmer DD
Programmer DD
Dec 10, 2019 · Databases

Mastering Redis: From Caching Basics to Distributed Locks and Cluster Scaling

This comprehensive guide explores Redis caching fundamentals, data structures, key‑search techniques, distributed lock implementation, asynchronous queues, persistence options (RDB, AOF, hybrid), pipeline usage, replication, Sentinel monitoring, and cluster sharding with consistent hashing to help developers build high‑performance, reliable systems.

ClusterPersistencecaching
0 likes · 20 min read
Mastering Redis: From Caching Basics to Distributed Locks and Cluster Scaling
JD Retail Technology
JD Retail Technology
Dec 9, 2019 · Databases

Memory Optimization in Redis Using zipList and Hash Bucketing

This article explains how to dramatically reduce Redis memory consumption—by up to 90%—through converting long string keys to integers, leveraging zipList‑encoded hashes, and distributing millions of key‑value pairs across many hash buckets while maintaining query performance.

Data StructuresHashMemory Optimization
0 likes · 11 min read
Memory Optimization in Redis Using zipList and Hash Bucketing
Selected Java Interview Questions
Selected Java Interview Questions
Dec 7, 2019 · Backend Development

Understanding Redis Cache Avalanche, Penetration, and Breakdown: Causes and Mitigation Strategies

The article explains what Redis cache avalanche, penetration, and breakdown are, illustrates real‑world incidents, and provides pre‑, during‑, and post‑incident solutions such as high‑availability setups, local caches with rate limiting, fallback mechanisms, and placeholder writes to prevent database overload.

BackendBreakdownCache
0 likes · 8 min read
Understanding Redis Cache Avalanche, Penetration, and Breakdown: Causes and Mitigation Strategies
Ziru Technology
Ziru Technology
Dec 7, 2019 · Backend Development

How Distributed Delayed Scheduling Guarantees High Availability with Redis and RabbitMQ

This article explains how a distributed delayed‑execution component solves business scenarios that require timed actions, ensuring high availability and data consistency by leveraging Redis sorted sets and RabbitMQ dead‑letter queues, while providing a simple Java API and optional DB‑backed reliability.

Distributed SchedulingRabbitMQdelay queue
0 likes · 9 min read
How Distributed Delayed Scheduling Guarantees High Availability with Redis and RabbitMQ
Ops Development Stories
Ops Development Stories
Dec 6, 2019 · Databases

Master Redis: Installation, Commands, and Persistence Explained

An in‑depth guide covering Redis fundamentals, installation steps, daemon configuration, password setup, core commands for strings, lists, hashes, sets and sorted sets, internal encodings, and both RDB and AOF persistence mechanisms, complete with practical code examples and configuration snippets.

Data StructuresInstallationPersistence
0 likes · 38 min read
Master Redis: Installation, Commands, and Persistence Explained
Java Captain
Java Captain
Dec 5, 2019 · Databases

Understanding Redis: From Basic Concepts to Advanced Features and Deployment Strategies

This article provides a comprehensive overview of Redis, explaining its core data structures, caching use cases, persistence mechanisms, high‑availability features like Sentinel and replication, clustering for horizontal scaling, and client‑side capabilities such as transactions, Lua scripting, pipelining, and distributed locks.

ClusterDistributed SystemsLua
0 likes · 13 min read
Understanding Redis: From Basic Concepts to Advanced Features and Deployment Strategies
Meitu Technology
Meitu Technology
Dec 4, 2019 · Backend Development

Design and Implementation of lmstfy: A Redis‑Based Task Queue Service

lmstfy is a stateless, Redis‑backed task‑queue service from Meitu that provides delayed execution, automatic retries, priority handling, expiration, and a RESTful HTTP API, while supporting horizontal scaling via namespace‑based token routing, rich Prometheus metrics, and future disk‑based storage extensions.

Distributed SystemsTask Queuebackend service
0 likes · 15 min read
Design and Implementation of lmstfy: A Redis‑Based Task Queue Service
dbaplus Community
dbaplus Community
Dec 3, 2019 · Databases

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

This article explains iQIYI's multi‑dimensional approach to database selection, details the practical use and optimization of MySQL, TiDB, Redis, Couchbase, and the internally built HiKV, and offers concrete recommendations for choosing the right database in different scenarios.

CouchbaseHiKVTiDB
0 likes · 20 min read
How iQIYI Selects, Optimizes, and Manages Its Diverse Database Stack
Java Captain
Java Captain
Dec 2, 2019 · Backend Development

Implementing Interface Rate Limiting in Spring Boot with Annotations and Redis

This article demonstrates how to create a custom @AccessLimit annotation, implement a Spring MVC interceptor that uses Redis to count requests, register the interceptor in a Spring Boot application, and apply the annotation to controller methods to achieve rate‑limiting functionality.

InterceptorSpring Bootannotations
0 likes · 6 min read
Implementing Interface Rate Limiting in Spring Boot with Annotations and Redis
Java High-Performance Architecture
Java High-Performance Architecture
Dec 2, 2019 · Databases

How Redis Sentinel Ensures Automatic Failover and High Availability

Redis Sentinel provides an automated high‑availability solution for Redis by monitoring master health, broadcasting SDOWN/ODOWN messages, electing a new master based on priority, offset and runid, and allowing clients to discover the current master via sentinel commands, all explained with configuration examples and diagrams.

Configurationhigh availabilitymonitoring
0 likes · 6 min read
How Redis Sentinel Ensures Automatic Failover and High Availability
Architecture Digest
Architecture Digest
Nov 28, 2019 · Backend Development

Implementing a Like/Unlike Feature with Redis Caching and Periodic Persistence in Spring Cloud

This article details a complete backend solution for a high‑frequency like/unlike feature using Spring Cloud, Redis as a cache, MySQL for persistence, and Quartz to periodically transfer cached data to the database, covering installation, configuration, data modeling, service design, and scheduled tasks.

BackendLikeFeatureQuartz
0 likes · 15 min read
Implementing a Like/Unlike Feature with Redis Caching and Periodic Persistence in Spring Cloud
Qunar Tech Salon
Qunar Tech Salon
Nov 28, 2019 · Databases

Qunar Redis High‑Availability Architecture Design, Security Mechanisms, and Automated Operations

This article details the design principles, components, client implementation, data sharding, security mechanisms, high‑risk command blocking, configuration optimizations, and automated operational workflows of Qunar's Redis high‑availability cluster, including code modifications, deployment scripts, and platform‑based management for large‑scale production environments.

Database Architectureautomationhigh availability
0 likes · 18 min read
Qunar Redis High‑Availability Architecture Design, Security Mechanisms, and Automated Operations
Java Captain
Java Captain
Nov 27, 2019 · Backend Development

Designing a High‑Concurrency Flash Sale System Using Cloud Redis Caching

This article explains how to build a high‑traffic flash‑sale (秒杀) system by leveraging browser and CDN caching, read‑write split Redis for traffic interception, master‑slave Redis for atomic inventory deduction with Lua scripts, and Redis‑based message queues for asynchronous order processing.

Lua Scriptcachingredis
0 likes · 8 min read
Designing a High‑Concurrency Flash Sale System Using Cloud Redis Caching
Huajiao Technology
Huajiao Technology
Nov 26, 2019 · Backend Development

How Pepperbus Unifies Asynchronous Task Management Across Diverse Tech Stacks

This article details the design, requirements, architecture, and operational dashboard of Pepperbus, a unified bus system that standardizes asynchronous task handling for PHP, Java, and Go services at Huajiao, highlighting its storage plug‑in model, Redis‑based protocol, and monitoring capabilities.

AsynchronousDashboardPHP
0 likes · 8 min read
How Pepperbus Unifies Asynchronous Task Management Across Diverse Tech Stacks
Programmer DD
Programmer DD
Nov 24, 2019 · Databases

Redis Best Practices: Naming, Size Limits, Expiration, and Command Pitfalls

This guide outlines practical Redis best practices, covering readable key naming with colons, keeping string values under 10 KB, setting expirations, avoiding O(n) commands, disabling risky commands, leveraging batch operations, and responsibly using the monitor command to maintain performance and stability.

Key Namingbest practicesredis
0 likes · 7 min read
Redis Best Practices: Naming, Size Limits, Expiration, and Command Pitfalls
Architect's Tech Stack
Architect's Tech Stack
Nov 23, 2019 · Databases

Redis Usage Guidelines and Operational Restrictions

This article provides comprehensive best‑practice guidelines for using Redis, covering data classification, key naming, size and connection limits, cache TTL, recommended client‑hash sharding, and a strict list of prohibited commands and operations to ensure performance, reliability, and maintainability.

CacheOperationsperformance
0 likes · 9 min read
Redis Usage Guidelines and Operational Restrictions
MaGe Linux Operations
MaGe Linux Operations
Nov 21, 2019 · Backend Development

Surviving a ByteDance Interview: Nginx, Redis, and Data‑Structure Lessons

The author recounts a grueling ByteDance video interview, detailing technical questions on Django deployment, Nginx configuration, uWSGI internals, Redis fundamentals, heap data structures and quick‑sort coding, while sharing hard‑earned career advice for developers preparing for high‑stakes interviews.

BackendData StructuresNginx
0 likes · 12 min read
Surviving a ByteDance Interview: Nginx, Redis, and Data‑Structure Lessons
dbaplus Community
dbaplus Community
Nov 20, 2019 · Backend Development

Designing a High‑Concurrency Ticket‑Spiking System for 1M Users and 10K Tickets

This article explains how to architect a high‑concurrency ticket‑seckill system that can handle one million simultaneous users buying ten thousand tickets, covering load‑balancing strategies, Nginx weighted round‑robin configuration, Go service implementation, Redis‑based inventory management, and performance testing results.

Distributed SystemsGoNginx
0 likes · 20 min read
Designing a High‑Concurrency Ticket‑Spiking System for 1M Users and 10K Tickets
Efficient Ops
Efficient Ops
Nov 20, 2019 · Databases

Mastering Codis: Seamless Redis Scaling and High‑Availability Strategies

This comprehensive guide details how Codis extends Redis with a proxy‑based architecture to achieve transparent horizontal scaling, smooth data migration, high availability, fault tolerance, and operational best‑practices, while also covering common Redis pitfalls and performance tuning.

CodisDistributed Systemsredis
0 likes · 26 min read
Mastering Codis: Seamless Redis Scaling and High‑Availability Strategies
ITPUB
ITPUB
Nov 20, 2019 · Backend Development

How to Build a Million‑User Ticket‑Spike System with Nginx, Go, and Redis

This article explains the design of a high‑concurrency train‑ticket flash‑sale system, covering distributed load‑balancing, Nginx weighted round‑robin, local and remote stock deduction, Go implementation, Redis atomic scripts, and performance testing with ApacheBench.

GoNginxSystem Design
0 likes · 20 min read
How to Build a Million‑User Ticket‑Spike System with Nginx, Go, and Redis
Qunar Tech Salon
Qunar Tech Salon
Nov 20, 2019 · Databases

Redis Expiration Mechanisms and Key Deletion Strategies

This article explains how Redis manages key expiration using EXPIRE, PEXPIRE, EXPIREAT, and PEXPIREAT commands, details the internal expires dictionary, demonstrates code examples for setting, retrieving, and removing TTL, and discusses the lazy and periodic deletion strategies along with their impact on persistence and replication.

ExpirationKey DeletionLazy Deletion
0 likes · 22 min read
Redis Expiration Mechanisms and Key Deletion Strategies
21CTO
21CTO
Nov 18, 2019 · Backend Development

Building a Scalable Like System with Spring Cloud, Redis, and Quartz

This article explains how to design and implement a high‑frequency like/unlike feature for large social platforms using Spring Cloud, Redis caching, MySQL persistence, and Quartz scheduled jobs, covering Redis setup, data modeling, service interfaces, database schema, and periodic data synchronization.

Like SystemQuartzSpringBoot
0 likes · 19 min read
Building a Scalable Like System with Spring Cloud, Redis, and Quartz
Mafengwo Technology
Mafengwo Technology
Nov 14, 2019 · Backend Development

How MaFengWo Built a Scalable Marketing Platform for Double‑11: Architecture Insights

This article details the design and implementation of MaFengWo's marketing platform for the Double‑11 travel promotion, covering its modular architecture, data layer, flexible development model, reliability mechanisms, and future roadmap to support high‑traffic, secure, and maintainable marketing activities.

Marketinghigh concurrencyplatform architecture
0 likes · 17 min read
How MaFengWo Built a Scalable Marketing Platform for Double‑11: Architecture Insights
Java Captain
Java Captain
Nov 14, 2019 · Backend Development

Designing a High‑Concurrency Ticket Spike System: Architecture, Load Balancing, and Go Implementation

This article analyzes the 12306 ticket‑spike scenario, presents a distributed high‑concurrency architecture with layered load balancing, compares order‑creation strategies, demonstrates local and remote stock deduction using Go and Redis, and validates performance with ApacheBench testing.

Godistributed architecturehigh concurrency
0 likes · 20 min read
Designing a High‑Concurrency Ticket Spike System: Architecture, Load Balancing, and Go Implementation
58 Tech
58 Tech
Nov 13, 2019 · Backend Development

Using Bull Queue in Node.js to Handle Asynchronous Calls, Traffic Shaping, and Distributed Scheduled Tasks for Frontend Applications

This article explains how front‑end teams can leverage the Node.js Bull queue to implement lightweight asynchronous calls, rate‑limiting traffic spikes, and distributed scheduled jobs, detailing the selection rationale, architectural changes, core Redis‑based mechanisms, and practical deployment tips.

BullDistributed TasksFrontend Infrastructure
0 likes · 9 min read
Using Bull Queue in Node.js to Handle Asynchronous Calls, Traffic Shaping, and Distributed Scheduled Tasks for Frontend Applications
dbaplus Community
dbaplus Community
Nov 10, 2019 · Backend Development

Mastering Redis at Scale: Real‑World Use Cases, Performance Tweaks, and High‑Availability Strategies

This technical guide compiled by Tencent engineers explores common Redis data‑structure use cases, latency and memory considerations, compares distributed deployment options, and provides practical optimization, high‑availability, and troubleshooting techniques for large‑scale Redis (Codis) deployments.

Codishigh availabilityredis
0 likes · 15 min read
Mastering Redis at Scale: Real‑World Use Cases, Performance Tweaks, and High‑Availability Strategies
21CTO
21CTO
Nov 8, 2019 · Backend Development

How to Build a Million‑User Ticket Spike System with Nginx Load Balancing and Redis

This article explores the design of a high‑concurrency ticket‑spike system, covering multi‑layer load balancing, weighted Nginx routing, pre‑deduction inventory strategies using Redis, Go implementation details, and performance testing that demonstrates handling millions of requests while preventing oversell and ensuring high availability.

GoNginxload balancing
0 likes · 19 min read
How to Build a Million‑User Ticket Spike System with Nginx Load Balancing and Redis
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 7, 2019 · Big Data

Real‑time Dashboard with Flink: Streaming Order Data, Site Metrics, and Top‑N Merchandise Rankings

This article demonstrates how to build a one‑second‑refresh real‑time dashboard for e‑commerce order data using Apache Flink, Kafka, and Redis, covering JSON message parsing, processing‑time windows, stateful aggregation for site‑level KPIs, and efficient top‑N product ranking via Redis sorted sets.

DashboardFlinkKafka
0 likes · 11 min read
Real‑time Dashboard with Flink: Streaming Order Data, Site Metrics, and Top‑N Merchandise Rankings
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 6, 2019 · Databases

Understanding Hash Functions, Hash Tables, and Their Implementation in Redis

This article explains the concept of hash functions and hash tables, illustrates how they map data to array indices, discusses collision resolution methods, and details Redis's internal dictionary implementation, including zipmap optimization, operation complexities, and practical usage differences between hashes and sets.

Data StructuresHashMemory Optimization
0 likes · 8 min read
Understanding Hash Functions, Hash Tables, and Their Implementation in Redis
Architect's Tech Stack
Architect's Tech Stack
Nov 4, 2019 · Backend Development

Design and Implementation of a High‑Concurrency Ticket Seckill System Using Go, Nginx, and Redis

This article explains how to build a high‑concurrency train‑ticket flash‑sale system that can handle millions of requests by combining layered load‑balancing, Nginx weighted round‑robin, in‑memory stock deduction, Redis atomic Lua scripts, and a Go HTTP service with channel‑based concurrency control, and it provides performance test results and source code.

GoNginxSeckill
0 likes · 18 min read
Design and Implementation of a High‑Concurrency Ticket Seckill System Using Go, Nginx, and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Nov 4, 2019 · Databases

Redis Expiration Strategies and Memory Eviction Mechanisms

This article explains how Redis removes expired keys using periodic and lazy deletion, describes the slave expiration handling, details the asynchronous memory reclamation commands like UNLINK and FLUSHALL ASYNC, and outlines the various maxmemory eviction policies including LRU, LFU, and their implementations.

CacheExpirationLFU
0 likes · 13 min read
Redis Expiration Strategies and Memory Eviction Mechanisms
Big Data Technology & Architecture
Big Data Technology & Architecture
Oct 31, 2019 · Backend Development

Designing a High-Concurrency Flash Sale System Using Redis Caching and Lua Scripts

This article explains how to design a high‑concurrency flash‑sale (秒杀) system by leveraging browser and CDN caching, read‑write split Redis for traffic filtering, Lua scripts for atomic stock deduction, master‑slave Redis for fast inventory updates, and Redis‑based message queues for asynchronous order processing.

Backend ArchitectureLuaMessage Queue
0 likes · 8 min read
Designing a High-Concurrency Flash Sale System Using Redis Caching and Lua Scripts
21CTO
21CTO
Oct 31, 2019 · Backend Development

Master Distributed Rate Limiting with Token Buckets, Redis, and Code

This article explains why rate limiting is essential for microservice stability, compares leaky‑bucket and token‑bucket algorithms, shows how to implement local and distributed throttling with Java's AtomicLong, Redis, and a control‑server architecture, and points to an open‑source project for practical use.

Distributed SystemsMicroservicesToken Bucket
0 likes · 9 min read
Master Distributed Rate Limiting with Token Buckets, Redis, and Code
Big Data Technology & Architecture
Big Data Technology & Architecture
Oct 29, 2019 · Databases

Overview of Alibaba Cloud Redis Architecture and Optimizations

This article summarizes Alibaba Cloud Redis’s architecture, including single-node, high‑availability, cluster, read‑write separation, disaster‑recovery options, and hybrid storage, and details its kernel optimizations such as AOF/Binlog enhancements, multi‑threaded I/O, Memcache compatibility, and performance improvements.

Alibaba Cloudarchitecturecloud database
0 likes · 8 min read
Overview of Alibaba Cloud Redis Architecture and Optimizations
Java Architecture Diary
Java Architecture Diary
Oct 29, 2019 · Databases

How to Quickly Compare Data Consistency Between Two Redis Instances

This article explains what constitutes data inconsistency in Redis, outlines key and value mismatch scenarios, and introduces the open‑source redis‑full‑check tool with usage instructions for efficiently comparing two Redis instances across various deployment modes.

Data ConsistencyRedisFullCheckdatabase comparison
0 likes · 3 min read
How to Quickly Compare Data Consistency Between Two Redis Instances
Java Backend Technology
Java Backend Technology
Oct 29, 2019 · Backend Development

How to Build a Million‑User Ticket‑Spiking System with Nginx, Go, and Redis

This article explores the architecture and implementation of a high‑concurrency train‑ticket flash‑sale system, covering load‑balancing strategies, weighted round‑robin Nginx configuration, local and remote stock deduction using Go and Redis, performance testing, and key lessons for building reliable, scalable services.

GoNginxhigh concurrency
0 likes · 20 min read
How to Build a Million‑User Ticket‑Spiking System with Nginx, Go, and Redis
dbaplus Community
dbaplus Community
Oct 27, 2019 · Databases

How Weibo Scales Redis: Architecture, Optimizations, and Future Plans

This article details how Weibo leverages Redis across billions of requests, describing its massive scale, the challenges of trillion‑level reads/writes, the technical choices and customizations made—including LongSet, HA solutions, multi‑level caching, RocksDB integration—and outlines ongoing capacity and future development strategies.

Cache OptimizationRocksDBWeibo
0 likes · 18 min read
How Weibo Scales Redis: Architecture, Optimizations, and Future Plans
Big Data Technology & Architecture
Big Data Technology & Architecture
Oct 26, 2019 · Databases

KeyDB Multithreaded Architecture and Design Overview

KeyDB is a high‑performance, multithreaded fork of Redis that retains full Redis compatibility while delivering up to twice the query throughput and 60 % lower latency, and the article explains its thread model, connection management, fastlock mechanism, and active‑replica features in detail.

KeyDBLockReplication
0 likes · 7 min read
KeyDB Multithreaded Architecture and Design Overview
Selected Java Interview Questions
Selected Java Interview Questions
Oct 24, 2019 · Backend Development

Implementing Distributed Locks with Redis: Principles, Code Samples, Redlock Algorithm and Redisson Usage

This article explains the three common distributed‑lock implementations, details the requirements for a Redis‑based lock, provides Java code for acquiring and releasing the lock with Lua scripts, discusses the Redlock algorithm, and shows how to use Redisson’s reentrant and RedLock implementations in production.

BackendRedlockjava
0 likes · 8 min read
Implementing Distributed Locks with Redis: Principles, Code Samples, Redlock Algorithm and Redisson Usage
macrozheng
macrozheng
Oct 22, 2019 · Databases

Mastering Redis Persistence: RDB, AOF, and Hybrid Strategies Explained

This article provides a comprehensive guide to Redis persistence mechanisms, covering the internal database structure, detailed operations of RDB snapshotting and AOF command logging, their configurations, advantages, drawbacks, hybrid persistence, and practical strategy recommendations for various deployment scenarios.

AOFHybridPersistence
0 likes · 34 min read
Mastering Redis Persistence: RDB, AOF, and Hybrid Strategies Explained
Java Backend Technology
Java Backend Technology
Oct 20, 2019 · Databases

How KeyDB Transforms Redis into a Multi‑Threaded Database

This article explains how KeyDB, a Redis fork, redesigns the single‑threaded architecture into a multi‑threaded model with worker threads, per‑thread connection management, a custom fastlock mechanism, and an active‑replica mode that enables writable replicas and conflict‑resolution using timestamps.

Connection ManagementKeyDBLock
0 likes · 7 min read
How KeyDB Transforms Redis into a Multi‑Threaded Database
Big Data Technology Architecture
Big Data Technology Architecture
Oct 17, 2019 · Backend Development

Designing a High‑Concurrency Ticket Spike System: Architecture, Load Balancing, and Go Implementation

This article explores the design of a high‑concurrency train‑ticket flash‑sale system, covering distributed load‑balancing architectures, OSPF/LVS/Nginx strategies, pre‑deduction inventory techniques, Go‑based HTTP services, Redis Lua scripts, and performance testing with AB, demonstrating how to achieve stable, scalable ticket‑purchasing under massive traffic.

GoNginxhigh concurrency
0 likes · 19 min read
Designing a High‑Concurrency Ticket Spike System: Architecture, Load Balancing, and Go Implementation
Java Captain
Java Captain
Oct 17, 2019 · Backend Development

Implementing Shared Session in Spring Boot with Shiro and Redis Using CrazyCake Plugin

This tutorial demonstrates how to enable shared HTTP sessions across multiple Spring Boot instances by integrating Apache Shiro with Redis via the CrazyCake plugin, configuring Maven dependencies, Redis and Shiro settings, building service and controller layers, and deploying the applications behind an Nginx load balancer for seamless session persistence.

NginxShiroSpring Boot
0 likes · 12 min read
Implementing Shared Session in Spring Boot with Shiro and Redis Using CrazyCake Plugin
21CTO
21CTO
Oct 14, 2019 · Backend Development

How to Build a Million‑User Ticket‑Snatching System with Nginx, Go, and Redis

This article explores the design of a high‑concurrency train‑ticket flash‑sale system, covering load‑balancing strategies, weighted Nginx configuration, in‑memory pre‑deduction, Redis Lua scripts, and Go implementation, and demonstrates its performance with real‑world stress testing.

GoNginxhigh concurrency
0 likes · 18 min read
How to Build a Million‑User Ticket‑Snatching System with Nginx, Go, and Redis
Architect's Tech Stack
Architect's Tech Stack
Oct 14, 2019 · Databases

Redis Expiration Strategies and Command Effects on Key TTL

This article explains Redis's expiration policies, detailing how commands like DEL, SET, INCR, LPUSH, PERSIST, RENAME, EXPIRE, and EXPIREAT affect key TTLs, and describes the lazy and periodic deletion mechanisms used by Redis to manage expired keys.

ExpirationLazy DeletionPeriodic Deletion
0 likes · 9 min read
Redis Expiration Strategies and Command Effects on Key TTL
21CTO
21CTO
Sep 28, 2019 · Backend Development

What I Learned From a Tough ByteDance Backend Interview: Nginx, Redis, and More

A candid recount of a ByteDance backend interview reveals how superficial preparation, gaps in Nginx, uWSGI, Redis, and data‑structure knowledge, and nervousness can derail even experienced developers, while offering concrete advice on early preparation, resume framing, and tackling tough technical questions.

BackendNginxalgorithm
0 likes · 12 min read
What I Learned From a Tough ByteDance Backend Interview: Nginx, Redis, and More
Java Captain
Java Captain
Sep 24, 2019 · Databases

Redis Overview: Features, Data Types, Commands, Persistence, Replication, Pub/Sub and Transactions

This article provides a comprehensive introduction to Redis, covering its high‑performance key‑value architecture, supported data structures (string, hash, list, set, sorted set), core commands, persistence mechanisms, replication, sentinel monitoring, sharding, pub/sub messaging and transaction handling, with practical command‑line examples.

Data TypesReplicationTransactions
0 likes · 16 min read
Redis Overview: Features, Data Types, Commands, Persistence, Replication, Pub/Sub and Transactions
dbaplus Community
dbaplus Community
Sep 23, 2019 · Databases

Why Short Connections, Frequent INFO Calls, and Pipelines Hurt Redis Performance (and How to Fix It)

This article examines three common Redis performance pitfalls—short-lived connections, frequent INFO commands, and misuse of pipelines—by presenting real‑world experiments, profiling data, and source‑level analysis, then offers concrete code changes and best‑practice recommendations to reduce CPU and memory overhead.

CPUconnectionmemory
0 likes · 15 min read
Why Short Connections, Frequent INFO Calls, and Pipelines Hurt Redis Performance (and How to Fix It)
UCloud Tech
UCloud Tech
Sep 19, 2019 · Cloud Native

How KUN’s Kubernetes Operator Simplifies Stateful Service Deployment

This article explains how UCloud’s KUN platform leverages Kubernetes Operators to simplify deployment and management of stateful distributed services like Redis, covering Operator fundamentals, design choices, Redis Operator features, scope handling, persistence, monitoring, and the overall benefits for DevOps efficiency.

Cloud NativeDevOpsKubernetes
0 likes · 16 min read
How KUN’s Kubernetes Operator Simplifies Stateful Service Deployment
Architect's Tech Stack
Architect's Tech Stack
Sep 12, 2019 · Backend Development

Design and Implementation of a Short URL Service in Java

This article explains the benefits of short URLs, outlines the basic workflow of generating and resolving them, and presents a complete Java implementation that uses Redis for fast storage, MySQL for persistence, and various techniques for high concurrency and distributed deployment.

Backendhigh concurrencyredis
0 likes · 8 min read
Design and Implementation of a Short URL Service in Java
Sohu Tech Products
Sohu Tech Products
Sep 11, 2019 · Backend Development

Design and Implementation of a High‑Concurrency Flash‑Sale System for Online Real‑Estate Opening

The article explains how to handle massive simultaneous user requests in a flash‑sale scenario by using rate limiting, caching, asynchronous processing, distributed locks, load balancing, and anti‑cheat mechanisms, illustrated with the Sohu Focus online opening system architecture.

Backend ArchitectureDistributed SystemsKafka
0 likes · 12 min read
Design and Implementation of a High‑Concurrency Flash‑Sale System for Online Real‑Estate Opening
ITPUB
ITPUB
Sep 9, 2019 · Databases

Redis Interview Essentials: Top Questions & Expert Answers

This article compiles essential Redis interview questions covering its advantages over Memcached, performance pitfalls, data structures, persistence options, clustering, scaling strategies, and practical usage patterns such as distributed locks and asynchronous queues, providing concise answers and best‑practice recommendations for each topic.

PersistenceScalabilitycaching
0 likes · 18 min read
Redis Interview Essentials: Top Questions & Expert Answers
21CTO
21CTO
Sep 6, 2019 · Backend Development

Mastering Cache Reads: Prevent Cache Penetration and Expiration in High‑Concurrency Systems

This article explains how to implement robust cache‑read logic with Redis, covering common pitfalls such as cache penetration and cache expiration, and demonstrates practical solutions—including placeholder caching and lock‑based cache rebuilding—to keep high‑traffic back‑ends performant and reliable.

BackendPHPcache expiration
0 likes · 5 min read
Mastering Cache Reads: Prevent Cache Penetration and Expiration in High‑Concurrency Systems
Sohu Tech Products
Sohu Tech Products
Sep 4, 2019 · Frontend Development

Building a Real‑Time Video Chat Application with Vue, WebRTC, Socket.io, Node.js and Redis

This tutorial walks through creating a full‑stack video‑chat app that supports multiple chat rooms, private messaging, user status, and peer‑to‑peer video calls by combining Vue.js for the frontend, Vuex for state management, Socket.io for real‑time communication, a Node/Express backend, Redis for scaling, and Docker for deployment.

DockerNode.jsSocket.IO
0 likes · 26 min read
Building a Real‑Time Video Chat Application with Vue, WebRTC, Socket.io, Node.js and Redis
Java Captain
Java Captain
Sep 1, 2019 · Information Security

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

This tutorial demonstrates how to integrate the lightweight Apache Shiro security framework into a Spring Boot 2.1.5 project, covering environment setup, Maven dependencies, Redis session storage, custom utilities, Shiro configuration, permission annotations, test controllers, and Postman verification.

AuthenticationAuthorizationShiro
0 likes · 27 min read
Integrating Apache Shiro with Spring Boot: Configuration, Session Management, and Permission Control
Ziru Technology
Ziru Technology
Aug 29, 2019 · Backend Development

Inside Redis: How Initialization and Event Loop Power the Server

This article explains Redis's startup sequence, detailing server initialization, configuration loading, event‑loop creation, supported I/O multiplexing mechanisms, timer and I/O callbacks, and the complete request‑response flow from client command to server reply.

I/O MultiplexingServer Initializationbackend-development
0 likes · 13 min read
Inside Redis: How Initialization and Event Loop Power the Server
Big Data Technology Architecture
Big Data Technology Architecture
Aug 26, 2019 · Backend Development

Redis Distributed Lock Implementation: Design, Issues, and Lessons Learned

This article shares a practical experience of implementing a Redis‑based distributed lock, explains the lock acquisition and release processes, discusses common pitfalls such as expiration handling and concurrency bugs, and provides Q&A on design choices, high‑availability, and future improvements.

Lock designconcurrencydistributed-lock
0 likes · 6 min read
Redis Distributed Lock Implementation: Design, Issues, and Lessons Learned
MXPlayer Technical Team
MXPlayer Technical Team
Aug 22, 2019 · Backend Development

How MX Player Cut Memory Use by 96% with Bloom Filters

This article explains how MX Player replaced a Redis‑based user‑history list with per‑user Bloom Filters, dramatically reducing memory consumption and improving filtering efficiency for its recommendation system.

Memory Optimizationbloom-filterredis
0 likes · 9 min read
How MX Player Cut Memory Use by 96% with Bloom Filters
Java Captain
Java Captain
Aug 22, 2019 · Databases

Redis Data Structures and Common Commands Overview

This article introduces Redis's fundamental and advanced data structures, explains how each is represented internally, and provides detailed examples of essential commands such as KEYS, EXISTS, DEL, EXPIRE, TTL, and TYPE, highlighting their usage, complexity, and best‑practice considerations.

Data Structurescommandsdatabase
0 likes · 10 min read
Redis Data Structures and Common Commands Overview
Programmer DD
Programmer DD
Aug 15, 2019 · Databases

Why Is Redis So Fast? Uncover the Secrets Behind Its Performance

Redis achieves exceptional speed by combining a C‑based implementation, pure in‑memory data storage, a single‑threaded event loop, and non‑blocking epoll I/O multiplexing, while supporting rich data structures and advanced features such as transactions, Lua scripting, and clustering.

I/O MultiplexingIn-MemorySingle‑threaded
0 likes · 6 min read
Why Is Redis So Fast? Uncover the Secrets Behind Its Performance
Amap Tech
Amap Tech
Aug 13, 2019 · Backend Development

Cache Strategies and Framework Selection for High‑Performance Systems

To achieve low‑latency, high‑throughput data access in systems like Gaode’s navigation service, the article advises evaluating CPU and I/O bottlenecks, choosing between local (HashMap/ConcurrentHashMap or Caffeine) and distributed caches (Redis preferred), applying appropriate eviction, TTL, and consistency patterns, and mitigating cache penetration, breakdown, and avalanche risks.

Cache Strategiescachingdistributed cache
0 likes · 26 min read
Cache Strategies and Framework Selection for High‑Performance Systems
Programmer DD
Programmer DD
Aug 10, 2019 · Information Security

Secure Your Spring Boot App with Apache Shiro: Auth, Authz, and Redis

This article walks through integrating Apache Shiro into a Spring Boot project to handle authentication, authorization, session management, and caching, including custom realms, Redis-backed sessions, and cache managers, while providing detailed code examples and configuration guidance.

Apache ShiroAuthenticationAuthorization
0 likes · 20 min read
Secure Your Spring Boot App with Apache Shiro: Auth, Authz, and Redis
Meitu Technology
Meitu Technology
Aug 9, 2019 · Databases

Redis 6 Multithreaded I/O Implementation and Performance Evaluation

The article details Redis 6’s new multithreaded I/O feature—motivated by network‑I/O bottlenecks, implemented with lock‑free pending‑read queues that offload reads, writes, and protocol parsing to worker threads while keeping command execution single‑threaded—and demonstrates through a simple benchmark that using four I/O threads roughly doubles GET/SET throughput compared with Redis 5.

Multithreaded I/Obenchmarkc++
0 likes · 11 min read
Redis 6 Multithreaded I/O Implementation and Performance Evaluation
Efficient Ops
Efficient Ops
Aug 7, 2019 · Databases

Mastering Redis Persistence: RDB vs AOF Explained

This article explores Redis persistence mechanisms, detailing how RDB snapshots and AOF append‑only logs work, how to configure them, their advantages and drawbacks, and guidance on choosing the right strategy for reliable data storage.

AOFNoSQLPersistence
0 likes · 13 min read
Mastering Redis Persistence: RDB vs AOF Explained
High Availability Architecture
High Availability Architecture
Aug 6, 2019 · Databases

Deep Dive into Redis 6 Multithreaded I/O: Architecture, Code Walkthrough, and Performance Benchmark

This article analyzes Redis 6's newly introduced multithreaded I/O feature, explains its design and code implementation, presents benchmark configurations and results that show near‑doubling of GET/SET throughput, and discusses practical considerations and limitations of the approach.

Database PerformanceMultithreaded I/Ocode analysis
0 likes · 10 min read
Deep Dive into Redis 6 Multithreaded I/O: Architecture, Code Walkthrough, and Performance Benchmark
Open Source Tech Hub
Open Source Tech Hub
Aug 5, 2019 · Backend Development

How to Implement a Redis‑Backed Queue in ThinkPHP5

This guide explains how to set up ThinkPHP5's built‑in Queue component with a Redis driver, create a custom queue class, configure the queue, produce messages, and run a consumer process, including handling retries, delays, and daemon mode.

Message QueuePHPThinkPHP5
0 likes · 9 min read
How to Implement a Redis‑Backed Queue in ThinkPHP5
ITPUB
ITPUB
Aug 1, 2019 · Databases

Mastering NewLife.Redis: Architecture, Usage, and Performance Tips

This article explains the two‑layer architecture of NewLife.Redis, demonstrates basic and advanced usage with code examples, shares stress‑test results achieving hundreds of thousands of operations per second, and provides practical tips and FAQs for high‑performance Redis deployments.

benchmarkcachingdatabase
0 likes · 11 min read
Mastering NewLife.Redis: Architecture, Usage, and Performance Tips
Java Backend Technology
Java Backend Technology
Jul 29, 2019 · Backend Development

How Redis Powers Distributed Locks: Design, Pitfalls, and Solutions

This article explores the design and implementation of a Redis‑based distributed lock used since 2013, analyzes lock acquisition and release mechanisms, discusses common pitfalls such as expiration handling and race conditions, and presents possible improvements like Lua scripts and Redisson.

concurrencydistributed-lockjava
0 likes · 8 min read
How Redis Powers Distributed Locks: Design, Pitfalls, and Solutions
NetEase Game Operations Platform
NetEase Game Operations Platform
Jul 27, 2019 · Databases

Using Redis Secondary Indexes to Replace FLUSHDB for Targeted Cache Invalidation

The article examines the risks of using the dangerous FLUSHDB command in Redis, explores common alternatives like SCAN, async deletion, and expiration, and proposes a secondary‑index solution using sets and sorted sets to efficiently invalidate only the affected cache entries without blocking the service.

Data StructuresFLUSHDBcache invalidation
0 likes · 11 min read
Using Redis Secondary Indexes to Replace FLUSHDB for Targeted Cache Invalidation
ITPUB
ITPUB
Jul 26, 2019 · Databases

Why KEYS Can Crash Redis and How SCAN Keeps It Responsive

The article explains how using the KEYS command on millions of Redis keys blocks the single‑threaded server, causing outages, and demonstrates how the incremental SCAN command with cursor, MATCH, and COUNT options provides a safe, non‑blocking way to iterate large keyspaces.

KEYSSCANdatabase
0 likes · 5 min read
Why KEYS Can Crash Redis and How SCAN Keeps It Responsive
vivo Internet Technology
vivo Internet Technology
Jul 24, 2019 · Backend Development

Spring Session Implementation Guide: Session Sharing with Redis in Distributed Systems

Spring Session enables distributed session sharing by storing HTTP session data in Redis, using a filter and listener configuration to replace Tomcat’s in‑memory storage, managing three Redis keys with coordinated expirations, and subscribing to keyspace events for reliable cleanup and cross‑instance access.

Distributed SystemsSession ManagementSpring Session
0 likes · 12 min read
Spring Session Implementation Guide: Session Sharing with Redis in Distributed Systems