Tagged articles

Redis

3508 articles · Page 32 of 36
dbaplus Community
dbaplus Community
May 29, 2019 · Databases

Redis Replication Deep Dive: PSYNC, Full & Partial Sync, Heartbeats and Async Writes

This guide explains Redis replication in depth, detailing the step‑by‑step slave‑of initiation, the PSYNC command’s role in data synchronization, the full and partial sync processes, heartbeat mechanisms, and asynchronous write propagation, while highlighting key configuration parameters and performance considerations.

DatabasePSYNCPartial Sync
0 likes · 11 min read
Redis Replication Deep Dive: PSYNC, Full & Partial Sync, Heartbeats and Async Writes
ITPUB
ITPUB
May 27, 2019 · Databases

Mastering Redis Data Types: Practical Tips and Real-World Use Cases

This article introduces Redis as an open‑source in‑memory store, outlines its core data structures—strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, and geospatial indexes—and provides concrete command examples, application scenarios, and best‑practice guidelines for effective usage.

CacheData StructuresHash
0 likes · 7 min read
Mastering Redis Data Types: Practical Tips and Real-World Use Cases
Java Captain
Java Captain
May 21, 2019 · Backend Development

QR Code Login Mechanism: Web and Mobile Interaction Overview

This article explains the QR‑code login process, detailing how the web front‑end, server, Redis store, and mobile application cooperate to generate a QR code, verify the scan, and complete user authentication using tokens and UUIDs.

AuthenticationQR Code LoginRedis
0 likes · 5 min read
QR Code Login Mechanism: Web and Mobile Interaction Overview
Architecture Talk
Architecture Talk
May 20, 2019 · Databases

From Zero to Redis Mastery: Why and How to Use Its Core Features

This article walks through Redis from a basic overview to advanced features such as persistence, Sentinel, clustering, data types, transactions, Lua scripting, pipelining, and distributed locks, illustrating each concept with practical examples and explaining when and why to use them in real‑world applications.

Data TypesPersistenceRedis
0 likes · 14 min read
From Zero to Redis Mastery: Why and How to Use Its Core Features
macrozheng
macrozheng
May 13, 2019 · Backend Development

How to Secure a Spring Boot API with Spring Security and JWT

This tutorial shows how to integrate Spring Security and JWT into a Spring Boot backend to implement user login and authorization, configure Swagger‑UI to automatically include the token, and provides all necessary code snippets, configuration files, and utility classes for a complete authentication solution.

JavaRedisSpring Security
0 likes · 21 min read
How to Secure a Spring Boot API with Spring Security and JWT
macrozheng
macrozheng
May 10, 2019 · Backend Development

How to Integrate Redis for SMS Verification in a Spring Boot Mall Project

This guide walks you through installing Redis, adding Maven dependencies, configuring Spring Boot, creating a Redis service interface and implementation, and building controller endpoints to generate and verify SMS verification codes, complete with code examples and deployment instructions.

Backend IntegrationCacheJava
0 likes · 10 min read
How to Integrate Redis for SMS Verification in a Spring Boot Mall Project
dbaplus Community
dbaplus Community
May 9, 2019 · Databases

Exporting Redis Slowlog to Elasticsearch with a Customized rsbeat

This guide explains how to overcome Redis slowlog retention limits by modifying rsbeat to collect and ship slowlog entries—including sentinel and cluster support—to Elasticsearch, where Kibana can be used for detailed analysis and visualization.

BeatsDatabase MonitoringElasticsearch
0 likes · 7 min read
Exporting Redis Slowlog to Elasticsearch with a Customized rsbeat
Efficient Ops
Efficient Ops
May 9, 2019 · Operations

Master ELK Log Processing: Encoding, Multiline, Grok, and Performance Tuning

This article compiles practical ELK knowledge, covering character‑set conversion, removing unwanted log lines, Grok pattern handling for multi‑line logs, multiline plugin usage in Filebeat and Logstash, date filtering, log type classification, performance optimization, Redis buffering, and Elasticsearch node tuning.

