Tagged articles

Redis

3508 articles · Page 31 of 36
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.

Data StructuresRedisbackend
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.

GoRedisdistributed systems
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.

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

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

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

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

Redishigh-concurrencymarketing
0 likes · 17 min read
How MaFengWo Built a Scalable Marketing Platform for Double‑11: Architecture Insights
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.

CodisRedishigh availability
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.

GoRedisload 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 StructuresHashHash Table
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.

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

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

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

JavaRedisdistributed systems
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 CloudCloud DatabasePerformance Optimization
0 likes · 8 min read
Overview of Alibaba Cloud Redis Architecture and Optimizations
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.

GoRedishigh-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 OptimizationDatabase ScalingRedis
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.

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

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

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

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

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

GoRedishigh-concurrency
0 likes · 18 min read
How to Build a Million‑User Ticket‑Snatching System with Nginx, Go, and Redis
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.

AlgorithmInterviewRedis
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 TypesRedisReplication
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.

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

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

Redisbackendhigh-concurrency
0 likes · 8 min read
Design and Implementation of a Short URL Service in Java
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.

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

Cache PenetrationPHPRedis
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.jsRedis
0 likes · 26 min read
Building a Real‑Time Video Chat Application with Vue, WebRTC, Socket.io, Node.js and Redis
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 multiplexingRedisServer Initialization
0 likes · 13 min read
Inside Redis: How Initialization and Event Loop Power the Server
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.

Bloom filterRedismemory optimization
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 StructuresDatabaseRedis
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-MemoryRedis
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 strategiesPerformanceRedis
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 ShiroAuthenticationJava Security
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.

C++DatabaseMultithreaded I/O
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/ORedis
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 QueuePHPRedis
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.

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

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

Cache invalidationData StructuresFLUSHDB
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.

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

JavaRedisSession management
0 likes · 12 min read
Spring Session Implementation Guide: Session Sharing with Redis in Distributed Systems
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 20, 2019 · Databases

Understanding Redis: Purpose, Usage, Caching Benefits, Differences with Memcached, and Thread Model

This article explains what Redis is, how it is used for caching in projects, the performance and concurrency advantages of caching, common cache pitfalls, key differences between Redis and Memcached, and the internal single‑threaded event‑driven architecture that enables high‑throughput operations.

In-Memory DatabaseMemcachedRedis
0 likes · 11 min read
Understanding Redis: Purpose, Usage, Caching Benefits, Differences with Memcached, and Thread Model
Efficient Ops
Efficient Ops
Jul 16, 2019 · Backend Development

Mastering Cache Strategies with Redis: From Theory to Practical Deployment

This article explores cache fundamentals, common pitfalls like penetration and avalanche, naming conventions, warm‑up techniques, and provides step‑by‑step guidance for setting up Redis master‑slave, testing containers, and optimizing configurations for high‑performance backend systems.

Cache AvalancheCache PenetrationPerformance
0 likes · 10 min read
Mastering Cache Strategies with Redis: From Theory to Practical Deployment
Java Captain
Java Captain
Jul 14, 2019 · Backend Development

Backend Architecture, Distributed Locks, and Session Management in Java

This article explains a Java backend architecture with front‑end/back‑end separation, deployment diagrams, the concepts of thread, process and distributed locks, implementations using database optimistic locking, Redis and Zookeeper, session handling in distributed systems, and various related code examples and best‑practice notes.

JavaRedisbackend development
0 likes · 12 min read
Backend Architecture, Distributed Locks, and Session Management in Java
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 13, 2019 · Databases

Weekly Community Digest: MySQL 8.0.17 New Features, Redis 6 Release, DBLE & DTLE Updates, and Upcoming Shanghai Meetup

This weekly digest summarizes the latest MySQL 8.0.17 enhancements, Redis 6's new RESP3 protocol, free Mycat diagnostics, DBLE and DTLE weekly reports, original technical articles on MySQL fragmentation, dynamic permissions and TempTable engine, plus details of the upcoming Shanghai 3306π meetup.

CommunityDBLEDTLE
0 likes · 7 min read
Weekly Community Digest: MySQL 8.0.17 New Features, Redis 6 Release, DBLE & DTLE Updates, and Upcoming Shanghai Meetup
Programmer DD
Programmer DD
Jul 12, 2019 · Databases

