Tagged articles
3240 articles
Page 30 of 33
Java Captain
Java Captain
Dec 12, 2018 · Backend Development

Integrating Redis with Java for a Seckill Application and Optimizing with MySQL Stored Procedures

This guide walks through downloading and installing Redis, adding Java dependencies, creating a Redis DAO with Protostuff serialization, configuring Spring beans, caching seckill data, implementing a MySQL stored procedure for atomic execution, mapping it with MyBatis, updating service and controller layers, and testing the entire workflow.

SeckillStored Procedurejava
0 likes · 8 min read
Integrating Redis with Java for a Seckill Application and Optimizing with MySQL Stored Procedures
Programmer DD
Programmer DD
Dec 12, 2018 · Databases

Essential Redis Health Metrics Every Engineer Should Monitor

This guide explains how to monitor critical Redis health indicators—including ping response, client connections, blocked clients, memory usage, fragmentation, cache hit rate, OPS, persistence status, expired keys, and slow logs—to ensure optimal performance and prevent failures.

CacheMemoryPersistence
0 likes · 7 min read
Essential Redis Health Metrics Every Engineer Should Monitor
Zhuanzhuan Tech
Zhuanzhuan Tech
Dec 8, 2018 · Backend Development

Implementation and Optimization of a High-Concurrency Live Quiz System

This article details the design and performance optimization of a live quiz platform, covering overall architecture, user info retrieval, answer submission handling, anti-cheating measures, and Tomcat configuration, highlighting techniques such as request distribution, in‑process caching, asynchronous processing, MQ peak‑shaving, and Redis aggregation.

Backend Architecturehigh concurrencylive quiz
0 likes · 11 min read
Implementation and Optimization of a High-Concurrency Live Quiz System
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 7, 2018 · Databases

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

This guide outlines comprehensive best‑practice recommendations for Alibaba Cloud Redis, covering key naming conventions, value size limits, safe command usage, client connection strategies, memory eviction policies, and useful auxiliary tools to improve reliability and performance.

Client ConfigurationCommand OptimizationKey Design
0 likes · 7 min read
Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Configuration, and Tools
ITPUB
ITPUB
Dec 7, 2018 · Databases

Mastering Redis High Availability: Sentinel, Cluster, and Real‑World Architectures

This article provides a comprehensive guide to Redis high‑availability solutions, detailing Sentinel principles, multiple HA architectures such as DNS‑based, VIP‑based, Keepalived, Redis Cluster, Twemproxy and Codis, and shares practical best‑practice recommendations for deployment and failover.

Clusterhigh availabilityredis
0 likes · 14 min read
Mastering Redis High Availability: Sentinel, Cluster, and Real‑World Architectures
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Dec 6, 2018 · Databases

Redis vs Memcached: Which In‑Memory Cache Wins for Complex Data?

Redis and Memcached differ significantly in data structure support, memory efficiency, performance, memory management, persistence options, and clustering capabilities, with Redis offering richer data types, server‑side operations, configurable persistence, and native clustering, while Memcached provides simpler key‑value storage, slab allocation, and client‑side distribution.

Data StructuresIn-Memory CacheMemcached
0 likes · 17 min read
Redis vs Memcached: Which In‑Memory Cache Wins for Complex Data?
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Nov 29, 2018 · Databases

An Overview of Redis: Data Types, Features, Persistence, Clustering, and Use Cases

Redis is an open-source, in‑memory key‑value store written in C that supports multiple data structures, offers high‑performance caching, persistence via RDB and AOF, various clustering solutions such as Codis and native Redis Cluster, and is widely used for caching, ranking, session management, queues, and pub/sub.

In-Memory DatabaseMessage QueuePersistence
0 likes · 7 min read
An Overview of Redis: Data Types, Features, Persistence, Clustering, and Use Cases
37 Interactive Technology Team
37 Interactive Technology Team
Nov 28, 2018 · Game Development

Business System Architecture Design: An Engineer's Guide to Game Event Systems

The article explains how engineers can design robust game special‑event systems by abstracting features into reusable components, applying hook‑based extensibility, and using asynchronous message middleware to handle diverse, time‑critical, high‑risk operations, illustrated with the 37 Platform’s event architecture and configuration‑driven flexibility.

Message MiddlewareSystem Architecturehooks
0 likes · 9 min read
Business System Architecture Design: An Engineer's Guide to Game Event Systems
Java Backend Technology
Java Backend Technology
Nov 27, 2018 · Databases

How to Tackle Hotspot Key Bottlenecks in High‑Traffic Systems

Hotspot keys, caused by massive read‑heavy traffic or server limits, can overload network cards, crash cache shards, and trigger DB bottlenecks, but by employing server‑side caching, Memcache/Redis, local caches, read‑write separation, and proactive hotspot detection, systems can mitigate these issues and scale efficiently.

Read-Write Separationcachinghotspot keys
0 likes · 9 min read
How to Tackle Hotspot Key Bottlenecks in High‑Traffic Systems
ITPUB
ITPUB
Nov 21, 2018 · Databases

Why Is Redis Lagging? Key Causes and Practical Fixes