ELKElasticsearchFilebeat
0 likes · 16 min read
Master ELK Log Processing: Encoding, Multiline, Grok, and Performance Tuning
Architects' Tech Alliance
Architects' Tech Alliance
May 9, 2019 · Databases

From Single‑Node to Distributed: The Evolution of Modern Database Services

This article traces the historical laws that drove computing growth, examines how Redis, MongoDB and Memcached evolved, compares client‑side, proxy and compute‑storage‑separated architectures, evaluates their trade‑offs, and answers common questions about cloud‑based distributed databases.

Cloud databasesCompute-Storage SeparationDatabase Architecture
0 likes · 23 min read
From Single‑Node to Distributed: The Evolution of Modern Database Services
macrozheng
macrozheng
May 4, 2019 · Backend Development

Explore the Full‑Featured Mall E‑Commerce System Built with Spring Boot & MyBatis

The Mall project is a comprehensive e‑commerce solution featuring a front‑end storefront and back‑office management, implemented with Spring Boot, MyBatis, and a suite of modern technologies such as Redis, Elasticsearch, RabbitMQ, Docker, and more, offering modules for products, orders, marketing, and analytics.

DockerElasticsearchE‑commerce
0 likes · 4 min read
Explore the Full‑Featured Mall E‑Commerce System Built with Spring Boot & MyBatis
Java Captain
Java Captain
Apr 27, 2019 · Databases

Redis Key Design, Command Usage, and Client Best Practices

This guide presents comprehensive best‑practice recommendations for designing Redis keys, choosing appropriate data types, managing key lifecycles, safely using commands, optimizing client connections, handling big keys, and selecting eviction policies to ensure high performance and reliability in production environments.

CacheDatabaseKey Design
0 likes · 12 min read
Redis Key Design, Command Usage, and Client Best Practices
Architect's Tech Stack
Architect's Tech Stack
Apr 25, 2019 · Backend Development

Redis I/O Multiplexing: Design, Implementation, and Code Walkthrough

This article examines Redis's I/O multiplexing mechanism, explaining why it uses non‑blocking models, detailing the Reactor pattern, comparing select, epoll, and kqueue, and providing a thorough walkthrough of the underlying C code that implements event creation, addition, deletion, and polling across platforms.

I/O multiplexingReactor patternRedis
0 likes · 11 min read
Redis I/O Multiplexing: Design, Implementation, and Code Walkthrough
Java Captain
Java Captain
Apr 14, 2019 · Databases

Redis Overview: Features, Use Cases, Data Types, Persistence, Distributed Locks, and Performance

This article provides a comprehensive overview of Redis, covering its definition, common use cases, core functionalities, differences from Memcached, single‑threaded design, cache‑penetration mitigation, supported data types, Java clients, consistency strategies, persistence methods, distributed lock implementation, memory optimization, eviction policies, and typical performance issues.

Data TypesPersistenceRedis
0 likes · 6 min read
Redis Overview: Features, Use Cases, Data Types, Persistence, Distributed Locks, and Performance
Tencent TDS Service
Tencent TDS Service
Apr 4, 2019 · Databases

Understanding Redis Persistence: RDB vs AOF Explained

This article provides a detailed analysis of Redis's two persistence mechanisms—RDB snapshots and AOF logging—covering their core concepts, implementation details, trigger conditions, data safety, performance impact, and recovery speed to help engineers choose the appropriate method for their workloads.

AOFData RecoveryDatabase
0 likes · 11 min read
Understanding Redis Persistence: RDB vs AOF Explained
Architect's Tech Stack
Architect's Tech Stack
Apr 1, 2019 · Databases

Comprehensive Guide to Common Redis Issues and Their Solutions

This article provides an in‑depth overview of why Redis is used, its drawbacks, the reasons behind its single‑threaded speed, data types and use‑cases, expiration policies, memory eviction strategies, consistency challenges with databases, and practical solutions for cache penetration, cache avalanche, and concurrent key competition.