Critical Redis Remote Code Execution Flaw (CNVD‑2019‑21763): Risks & Fixes

A high‑severity Redis remote command execution vulnerability (CNVD‑2019‑21763) discovered in July 2019 allows unauthenticated attackers to load malicious modules and execute arbitrary code, affecting Redis 2.x‑5.x, with no official patch yet and only temporary mitigation steps available.

CNVDDatabase SecurityRedis
0 likes · 3 min read
Critical Redis Remote Code Execution Flaw (CNVD‑2019‑21763): Risks & Fixes
ITPUB
ITPUB
Jul 11, 2019 · Backend Development

How to Prevent Redis Cache Avalanche and Penetration Failures

The article explains what cache avalanche and cache penetration are in Redis, why they can crash databases, and provides practical strategies—including random expiration, high‑availability setups, local caches, rate limiting, Bloom filters, and empty‑object caching—to mitigate these issues and maintain cache‑database consistency.

CacheCache AvalancheCache Penetration
0 likes · 6 min read
How to Prevent Redis Cache Avalanche and Penetration Failures
Java Backend Technology
Java Backend Technology
Jul 11, 2019 · Databases

Understanding Redis: Protocol, ACID Myths, Persistence, and Optimization

Redis, the in‑memory data store, uses a simple RESP text protocol, offers limited ACID‑style transactions without rollback, employs optimistic locking via WATCH, provides multiple persistence options (RDB, AOF, hybrid), optimizes memory with ziplist and quicklist structures, and implements sophisticated replication and expiration strategies to balance performance and resource usage.

In-Memory DatabasePersistenceRedis
0 likes · 23 min read
Understanding Redis: Protocol, ACID Myths, Persistence, and Optimization
Programmer DD
Programmer DD
Jul 10, 2019 · Operations

The Hidden Struggles of Maintaining a Popular Open‑Source Project

An open‑source maintainer shares candid reflections on the psychological pressure, overwhelming community feedback, role shifts, time constraints, fear of losing technical leadership, friction with contributors, and the sense of futility that accompany the stewardship of a widely used project like Redis.

Community ManagementDeveloper PsychologyProject Maintenance
0 likes · 8 min read
The Hidden Struggles of Maintaining a Popular Open‑Source Project
Efficient Ops
Efficient Ops
Jul 8, 2019 · Backend Development

Why Is Redis So Fast? Deep Dive into Its Data Structures and Optimizations

This article explains why Redis achieves exceptional performance by using pure in‑memory operations, a single‑threaded model, efficient data structures like SDS, skip‑list, ziplist, and various encoding and rehash optimizations that reduce memory allocation and CPU overhead.

Data StructuresKV storeRedis
0 likes · 17 min read
Why Is Redis So Fast? Deep Dive into Its Data Structures and Optimizations
Architects' Tech Alliance
Architects' Tech Alliance
Jul 3, 2019 · Databases

Optimizing Redis Persistence with Non‑Volatile Memory: Design, Performance, and Recovery

This article examines how integrating Non‑volatile Memory (NVM) with Redis can replace traditional RDB/AOF persistence, offering a hybrid design that improves durability, reduces recovery time, and maintains high write performance, while discussing implementation details, performance benchmarks, and future optimization challenges.

NVMPerformancePersistence
0 likes · 13 min read
Optimizing Redis Persistence with Non‑Volatile Memory: Design, Performance, and Recovery
Architect's Tech Stack
Architect's Tech Stack
Jul 3, 2019 · Backend Development

Implementing a Distributed Rate Limiter with Redis, Spring Boot, and Lua Scripts

This article demonstrates how to build a distributed rate‑limiting component named shield‑ratelimiter using Redis’s INCR and TTL features, Spring‑Boot‑starter integration, Lua scripting for atomic operations, custom annotations, and AspectJ, providing a robust, configurable solution for limiting API calls in Java backend services.

LuaRedisSpring Boot
0 likes · 16 min read
Implementing a Distributed Rate Limiter with Redis, Spring Boot, and Lua Scripts
Big Data Technology & Architecture
Big Data Technology & Architecture
Jun 24, 2019 · Big Data

Resetting Daily Page View Counters in Spark Streaming Using mapWithState and Timeout