This article explains the main factors that cause Redis latency—including network bottlenecks, Redis’s single‑threaded design, deployment choices, OS settings, and slow commands—and provides concrete commands and best‑practice solutions to diagnose and reduce the delay.

Latencydatabaseperformance tuning
0 likes · 6 min read
Why Is Redis Lagging? Key Causes and Practical Fixes
21CTO
21CTO
Nov 21, 2018 · Backend Development

How to Build a Dynamic IP Blacklist with Nginx, Lua, and Redis

This guide explains how to create a dynamic IP blacklist using Nginx, Lua, and Redis, covering the background, architecture options, step‑by‑step implementation, and the advantages of a lightweight, shared, and easily updatable solution.

BackendLuaNginx
0 likes · 3 min read
How to Build a Dynamic IP Blacklist with Nginx, Lua, and Redis
Java Captain
Java Captain
Nov 19, 2018 · Backend Development

Implementing a Red Packet System with Redis, Lua Scripts, and Spring Async

This article explains how to build a high‑performance red‑packet (hong‑bao) service by configuring a RedisTemplate in Spring, writing an atomic Lua script for stock management, persisting results to a MySQL database via JDBC batch processing, and using @Async to off‑load long‑running tasks, complete with code examples and deployment steps.

AsyncLuajava
0 likes · 17 min read
Implementing a Red Packet System with Redis, Lua Scripts, and Spring Async
Architect's Tech Stack
Architect's Tech Stack
Nov 13, 2018 · Databases

Understanding Hot Key Issues and Effective Solutions in Distributed Caching Systems

This article explains the causes of hot key problems in high‑traffic scenarios, outlines their potential impact on system performance, and presents multiple mitigation strategies—including server‑side caching, Memcache/Redis, local caches, read‑write separation, and proactive hot‑data detection—while comparing their advantages and trade‑offs.

Backend PerformanceDistributed SystemsHot Key
0 likes · 7 min read
Understanding Hot Key Issues and Effective Solutions in Distributed Caching Systems
Architect's Tech Stack
Architect's Tech Stack
Nov 12, 2018 · Backend Development

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

This article explains how to build a high‑concurrency flash‑sale (秒杀) system by separating static page traffic with CDN, using read‑write‑split Redis for early request filtering, applying Lua scripts for atomic inventory deduction, and employing Redis as a simple message queue for asynchronous order persistence.

Backend ArchitectureLuaMessage Queue
0 likes · 9 min read
Designing a High-Concurrency Flash Sale System with Redis Caching and Lua Scripts
Tencent Cloud Developer
Tencent Cloud Developer
Nov 5, 2018 · Databases

Best Practices for Redis Database on the Cloud

In this talk, Tencent Cloud senior engineer Zou Peng outlines cloud‑native best practices for Redis 4.0 clusters, detailing a smart‑proxy architecture with gossip‑based management, lazy‑scan big‑key handling, automatic fail‑over, the high‑performance CKV engine, and practical guidance on scaling, sharding, monitoring, and cost‑effective high‑availability deployment.

ClusterData MigrationProxy
0 likes · 14 min read
Best Practices for Redis Database on the Cloud
Architect's Tech Stack
Architect's Tech Stack
Oct 23, 2018 · Databases

Redis Overview: Features, Data Types, Persistence, Clustering, and Common Interview Questions

This article provides a comprehensive introduction to Redis, covering its core concepts, advantages, data structures, persistence mechanisms, eviction policies, clustering, common usage scenarios, and typical interview questions for developers working with this high‑performance in‑memory key‑value store.

CacheIn-Memory DatabasePersistence
0 likes · 24 min read
Redis Overview: Features, Data Types, Persistence, Clustering, and Common Interview Questions
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 22, 2018 · Databases

Mastering Redis: Core Data Structures, Commands, and Performance Tuning

This comprehensive guide introduces Redis fundamentals, explores its diverse data structures and essential commands, and delves into advanced topics such as persistence, memory management, pipelining, transactions, clustering, and Java client choices, offering practical tips for deployment, optimization, and architectural decisions.

Data StructuresJava ClientPersistence
0 likes · 39 min read
Mastering Redis: Core Data Structures, Commands, and Performance Tuning
Tencent Cloud Developer
Tencent Cloud Developer
Oct 19, 2018 · Backend Development

Design and Implementation of a Go Backend for a Lottery Mini Program

The article describes how to build a Go‑based backend for a WeChat lottery mini‑program using the Echo framework, Tencent Cloud load balancer, Nginx, Redis and MySQL, detailing the system architecture, API design, database and Redis integration, WeChat login flow, activity state machine, and lessons learned.

GoLottery SystemMini Program
0 likes · 12 min read
Design and Implementation of a Go Backend for a Lottery Mini Program
360 Tech Engineering
360 Tech Engineering
Oct 18, 2018 · Databases

Overview of Pika 3.0 New Features

Pika 3.0, a C++ open‑source Redis‑compatible storage built on RocksDB, introduces a new blackwidow engine, an improved binlog system, and a more efficient server layer, delivering higher performance, reduced disk usage, extended key length limits, and full Redis ZSET compatibility.