Data ConsistencyMemory ManagementPerformance
0 likes · 15 min read
Comprehensive Guide to Common Redis Issues and Their Solutions
dbaplus Community
dbaplus Community
Mar 28, 2019 · Backend Development

How Distributed Locks Keep High‑Traffic Red‑Packet Systems Consistent

This article explains why traditional in‑process locks fail under massive concurrency, how distributed locks using Redis or Zookeeper ensure atomic updates across many servers, and details practical implementations, pitfalls like deadlocks, and strategies such as key expiration and ephemeral sequential nodes.

Concurrency ControlRedisZookeeper
0 likes · 14 min read
How Distributed Locks Keep High‑Traffic Red‑Packet Systems Consistent
Didi Tech
Didi Tech
Mar 28, 2019 · Backend Development

Distributed Locks: Concepts, Evolution, and Implementation Strategies

Distributed locks provide mutual exclusion across multiple nodes in scalable, reliable systems, and can be implemented via simple Redis SETNX/EX patterns, ZooKeeper’s EPHEMERAL_SEQUENTIAL znodes with watches, or Redisson’s advanced Java‑centric primitives, each offering distinct trade‑offs in simplicity, consistency, and feature richness.

JavaRedisRedisson
0 likes · 21 min read
Distributed Locks: Concepts, Evolution, and Implementation Strategies
Java Architecture Diary
Java Architecture Diary
Mar 24, 2019 · Backend Development

How to Extend Spring Cache for Multi‑Tenant Isolation and TTL

This article explains Spring's annotation‑based caching, analyzes why the default cache key collides in multi‑tenant scenarios, shows how to embed tenant identifiers into keys, and provides a custom CacheManager implementation that parses TTL from the cache name and applies it to Redis entries.

CacheManagerJavaRedis
0 likes · 5 min read
How to Extend Spring Cache for Multi‑Tenant Isolation and TTL
NetEase Game Operations Platform
NetEase Game Operations Platform
Mar 23, 2019 · Backend Development

Implementing a Redis‑Based Distributed Lock to Ensure Data Consistency in a CMDB System

This article analyzes data‑inconsistency problems caused by concurrent multithreaded updates in a CMDB system and presents a step‑by‑step exploration of synchronization solutions, ultimately implementing a robust Redis‑backed distributed lock in Python to guarantee atomic reads and writes while handling edge cases such as crashes and lock expiration.

CMDBData ConsistencyPython
0 likes · 17 min read
Implementing a Redis‑Based Distributed Lock to Ensure Data Consistency in a CMDB System
JD Tech Talk
JD Tech Talk
Mar 19, 2019 · Backend Development

Design and Implementation of JD Finance’s LEGO Backend System for Dynamic Page Configuration

The article describes the motivation, analysis, architecture, performance optimizations, development challenges, and future plans of JD Finance’s LEGO backend platform, which uses Spring Boot, SpEL, Redis, and reactive programming to enable dynamic, high‑performance page configuration for a high‑traffic mobile app.

Performance OptimizationReactive ProgrammingRedis
0 likes · 10 min read
Design and Implementation of JD Finance’s LEGO Backend System for Dynamic Page Configuration
MaGe Linux Operations
MaGe Linux Operations
Mar 10, 2019 · Backend Development

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

This article explains Redis's memory model—including memory statistics, allocation, internal data structures like redisObject and SDS, object type encodings, and practical techniques for estimating usage, reducing fragmentation, and optimizing memory consumption—providing developers with actionable insights for high‑performance backend systems.

Memory ManagementRedisbackend development
0 likes · 31 min read
Unlocking Redis Memory: Deep Dive into Its Internal Model and Optimization
Efficient Ops
Efficient Ops
Mar 5, 2019 · Operations

Why Your Redis and MySQL Connections Time Out on Alibaba Cloud—and How to Fix Them

This article explains how idle TCP connections are silently dropped by Alibaba Cloud security groups, causing Redis client timeouts and MySQL JDBC CommunicationsExceptions, and provides step‑by‑step diagnostics and configuration changes—including TCP keepalive and wait_timeout tweaks—to prevent the failures.