The article explains how to use Spark Streaming's mapWithState operator to count product page views, addresses the issue of daily PV reset by presenting two solutions—restarting the streaming job via a scheduled script and configuring a StreamingContext timeout—plus an alternative approach using Redis for external state management.

RedisSpark Streamingdaily reset
0 likes · 4 min read
Resetting Daily Page View Counters in Spark Streaming Using mapWithState and Timeout
Java Backend Technology
Java Backend Technology
Jun 19, 2019 · Backend Development

Enterprise Redis: Scaling, Monitoring, and Business Isolation

This article explores how enterprises can effectively use Redis by partitioning clusters for independent or shared use, addressing key naming conflicts, implementing graceful scaling with Zookeeper, monitoring performance via Open-Falcon, and quickly isolating problematic business traffic to maintain system stability.

Business IsolationClusterRedis
0 likes · 10 min read
Enterprise Redis: Scaling, Monitoring, and Business Isolation
Java Backend Technology
Java Backend Technology
Jun 15, 2019 · Backend Development

How to Share HTTP Sessions Across Spring Boot Instances with Redis and Nginx

This article explains why session sharing is required in distributed Java back‑ends, demonstrates how Spring Session automatically synchronizes HttpSession data to Redis, and shows step‑by‑step how to configure Spring Boot, Redis, and Nginx to achieve transparent session sharing across multiple service instances.

RedisSpring BootSpring Session
0 likes · 8 min read
How to Share HTTP Sessions Across Spring Boot Instances with Redis and Nginx
macrozheng
macrozheng
Jun 14, 2019 · Operations

Step‑by‑Step: Deploy the Mall Application on Linux Using Docker

This guide walks you through installing Docker on CentOS 7.6 and deploying a complete mall stack—including MySQL, Redis, Nginx, RabbitMQ, Elasticsearch, MongoDB, and a SpringBoot service—inside Docker containers, configuring volumes, ports, firewalls, and testing the APIs.

DockerElasticsearchMySQL
0 likes · 11 min read
Step‑by‑Step: Deploy the Mall Application on Linux Using Docker
ITPUB
ITPUB
Jun 11, 2019 · Databases

Why KEYS Can Crash Your Redis and How SCAN Keeps It Running

The article explains how using the KEYS command on large Redis datasets can block the single‑threaded server and cause outages, and demonstrates how the incremental SCAN command safely retrieves keys without impacting performance, including syntax, options, and practical examples.

DatabaseKEYSPerformance
0 likes · 4 min read
Why KEYS Can Crash Your Redis and How SCAN Keeps It Running
Youzan Coder
Youzan Coder
Jun 5, 2019 · Backend Development

Building a Poster Rendering Service with Puppeteer

The article explains how to build a poster‑rendering service with Puppeteer, detailing its advantages over canvas, the Redis‑based caching and CDN workflow, optimization tricks for headless Chromium, and future plans to boost QPS and pre‑generate popular posters.

CDNCanvas APIPuppeteer
0 likes · 9 min read
Building a Poster Rendering Service with Puppeteer
HomeTech
HomeTech
Jun 5, 2019 · Backend Development

Performance Optimization of a New‑Car E‑commerce CRM System: Distributed Locks with ZooKeeper and Redis Cache Improvements

This article details how a new‑car e‑commerce CRM system was optimized for high availability by introducing ZooKeeper‑based distributed locks, mitigating herd effects, segmenting locks per merchant, and redesigning Redis caching with sorted sets to efficiently rank consultants by daily call volume, resulting in significant performance gains under high concurrency.

JavaPerformance OptimizationRedis
0 likes · 10 min read
Performance Optimization of a New‑Car E‑commerce CRM System: Distributed Locks with ZooKeeper and Redis Cache Improvements
Big Data Technology & Architecture
Big Data Technology & Architecture
Jun 4, 2019 · Databases

Best Practices and Guidelines for Using Alibaba Cloud Redis

This article presents comprehensive Alibaba Cloud Redis development guidelines covering key‑value design, value handling, command usage, client configuration, lifecycle management, related tools, and code examples to help developers avoid common pitfalls and improve performance.

Alibaba CloudBigKey DetectionClient Best Practices
0 likes · 11 min read
Best Practices and Guidelines for Using Alibaba Cloud Redis