Database EnginePikaRocksDB
0 likes · 3 min read
Overview of Pika 3.0 New Features
ITPUB
ITPUB
Oct 16, 2018 · Databases

How MongoDB Boosted LBS Query Performance by Over 10×

This article explains the performance bottlenecks of MongoDB's geoNear queries in high‑traffic LBS services, analyzes why dense point clusters cause massive scans, and details the introduction of hintScan and hintCorrectNum parameters that reduced scan size and increased QPS by more than tenfold, even outperforming Redis 3.2.

LBSMongoDBgeoNear
0 likes · 10 min read
How MongoDB Boosted LBS Query Performance by Over 10×
dbaplus Community
dbaplus Community
Oct 15, 2018 · Backend Development

Mastering Server‑Side Caching: Design Patterns, Redis Tips, and Best Practices

This article explores the fundamentals and practical details of server‑side caching in distributed web systems, covering local vs. distributed caches, Redis instance planning, key‑value modeling, persistence, eviction policies, and CRUD operations with performance‑focused recommendations.

Cache DesignDistributed SystemsPersistence
0 likes · 14 min read
Mastering Server‑Side Caching: Design Patterns, Redis Tips, and Best Practices
Meitu Technology
Meitu Technology
Oct 10, 2018 · Backend Development

How Meitu Scaled Twemproxy with Multi‑Process Architecture and Live Reload

This article details Meitu's engineering of a Redis/Memcached proxy platform, describing why twemproxy was chosen, the limitations of its upstream version, the multi‑process redesign with live configuration reload, added latency metrics, reuse‑port handling, Redis master‑slave support, performance testing, and remaining challenges.

MemcachedProxyTwemproxy
0 likes · 12 min read
How Meitu Scaled Twemproxy with Multi‑Process Architecture and Live Reload
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 10, 2018 · Operations

How to Build a Highly Available Redis Service with Sentinel and Virtual IP

This article explains why Redis is a popular in‑memory key‑value store, defines high availability, enumerates failure scenarios, and walks through four incremental architectures—single instance, master‑slave with one Sentinel, dual Sentinel, and three‑Sentinel with VIP—to achieve a robust, production‑grade Redis deployment.

Operationsredissentinel
0 likes · 12 min read
How to Build a Highly Available Redis Service with Sentinel and Virtual IP
Ops Development Stories
Ops Development Stories
Oct 3, 2018 · Operations

Master Logstash: Essential Commands and Top Log Collection Plugins

This guide walks through Logstash fundamentals, from creating basic pipelines with input, filter, and output sections to using common plugins such as grok, mutate, date, geoip, multiline, and integrations with NGINX, rsyslog, Redis, and Docker‑based Logspout, providing practical configuration examples and command‑line tips.

DockerElasticsearchLogstash
0 likes · 27 min read
Master Logstash: Essential Commands and Top Log Collection Plugins
21CTO
21CTO
Sep 28, 2018 · Databases

Mastering NoSQL at Scale: KV Architecture Evolution, Codis+, and Aerospike Insights

In the era of big data, DBAs face higher demands and NoSQL technologies have risen, so this article shares GeTui's KV storage architecture evolution, operational challenges, NoSQL selection criteria, Codis+ enhancements, Aerospike evaluation, monitoring practices, and best‑practice recommendations for scalable database operations.

AerospikeCodisDatabase operations
0 likes · 16 min read
Mastering NoSQL at Scale: KV Architecture Evolution, Codis+, and Aerospike Insights
High Availability Architecture
High Availability Architecture
Sep 18, 2018 · Backend Development

Design and Operation of Zhihu's Redis Platform: Architecture, High Availability, and Scaling

The article details Zhihu's internally built Redis platform, covering its architecture, instance types, high‑availability mechanisms, migration from client‑side sharding to Twemproxy, deployment on Kubernetes, scaling strategies, monitoring tools, and future upgrades, providing valuable insights for backend engineers.

high availabilityredis
0 likes · 23 min read
Design and Operation of Zhihu's Redis Platform: Architecture, High Availability, and Scaling
ITPUB
ITPUB
Sep 13, 2018 · Databases

Why Redis’s Master‑Slave Terminology Sparks Debate and What Changes Are Planned

The Redis community is urging a rename of the master‑slave replication terminology due to social concerns, but the project's lead highlights significant compatibility costs, outlining short‑term compromises and long‑term redesigns while balancing technical feasibility and community expectations.

CompatibilityReplicationTerminology
0 likes · 4 min read
Why Redis’s Master‑Slave Terminology Sparks Debate and What Changes Are Planned
JD Tech
JD Tech
Sep 11, 2018 · Backend Development

Design and Implementation of Distributed Lock Services: Redis, ZooKeeper, and SharkLock

This article explains the principles, requirements, and implementation details of distributed lock services, comparing Redis and ZooKeeper approaches, and introduces SharkLock's design built on SharkStore with Raft-based replication, covering lock acquisition, release, reliability, scaling, and failover mechanisms.

RaftSharkLockZooKeeper
0 likes · 14 min read
Design and Implementation of Distributed Lock Services: Redis, ZooKeeper, and SharkLock
Java Captain
Java Captain
Sep 6, 2018 · Backend Development