Alibaba CloudHikariCPMySQL
0 likes · 20 min read
Why Your Redis and MySQL Connections Time Out on Alibaba Cloud—and How to Fix Them
Java Captain
Java Captain
Mar 3, 2019 · Databases

Redis Overview: Architecture, Persistence, High Availability, and Client Features

This article explains Redis as an in‑memory data store used for caching, database, and messaging, walks through its evolution from simple HTTP caching to dedicated servers, and details server‑side features like persistence, Sentinel, replication, clustering, as well as client‑side capabilities such as rich data types, transactions, Lua scripting, pipelining, and distributed locks.

ClusterDatabasePersistence
0 likes · 11 min read
Redis Overview: Architecture, Persistence, High Availability, and Client Features
Tencent Cloud Developer
Tencent Cloud Developer
Feb 27, 2019 · Operations

Operational Challenges and Strategies for Tencent Cloud Redis

Facing metadata inconsistency, ten‑thousand‑device scale, and the need for intelligent, event‑driven automation, Tencent Cloud Redis’s sole operations lead built a unified DB‑CMDB, a job‑platform for reusable workflows, and AI‑assisted scheduling, transforming DBAs into developer‑operators and driving 300% efficiency gains.

AutomationDevOpsRedis
0 likes · 9 min read
Operational Challenges and Strategies for Tencent Cloud Redis
Programmer DD
Programmer DD
Feb 27, 2019 · Backend Development

Mastering Redis Distributed Locks with Redisson: From Simple Locks to Redlock

This article explains how to implement ordinary Redis distributed locks and the advanced Redlock algorithm using Redisson across single‑node, sentinel, and cluster architectures, provides complete Java code examples, and addresses common questions about expiration, high availability, and comparisons with Zookeeper.

JavaRedisRedisson
0 likes · 11 min read
Mastering Redis Distributed Locks with Redisson: From Simple Locks to Redlock
Java Backend Technology
Java Backend Technology
Feb 24, 2019 · Backend Development

Top Java Backend Interview Questions: Microservices, Redis, MySQL & More

This article compiles a comprehensive set of interview questions encountered across four technical rounds and an HR session for a major Chinese tech company, covering Java backend architecture, microservices design, RocketMQ, Redis internals, database consistency, networking, algorithms, and practical troubleshooting tips.

InterviewJavaMySQL
0 likes · 7 min read
Top Java Backend Interview Questions: Microservices, Redis, MySQL & More
Java Captain
Java Captain
Feb 23, 2019 · Databases

Redis Internal Data Structures and Object Implementations

This article provides a comprehensive overview of Redis, covering its core concepts, common use cases, and detailed explanations of internal objects such as redisObject, dictEntry, SDS, and the underlying data structures for String, List, Hash, Set, and ZSet, including code snippets and performance characteristics.

C programmingIn-Memory DatabaseMemory Management
0 likes · 16 min read
Redis Internal Data Structures and Object Implementations
360 Tech Engineering
360 Tech Engineering
Feb 20, 2019 · Databases

Pika Best Practices: 30 Tips for Optimizing the RocksDB‑Based Redis‑Compatible Storage

This article presents thirty practical recommendations for deploying, configuring, and maintaining Pika—a high‑capacity, RocksDB‑backed Redis‑compatible storage system—covering version selection, thread settings, hardware choices, key design, memory management, replication, backup, compaction, security, and monitoring to achieve reliable and high‑performance operation.

PikaRedisRocksDB
0 likes · 16 min read
Pika Best Practices: 30 Tips for Optimizing the RocksDB‑Based Redis‑Compatible Storage
360 Tech Engineering
360 Tech Engineering
Feb 20, 2019 · Databases

Pika 3.0 New Features Overview

Pika 3.0, the open‑source C++ Redis‑compatible storage built on RocksDB, introduces a new Blackwidow engine, enhanced binlog, and optimized server layer, delivering higher interface performance, reduced disk usage, extended key length, full ZSET compatibility, and improved overall efficiency.