Implementation Principles of QR Code Login

This article explains the architecture and step‑by‑step workflow of QR code login, covering how the web front‑end, mobile client, and server (including Redis storage and token verification) cooperate to generate a QR code, poll for authentication, and complete a secure user login.

AuthenticationMobileQR Code Login
0 likes · 7 min read
Implementation Principles of QR Code Login
ITPUB
ITPUB
Sep 3, 2018 · Databases

Why Redis Leads Modern Key‑Value Stores: Features, Use Cases, and Performance

This article provides a comprehensive overview of Redis as a high‑performance, in‑memory key‑value store, explaining its data structures, persistence options, replication, benchmark results, and a wide range of real‑world scenarios where Redis excels over traditional databases.

In-Memory DatabaseUse Caseskey-value store
0 likes · 12 min read
Why Redis Leads Modern Key‑Value Stores: Features, Use Cases, and Performance
Dada Group Technology
Dada Group Technology
Aug 31, 2018 · Backend Development

Design and Evolution of an Order Dispatch System for Instant Delivery Platforms

This article describes the end‑to‑end evolution of a large‑scale order dispatch architecture, covering the shift from simple pool display to algorithmic assignment using data mining, genetic algorithms, timing‑wheel scheduling, and a Redis‑backed implementation to improve delivery efficiency and rider experience.

Backend Architectureinstant deliveryorder dispatch
0 likes · 11 min read
Design and Evolution of an Order Dispatch System for Instant Delivery Platforms
Efficient Ops
Efficient Ops
Aug 26, 2018 · Backend Development

Unlocking Redis Memory: How to Measure, Understand, and Optimize Its Usage

This article explains how to monitor Redis memory usage with the INFO command, interprets key metrics such as used_memory, used_memory_rss, and mem_fragmentation_ratio, and dives into Redis's internal memory layout, including allocators, redisObject, SDS, and the various object types and their encodings.

Data Structuresbackend-developmentjemalloc
0 likes · 25 min read
Unlocking Redis Memory: How to Measure, Understand, and Optimize Its Usage
Architecture Digest
Architecture Digest
Aug 24, 2018 · Databases

Redis High‑Availability Solutions: Architecture Options, Advantages, Disadvantages and Recommendations

This article reviews the common Redis deployment patterns—including single‑instance, master‑slave replication, Sentinel, Cluster and custom solutions—analyzes their strengths and weaknesses, and provides practical configuration tips and recommendations for building reliable, scalable Redis services in production environments.

Clusterredissentinel
0 likes · 12 min read
Redis High‑Availability Solutions: Architecture Options, Advantages, Disadvantages and Recommendations
Java Captain
Java Captain
Aug 22, 2018 · Databases

Understanding Redis: Why It Is So Fast and How Its Single‑Threaded Architecture Works

This article explains Redis’s core concepts, data structures, persistence options, and the reasons behind its exceptional speed—including in‑memory operations, simple data models, single‑threaded design, and efficient I/O multiplexing—while also covering common interview questions about caching and Redis’s threading model.

In-Memory DatabaseSingle Threadinterview
0 likes · 10 min read
Understanding Redis: Why It Is So Fast and How Its Single‑Threaded Architecture Works
dbaplus Community
dbaplus Community
Aug 19, 2018 · Databases

Redis Deployment Options: Pros & Cons of Single, Replication, Sentinel, Cluster, and Custom Solutions

This article examines five common Redis deployment patterns—single instance, master‑slave replication, Sentinel, Cluster, and custom high‑availability solutions—detailing their architectures, advantages, drawbacks, and practical configuration tips to help engineers choose the most suitable setup for their workloads.

ClusterReplicationdatabase
0 likes · 12 min read
Redis Deployment Options: Pros & Cons of Single, Replication, Sentinel, Cluster, and Custom Solutions
Programmer DD
Programmer DD
Aug 18, 2018 · Backend Development

How to Implement Multi-Dimensional Rate Limiting in Spring Cloud Gateway

This guide explains how Spring Cloud Gateway replaces Zuul and provides Redis‑based multi‑dimensional rate limiting, covering Maven dependencies, YAML configuration, custom key resolver beans, stress testing, Redis key monitoring, core Java implementation, and the underlying Lua script.

Spring Cloud Gatewayrate limitingreactive
0 likes · 5 min read
How to Implement Multi-Dimensional Rate Limiting in Spring Cloud Gateway
Didi Tech
Didi Tech
Aug 14, 2018 · Databases

Recap of the Open Source Salon: Latest Developments in Open Source Databases and Streaming Processing

On August 4 2018, Didi Open Source and the Open Source Database Forum hosted a salon where five industry experts presented the latest advances in open‑source databases—covering Redis multi‑data‑center deployment, MySQL InnoDB Cluster, streaming‑processing architecture, PostGIS GIS solutions, and Redis 5.0 features—followed by a Q&A, a prize draw, and a showcase of Didi’s growing open‑source portfolio.

PostGISStreamingdatabase
0 likes · 4 min read
Recap of the Open Source Salon: Latest Developments in Open Source Databases and Streaming Processing
Architects' Tech Alliance
Architects' Tech Alliance
Aug 11, 2018 · Industry Insights

Mastering Cache Architecture: From CDN to Distributed Systems

This article provides a comprehensive overview of caching in large distributed systems, covering CDN, reverse‑proxy, local and distributed caches, popular implementations such as Ehcache, Guava, Memcached and Redis, common pitfalls like consistency and avalanche, and practical solutions with real‑world case studies.

Distributed SystemsEhcacheGuava
0 likes · 11 min read
Mastering Cache Architecture: From CDN to Distributed Systems
58 Tech
58 Tech
Aug 8, 2018 · Databases

58 Cloud DB Platform: Architecture, Automation, and Intelligent Operations

The article presents a detailed case study of the 58 Cloud DB Platform, describing its architecture, automated workflow using Celery and Ansible, and intelligent features such as server selection and alarm merging powered by machine‑learning, highlighting how it streamlines MySQL, Redis, and MongoDB operations for developers and DBAs.

MongoDBOperationsautomation
0 likes · 10 min read
58 Cloud DB Platform: Architecture, Automation, and Intelligent Operations
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 7, 2018 · Backend Development

Understanding Distributed Caching: Use Cases, Memcached vs Redis Comparison, and Common Challenges

This article explains why distributed caching is essential for high‑concurrency systems, outlines typical use cases, compares Memcached and Redis across features and performance, and discusses common problems such as cache avalanche, penetration, warm‑up, update strategies, and degradation.

Backend PerformanceMemcachedcaching strategies
0 likes · 8 min read
Understanding Distributed Caching: Use Cases, Memcached vs Redis Comparison, and Common Challenges
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 3, 2018 · Databases

Understanding Redis Cluster: Architecture, Slot Sharding, Node Management, and High Availability

Redis Cluster is a distributed system that partitions its keyspace into 16,384 hash slots across up to 16,384 nodes, enabling automatic sharding, slot migration, replication, and high‑availability features such as automatic node discovery, master‑slave election, and online resharding without service interruption.

ClusterSlot Migrationdatabase
0 likes · 5 min read
Understanding Redis Cluster: Architecture, Slot Sharding, Node Management, and High Availability
dbaplus Community
dbaplus Community
Jul 30, 2018 · Backend Development

Understanding Redis Persistence: RDB vs AOF and High‑Availability Strategies

This article explains Redis high‑availability concepts, focusing on persistence mechanisms—RDB snapshots and AOF logging—detailing their triggers, execution flows, file formats, configuration options, performance trade‑offs, and practical guidance for choosing and tuning persistence in production environments.

AOFConfigurationPersistence
0 likes · 29 min read
Understanding Redis Persistence: RDB vs AOF and High‑Availability Strategies
Xianyu Technology
Xianyu Technology
Jul 28, 2018 · Big Data

Real-Time Computation Architecture for Non-Timeline Feed Ranking

The paper presents a real‑time computation architecture on Alibaba Cloud Blink that scores and ranks non‑timeline feed items within a sliding 72‑hour window, updating rankings every few minutes, using Redis ZSET for fast retrieval, and discusses scaling optimizations such as interval tuning and external join‑and‑rank services.

Big DataReal‑Time Computingfeed ranking
0 likes · 6 min read
Real-Time Computation Architecture for Non-Timeline Feed Ranking
Meituan Technology Team
Meituan Technology Team
Jul 26, 2018 · Databases

Understanding and Optimizing Redis Rehash Mechanism and Scan Behavior

The article details how Redis’s incremental rehashing can double memory usage and trigger massive key eviction and scan inconsistencies in large‑scale clusters, explains the underlying dictionary structures, demonstrates the cursor bug when tables shrink, and presents a memory‑guard and scan‑cursor patch that resolves both problems.

Memory ManagementRehashSCAN
0 likes · 26 min read
Understanding and Optimizing Redis Rehash Mechanism and Scan Behavior
Java Backend Technology
Java Backend Technology
Jul 26, 2018 · Databases

7 Common Redis Misuse Scenarios and How to Fix Them

This article outlines seven frequent misuse patterns in Redis development—such as improper use of collection types, missing expirations, oversized values, inefficient batch operations, unnecessary requests, poor key naming, and unsafe commands—provides real‑world case analyses, and offers practical recommendations to improve Redis health and performance.

databaseoptimizationperformance
0 likes · 11 min read
7 Common Redis Misuse Scenarios and How to Fix Them
Efficient Ops
Efficient Ops
Jul 18, 2018 · Databases

Mastering Redis: Advanced Types, Replication, Persistence, and Real-World Design

This article explores Redis’s advanced features—including data types, master‑slave, sentinel, and cluster architectures, transaction handling, RDB/AOF persistence, pub/sub messaging, and a practical e‑commerce search case study—providing design insights and best‑practice configurations for high‑availability and performance.

PersistenceReplicationdatabase
0 likes · 10 min read
Mastering Redis: Advanced Types, Replication, Persistence, and Real-World Design
Java Backend Technology
Java Backend Technology
Jul 14, 2018 · Databases

Redis Deep Dive: Core Concepts, Data Types, and Best Practices