C++DatabasePika
0 likes · 3 min read
Pika 3.0 New Features Overview
Programmer DD
Programmer DD
Feb 20, 2019 · Fundamentals

Mastering Redis Redlock: A Deep Dive into Distributed Lock Implementation

This article explains the classic Redis distributed lock using SETNX and Lua, highlights its pitfalls, introduces the advanced Redlock algorithm with step‑by‑step acquisition and release procedures, and provides concrete Java Redisson code examples, illustrating how to implement reliable distributed locks across multiple Redis nodes.

JavaRedisRedisson
0 likes · 12 min read
Mastering Redis Redlock: A Deep Dive into Distributed Lock Implementation
Efficient Ops
Efficient Ops
Feb 11, 2019 · Databases

Best Redis Cluster Options: Client Sharding, Proxy, Codis, Official

Redis, a high‑performance NoSQL database, offers multiple clustering approaches—including client‑side sharding, proxy‑based solutions like Twemproxy and Codis, and the native Redis Cluster—each with distinct trade‑offs in scalability, availability, operational complexity, and performance, guiding engineers to select the optimal architecture for their workloads.

ClusteringCodisDatabase
0 likes · 15 min read
Best Redis Cluster Options: Client Sharding, Proxy, Codis, Official
Java Captain
Java Captain
Feb 9, 2019 · Databases

Evolution of Redis Cluster Architecture and Interview Tips

This article reviews the progression of Redis high‑availability solutions—from simple replication with Sentinel, through proxy‑based setups, to native Redis Cluster—explains their advantages and drawbacks, and provides practical interview Q&A tips for candidates.

ClusterDatabaseInterview
0 likes · 9 min read
Evolution of Redis Cluster Architecture and Interview Tips
Java Captain
Java Captain
Jan 29, 2019 · Backend Development

Implementing a Simple Seckill (Flash Sale) Using Redis Distributed Locks in Java

This article explains the business background of a flash‑sale (seckill) scenario, analyzes naive locking approaches, introduces Redis‑based distributed locks, and provides a complete Java demo with custom annotations, dynamic proxies, and a multithreaded test to ensure correct inventory decrement under high concurrency.

AnnotationJavaRedis
0 likes · 15 min read
Implementing a Simple Seckill (Flash Sale) Using Redis Distributed Locks in Java
ITPUB
ITPUB
Jan 28, 2019 · Databases

How to Prevent Redis Single‑Point Failures with Sentinel and Master‑Slave Replication

This article explains Redis’s key features and common use cases, highlights the risks of single‑node deployments, compares two master‑slave replication architectures, and outlines their pros and cons, and details how Redis Sentinel provides automated monitoring, failover, and configuration to achieve high availability.

DatabaseRedisSentinel
0 likes · 10 min read
How to Prevent Redis Single‑Point Failures with Sentinel and Master‑Slave Replication
dbaplus Community
dbaplus Community
Jan 27, 2019 · Databases

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

This article walks through the design of a highly available Redis deployment, explains common failure scenarios, compares single‑node, master‑slave, and multi‑Sentinel architectures, and shows how adding a virtual IP and three Sentinel instances can provide robust HA while keeping client usage simple.

DatabaseRedisSentinel
0 likes · 13 min read
How to Build a Highly Available Redis Service with Sentinel and Virtual IP
Java High-Performance Architecture
Java High-Performance Architecture
Jan 22, 2019 · Backend Development

How to Prevent Inventory Over‑Selling in High‑Concurrency Systems

Learn why inventory over‑selling occurs under high concurrency, and explore three practical solutions—pessimistic locking, optimistic locking with version control, and Redis‑Lua scripting—detailing their implementation steps, advantages, and drawbacks to help you choose the best approach for reliable stock management.

InventoryLuaRedis
0 likes · 7 min read
How to Prevent Inventory Over‑Selling in High‑Concurrency Systems
Programmer DD
Programmer DD
Jan 21, 2019 · Fundamentals

Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown? A Deep Dive