This comprehensive guide explains what Redis is, its advantages over memcached, supported data structures, eviction policies, clustering options, persistence mechanisms, memory optimization techniques, and practical use‑cases such as caching, queues, leaderboards, and pub/sub, providing essential knowledge for developers and architects.

Data StructuresIn-Memory DatabasePersistence
0 likes · 26 min read
Redis Deep Dive: Core Concepts, Data Types, and Best Practices
Java Captain
Java Captain
Jul 7, 2018 · Databases

Understanding MySQL Indexes, B+Tree vs Hash, Partitioning, and Redis Fundamentals

This article explains why auto‑increment primary keys are preferred in MySQL, how B+Tree and hash indexes differ, the benefits of composite and partitioned indexes, isolation levels, MVCC, row‑level locking, triggers, stored procedures, optimization tips, MyISAM vs InnoDB, table design guidelines, and also covers Redis architecture, persistence, replication, and eviction policies.

B+TreePartitioningdatabase
0 likes · 28 min read
Understanding MySQL Indexes, B+Tree vs Hash, Partitioning, and Redis Fundamentals
ITPUB
ITPUB
Jun 25, 2018 · Backend Development

How to Implement Global Rate Limiting in Spring Boot with Redis and MySQL

This guide explains how to implement global rate limiting for high‑traffic Spring Boot applications by using Redis caches and MySQL storage, covering request interception, Redis key structures for limits and counters, and dynamic configuration for adding, updating, or deleting limits.

Spring Bootjavarate limiting
0 likes · 4 min read
How to Implement Global Rate Limiting in Spring Boot with Redis and MySQL
dbaplus Community
dbaplus Community
Jun 24, 2018 · Databases

Redis Deep Dive: Why Use It, Pitfalls, and Practical Solutions

This article provides a comprehensive overview of Redis, covering its performance benefits, single‑threaded speed, data types, expiration policies, memory eviction strategies, consistency challenges with databases, and practical techniques for handling cache penetration, snowball effects, and concurrent key conflicts.

Consistencydistributed-lockmemory eviction
0 likes · 15 min read
Redis Deep Dive: Why Use It, Pitfalls, and Practical Solutions
Java Captain
Java Captain
Jun 24, 2018 · Databases

How to Build a Redis Cluster on a Single Linux Machine

This tutorial explains how to set up a six‑node Redis cluster (three masters and three slaves) on one Linux VM by creating separate directories and configuration files for each instance, installing Ruby tools, starting the instances, and using the redis‑trib.rb script to create and verify the cluster.

BackendClusterLinux
0 likes · 5 min read
How to Build a Redis Cluster on a Single Linux Machine
Architecture Digest
Architecture Digest
Jun 24, 2018 · Databases

Designing a High‑Availability Redis Service with Sentinel

This article explains how to build a highly available Redis service using Sentinel, discusses failure scenarios, compares single‑instance, master‑slave, and multi‑Sentinel architectures, and provides practical guidance on deployment, VIP handling, and operational considerations.

Operationsredissentinel
0 likes · 11 min read
Designing a High‑Availability Redis Service with Sentinel
ITPUB
ITPUB
Jun 22, 2018 · Databases

How to Build a Highly Available Redis Service with Sentinel and Virtual IP

This article explains how to design and implement a highly available Redis deployment using master‑slave replication, multiple Redis Sentinel instances, and a virtual IP to provide seamless failover while maintaining simple client connectivity, covering failure scenarios, architecture choices, and practical configuration tips.

databasefailoverhigh availability
0 likes · 12 min read
How to Build a Highly Available Redis Service with Sentinel and Virtual IP
Java Captain
Java Captain
Jun 18, 2018 · Backend Development

Building a Spring Boot Web Application with MyBatis and Redis Caching

This tutorial demonstrates how to quickly build a modern Java web application using Spring Boot, integrate MyBatis as the ORM, configure Redis as a second‑level cache, and write unit tests with H2, providing step‑by‑step code and configuration details for backend developers.

MyBatisSpring Bootbackend-development
0 likes · 17 min read
Building a Spring Boot Web Application with MyBatis and Redis Caching
JD Tech
JD Tech
Jun 14, 2018 · Operations

Design and Implementation of a Lightweight Service Monitoring and Traffic Management System

This article shares the design and implementation of a lightweight, robust, and low‑intrusion monitoring management system for microservice traffic, detailing data collection via client filters, Redis‑based structured storage, alerting, rate‑limiting, degradation, and authorization mechanisms, and discusses performance optimizations and future improvements.

MicroservicesOperationsmonitoring
0 likes · 11 min read
Design and Implementation of a Lightweight Service Monitoring and Traffic Management System
High Availability Architecture
High Availability Architecture
Jun 1, 2018 · Databases

Redis 5.0 New Features and Migration Considerations

The article outlines Redis 5.0's major new capabilities—including Streams, module APIs, enhanced RDB metadata, cluster management improvements, new sorted‑set commands, active memory defragmentation, HyperLogLog upgrades, better memory reporting, HELP sub‑commands, connection performance, bug fixes, and Jemalloc 5.1—while also detailing important migration notes from version 4.0 and providing a reference link to the Streams introduction.

RDBStreamsVersion 5
0 likes · 4 min read
Redis 5.0 New Features and Migration Considerations
ITPUB
ITPUB
May 31, 2018 · Databases

Mastering Redis: Why It’s Fast, Common Pitfalls, and How to Solve Them

This article provides a comprehensive review of Redis, covering why it’s used, its performance advantages, single‑threaded speed, data types and use cases, expiration policies, memory eviction strategies, consistency challenges, and practical solutions for cache penetration, avalanche, and concurrent key competition.

ConsistencyData TypesExpiration
0 likes · 16 min read
Mastering Redis: Why It’s Fast, Common Pitfalls, and How to Solve Them
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 27, 2018 · Databases

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

This article outlines Alibaba Cloud Redis development guidelines, covering key naming conventions, value design, command usage, client configuration, lifecycle management, and recommended tools, providing practical recommendations to avoid common pitfalls, improve performance, and ensure reliable operation of Redis in production environments.

Alibaba CloudKey Designbest practices
0 likes · 9 min read
Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Configuration, and Tools
ITPUB
ITPUB
May 27, 2018 · Databases

Comparing Redis Cluster Architectures: Codis‑Style, Alibaba, Baidu BDRP, JD, and Official Redis Cluster

This article compares several Redis cluster solutions—including Codis‑style architecture, Alibaba Cloud ApsaraCache, Baidu BDRP 2.0, JD's custom implementation, the official Redis Cluster, AWS ElasticCache, and Baidu Tieba's ksarch‑saas—detailing their components, sharding methods, migration strategies, and deployment scenarios.

Alibaba CloudBaiduCluster
0 likes · 8 min read
Comparing Redis Cluster Architectures: Codis‑Style, Alibaba, Baidu BDRP, JD, and Official Redis Cluster
360 Tech Engineering
360 Tech Engineering
May 22, 2018 · Databases

Understanding Redis Rehash Mechanism and Implementation

This article explains how Redis uses a dual‑hashtable structure and a progressive rehash process to handle hash collisions, detailing the rehash conditions, migration steps, and performance implications for in‑memory key‑value storage.

In-Memory DatabaseRehashhash table
0 likes · 6 min read
Understanding Redis Rehash Mechanism and Implementation
Architecture Digest
Architecture Digest
May 17, 2018 · Backend Development

Implementing a Distributed Lock with Redis in Java

This article explains the principles of distributed locks, discusses why they are needed in distributed applications, and provides a complete Java implementation using Redis’s NX and EX parameters, including lock acquisition, blocking and non‑blocking modes, unlocking with Lua scripts, configuration, usage examples, and testing strategies.

concurrencydistributed-lockjava
0 likes · 12 min read
Implementing a Distributed Lock with Redis in Java
dbaplus Community
dbaplus Community
May 15, 2018 · Operations

Why High‑Throughput Redis Still Drops Packets: Deep Dive into Linux Network Stack and Interrupt Optimization

The article investigates massive packet loss in Meituan‑Dianping's Redis service despite 10 Gbps NIC upgrades, traces the issue to kernel receive‑buffer drops and single‑CPU interrupt handling, and presents a step‑by‑step optimization using backlog tuning, CPU and Redis affinity, and NUMA‑aware placement to eliminate drops and improve latency.

InterruptsLinuxNUMA
0 likes · 30 min read
Why High‑Throughput Redis Still Drops Packets: Deep Dive into Linux Network Stack and Interrupt Optimization
Architecture Digest
Architecture Digest
May 14, 2018 · Backend Development

Implementing and Optimizing a High‑Concurrency Flash Sale System with Optimistic Lock, Distributed Rate Limiting, Redis Cache, and Kafka

This article walks through building a Java‑based flash‑sale (秒杀) service, diagnosing overselling issues, and progressively enhancing it with optimistic locking, distributed rate limiting, Redis caching, and asynchronous Kafka processing to achieve higher throughput and data consistency under heavy concurrency.

KafkaPerformance Testingdistributed rate limiting
0 likes · 14 min read
Implementing and Optimizing a High‑Concurrency Flash Sale System with Optimistic Lock, Distributed Rate Limiting, Redis Cache, and Kafka
dbaplus Community
dbaplus Community
May 13, 2018 · Backend Development

Mastering Distributed Cache: Programming Techniques, Sharding Strategies, and Migration Plans

This article explains why distributed caching is essential for high‑traffic services, presents three programming approaches (direct code, Spring‑Data‑Redis injection, and annotation‑based), compares three cache‑access patterns, details sharding models, outlines smooth and offline migration steps, and addresses cache penetration, concurrency, avalanche, and transaction support with concrete code examples.

Cachejavamigration
0 likes · 22 min read
Mastering Distributed Cache: Programming Techniques, Sharding Strategies, and Migration Plans
MaGe Linux Operations
MaGe Linux Operations
Apr 29, 2018 · Backend Development

Unlock Redis Performance: Deep Dive into Its Memory Model and Optimization

This article explains Redis's memory model—including memory statistics, allocation, object structures, internal encoding, and practical optimization techniques—so developers can accurately estimate memory usage, reduce fragmentation, and choose the most efficient data representations for high‑performance applications.