This article explains the principles behind TCP's three‑way handshake and four‑way teardown, covering connection establishment, data transfer, termination, header fields, state diagrams, sequence‑number wraparound, SYN‑flood attacks, mitigation techniques, and a practical Redis packet‑capture analysis, all illustrated with diagrams and code snippets.

Four‑Way TeardownRedisSYN Flood
0 likes · 23 min read
Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown? A Deep Dive
NetEase Game Operations Platform
NetEase Game Operations Platform
Jan 19, 2019 · Databases

Design and Implementation of Redis Application Layer Protocol (RESP) and Its Python Clients

This article explains the RESP protocol used by Redis, details its five data types, demonstrates pipeline handling with raw sockets, examines the parsing and command‑packing logic of the redis‑py client, analyzes the pipeline implementation and limitations of redis‑py‑cluster, and speculates on upcoming RESP3 features.

DatabasePipelinePython
0 likes · 20 min read
Design and Implementation of Redis Application Layer Protocol (RESP) and Its Python Clients
Zhuanzhuan Tech
Zhuanzhuan Tech
Jan 17, 2019 · Backend Development

Design and Refactoring of the Book Outbound Service with SN Allocation and Concurrency Management

The article describes the challenges of handling book outbound operations—matching SN codes, ensuring data consistency, and avoiding lock contention—and outlines a comprehensive refactor that separates business logic, standardizes APIs, adopts asynchronous processing, and leverages Redis sets to achieve high‑performance, reliable SN allocation.

InventoryRedisRefactoring
0 likes · 10 min read
Design and Refactoring of the Book Outbound Service with SN Allocation and Concurrency Management
21CTO
21CTO
Jan 14, 2019 · Backend Development

How SuNing Financial Scaled Its Red Envelope System for Billion-User Peaks

This article details SuNing Financial’s red‑envelope platform architecture and evolution, covering high‑concurrency challenges, traffic shaping, asynchronous processing, multi‑level caching, Redis‑based distributed locks, task scheduling, payment‑chain isolation, high‑availability deployment, multi‑layer flow control, monitoring, and future scalability directions.

Distributed LocksRediscaching
0 likes · 14 min read
How SuNing Financial Scaled Its Red Envelope System for Billion-User Peaks
dbaplus Community
dbaplus Community
Jan 6, 2019 · Databases

Inside Redis: How Memory Structures and Encoding Power Its 5 Data Types

This article explains how Redis stores and encodes its five data types by using various in‑memory data structures such as SDS strings, linked lists, quicklists, hash tables, skip‑lists, intsets and zip‑lists, and it also covers object mapping, expiration policies, LRU eviction, and the RDB/AOF persistence mechanisms.

Data StructuresMemory ManagementPersistence
0 likes · 25 min read
Inside Redis: How Memory Structures and Encoding Power Its 5 Data Types
ITPUB
ITPUB
Jan 5, 2019 · Databases

Why PostgreSQL Captured the 2018 DB-Engines DBMS of the Year Award

The 2018 DB-Engines ranking crowned PostgreSQL as the top DBMS, highlighting its 30‑year evolution, strong community, and expanding features, while MongoDB and Redis secured the runner‑up and third places respectively, and the January 2019 popularity scores showed continued shifts among major database systems.

DB-EnginesDatabase RankingsMongoDB
0 likes · 5 min read
Why PostgreSQL Captured the 2018 DB-Engines DBMS of the Year Award
Sohu Tech Products
Sohu Tech Products
Jan 2, 2019 · Databases

Comprehensive Redis Guide: Overview, Use Cases, Performance, Data Structures, Commands, Configuration, and Best Practices

This article provides a detailed overview of Redis as an open‑source, in‑memory data store, covering its core features, common use cases such as caching and leaderboards, high‑performance characteristics, essential data structures and commands, configuration options, and practical recommendations for production deployment.

ConfigurationData StructuresIn-Memory Database
0 likes · 11 min read
Comprehensive Redis Guide: Overview, Use Cases, Performance, Data Structures, Commands, Configuration, and Best Practices
MaGe Linux Operations
MaGe Linux Operations
Dec 25, 2018 · Databases

Unlocking Redis: How Its Memory Model Impacts Performance and Cost

This article explains Redis's memory model—including memory statistics, allocation strategies, object types, internal encodings, and practical optimization techniques—so developers can accurately estimate memory usage, reduce fragmentation, and improve overall system efficiency.

Memory ModelOptimizationRedis
0 likes · 31 min read
Unlocking Redis: How Its Memory Model Impacts Performance and Cost
vivo Internet Technology
vivo Internet Technology
Dec 18, 2018 · Databases

2018 3306π 深圳站年会 - Database Technologies and Practices

The 2018 3306π Shenzhen annual conference, co‑hosted by the 3306π community, Zhishu Hall and vivo, attracted over 150 attendees and featured expert talks on MySQL 8.0, open‑source data‑transfer middleware, TDSQL for finance, RadonDB, InnoDB enhancements, large‑scale Redis clusters, and Youzan database operations, with presentation materials available online.

Database ArchitectureMongoDBMySQL
0 likes · 3 min read
2018 3306π 深圳站年会 - Database Technologies and Practices
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 17, 2018 · Databases

Resolving Data Inconsistency Between Redis Cache and MySQL Database

In high‑concurrency scenarios, using Redis as a buffer can improve performance, but without proper strategies such as delayed double‑delete, cache expiration, or asynchronous binlog‑driven updates, inconsistencies between Redis and MySQL may arise, so this article explains the causes and presents four practical solutions.

Cache ConsistencyData synchronizationMySQL
0 likes · 6 min read
Resolving Data Inconsistency Between Redis Cache and MySQL Database
Efficient Ops
Efficient Ops
Dec 16, 2018 · Databases

Understanding Redis Data Structures, Persistence, Transactions, and Replication

This article explains Redis's core data types—String, Hash, List, Set, and Sorted Set—its internal object model, persistence options (RDB and AOF) with their pros and cons, transaction characteristics, master‑slave replication mechanisms, and common caching scenarios and design considerations.

Data StructuresPersistenceRedis
0 likes · 10 min read
Understanding Redis Data Structures, Persistence, Transactions, and Replication
MaGe Linux Operations
MaGe Linux Operations
Dec 15, 2018 · Databases

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

This comprehensive guide explains Redis fundamentals, its rich data structures and common commands, then dives into performance optimization, replication, and clustering, offering practical examples and best‑practice recommendations for building reliable, high‑performance Redis deployments.

ClusterData StructuresPerformance Tuning
0 likes · 32 min read
Mastering Redis: Core Data Structures, Commands, and Performance Tuning
ITPUB
ITPUB
Dec 12, 2018 · Databases

Why Did Redis Slowlog Show 1800 ms Delays? Uncovering a Kernel Time‑Source Bug

During a Redis container migration, slowlog entries suddenly reported 1800 ms latency despite low QPS, leading to a deep investigation that traced the anomaly to a kernel bug affecting the Time Stamp Counter on Skylake‑X CPUs and improper use of gettimeofday for timing.

Rediscontainerizationkernel bug
0 likes · 9 min read
Why Did Redis Slowlog Show 1800 ms Delays? Uncovering a Kernel Time‑Source Bug
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.

JavaMySQLPerformance Optimization
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.

Redisbackend architecturehigh-concurrency
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.

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

ClusteringData StructuresIn-Memory Cache
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.

HooksMessage MiddlewareRedis
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 SeparationRediscaching
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.

DatabasePerformance TuningRedis
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.

IP blacklistLuaRedis
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.

JavaLuaRedis
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 PerformanceHot KeyRead-Write Separation
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.

LuaMessage QueueRedis
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 MigrationDatabase
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.

CacheClusteringIn-Memory Database
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 ClientPerformance Tuning
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.

API designGoLottery System
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 EnginePikaRedis
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.

LBSMongoDBRedis
0 likes · 10 min read
How MongoDB Boosted LBS Query Performance by Over 10×
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.

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

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

DockerElasticsearchGrok
0 likes · 27 min read
Master Logstash: Essential Commands and Top Log Collection Plugins