Memory ModelSDSjemalloc
0 likes · 32 min read
Unlock Redis Performance: Deep Dive into Its Memory Model and Optimization
Meitu Technology
Meitu Technology
Apr 23, 2018 · Backend Development

Design and Evolution of Live Streaming Bullet Comment System: From HTTP Polling to Long Connection

Meipai’s live‑stream bullet‑comment platform progressed from an initial HTTP‑polling design supporting one million users, through a high‑availability dual‑room architecture, to a scalable long‑connection system with gRPC routing, dynamic degradation, and caching, solving message ordering, Redis bottlenecks, and ensuring seamless user experience.

bullet comment systemhigh availabilitylive streaming
0 likes · 11 min read
Design and Evolution of Live Streaming Bullet Comment System: From HTTP Polling to Long Connection
Java Backend Technology
Java Backend Technology
Apr 22, 2018 · Backend Development

How to Build a Scalable Short URL Service: Algorithms, Use Cases, and Code

This article explores the concept of short URLs, their practical applications such as social media and QR codes, discusses various generation methods, presents algorithmic designs like incremental ID encoding and caching strategies, and provides a reference implementation for building a reliable URL shortening service.

BackendScalabilityalgorithm
0 likes · 12 min read
How to Build a Scalable Short URL Service: Algorithms, Use Cases, and Code
Java Backend Technology
Java Backend Technology
Apr 18, 2018 · Databases

Unlocking Redis: Deep Dive into Its Memory Model and Optimization Techniques

This article explains Redis’s memory model—including memory statistics, allocation, object structures, internal encodings, and practical optimization strategies—providing detailed insights into how Redis stores data, manages memory fragmentation, and how developers can estimate and reduce memory usage for high‑performance deployments.

Data StructuresMemory Modeljemalloc
0 likes · 30 min read
Unlocking Redis: Deep Dive into Its Memory Model and Optimization Techniques
Java Captain
Java Captain
Apr 18, 2018 · Backend Development

Java Shopping Cart Implementation Using Cookies, Redis, and Spring MVC

This article explains how to implement a shopping cart in Java by handling four login scenarios, defining BuyerCart and BuyerItem beans, using JavaScript and Spring MVC controllers to add items, persisting cart data in cookies or Redis, converting objects to JSON with ObjectMapper, managing sessions, and validating stock before checkout.

CookieShopping CartSpring MVC
0 likes · 17 min read
Java Shopping Cart Implementation Using Cookies, Redis, and Spring MVC
JD Retail Technology
JD Retail Technology
Apr 18, 2018 · Information Security

Secure One‑Time Token Design for Long‑Connection Services

The article explains the challenges of protecting long‑connection services from abuse and presents a one‑time secure token architecture—including gateway SDK, token generation, Redis caching, and verification modules—to ensure authentication, prevent replay attacks, and improve service robustness.

AuthenticationBackendSecurity Token
0 likes · 10 min read
Secure One‑Time Token Design for Long‑Connection Services
ITPUB
ITPUB
Apr 14, 2018 · Databases

Designing a Highly Available Redis Service with Sentinel and Multi‑Sentinel Architecture

This article explains how to define high availability for Redis, enumerates typical failure scenarios, compares four deployment patterns—from a single instance to a three‑sentinel setup—and provides practical steps, diagrams, and tips for achieving reliable Redis service using Sentinel and virtual IP failover.

architecturedatabasefailover
0 likes · 14 min read
Designing a Highly Available Redis Service with Sentinel and Multi‑Sentinel Architecture
MaGe Linux Operations
MaGe Linux Operations
Apr 11, 2018 · Big Data

Master ELK Stack: Install & Configure Elasticsearch, Logstash, Kibana

This step‑by‑step guide walks you through setting up the ELK stack on CentOS 6, covering Elasticsearch repository configuration, Java installation, Elasticsearch tuning, Logstash pipelines, Kibana deployment, Redis integration, and practical log collection for system, Apache, Nginx, and MySQL logs.

ELKElasticsearchInstallation
0 likes · 22 min read
Master ELK Stack: Install & Configure Elasticsearch, Logstash, Kibana
ITPUB
ITPUB
Apr 2, 2018 · Backend Development

How to Share PHP Sessions Across Load‑Balanced Servers Using Redis

This guide explains the session‑sharing problem caused by load balancing, introduces Redis as a shared storage solution, and provides step‑by‑step instructions—including php.ini changes, runtime ini_set calls, and a custom session‑handler class—to configure PHP to store sessions in Redis, with code examples and verification commands.

PHPSessionload balancing
0 likes · 11 min read
How to Share PHP Sessions Across Load‑Balanced Servers Using Redis
Architect's Tech Stack
Architect's Tech Stack
Mar 24, 2018 · Databases

Understanding Redis Persistence: RDB and AOF Mechanisms

This article explains Redis's two persistence methods—RDB snapshots and AOF append‑only logs—including their operation, configuration options, advantages, disadvantages, and guidance on choosing the appropriate strategy for data durability and recovery.

AOFBackupData Recovery
0 likes · 7 min read
Understanding Redis Persistence: RDB and AOF Mechanisms