Tagged articles

Redis

3508 articles · Page 24 of 36
ITPUB
ITPUB
Sep 3, 2021 · Databases

How Redis Cluster Achieves Linear Scalability and High Availability

This article explains how Redis Cluster uses hash slots for data partitioning, enables near‑linear scaling and fault‑tolerant failover through master‑slave replication, and requires client‑side routing support, while discussing the trade‑off between performance and consistency in distributed systems.

ClusterRedisscalability
0 likes · 8 min read
How Redis Cluster Achieves Linear Scalability and High Availability
IT Architects Alliance
IT Architects Alliance
Sep 2, 2021 · Backend Development

Mastering Cache Strategies: From Local Maps to Distributed Grids

The article categorizes data by change and access frequency, explains cache loading methods, compares local caches (Map, Guava, Spring) with remote solutions like Redis, Memcached, Hazelcast, and addresses common cache issues such as penetration, breakdown, and avalanche, offering practical mitigation techniques including Bloom filters, RoaringBitmap, and load‑balancing strategies.

Bloom filterCache strategiesGuava
0 likes · 12 min read
Mastering Cache Strategies: From Local Maps to Distributed Grids
Tencent Cloud Developer
Tencent Cloud Developer
Sep 2, 2021 · Databases

Understanding Geohash: Principles, Implementation, and Applications

Geohash encodes latitude‑longitude pairs into short base‑32 strings by recursively bisecting coordinate ranges and interleaving bits, allowing fast proximity queries via prefix matching, with precision controlled by string length, and is supported natively in Redis and useful for location‑based services.

PHPPrecisionRedis
0 likes · 12 min read
Understanding Geohash: Principles, Implementation, and Applications
FunTester
FunTester
Sep 2, 2021 · Backend Development

How to Build a Robust Redis Connection Pool Wrapper in Java for Performance Testing

This article walks through creating a reusable Redis connection‑pool manager and a functional wrapper class in Java, explaining pooling concepts, resource recycling, and providing ready‑to‑use methods for common Redis commands to support efficient performance testing with the FunTester framework.

JavaRedisbackend development
0 likes · 18 min read
How to Build a Robust Redis Connection Pool Wrapper in Java for Performance Testing
Programmer DD
Programmer DD
Aug 31, 2021 · Backend Development

Mastering Delayed Tasks: From Quartz to Redis and Beyond

This article compares delayed and scheduled tasks, explores five implementation strategies—including database polling, JDK DelayQueue, time‑wheel algorithm, Redis sorted sets, and RabbitMQ—provides code samples, analyzes pros and cons, and offers practical guidance for building reliable delayed‑task systems.

JavaQuartzRedis
0 likes · 23 min read
Mastering Delayed Tasks: From Quartz to Redis and Beyond
Top Architect
Top Architect
Aug 29, 2021 · Backend Development

Implementation of a Redis-Based Delay Queue in Java

This article explains the design and step‑by‑step implementation of a Redis delay queue using Java and Spring, covering the workflow, core components, task states, public APIs, container classes, timer handling, and testing procedures with complete code examples.

JavaRedisdelay queue
0 likes · 14 min read
Implementation of a Redis-Based Delay Queue in Java
Code Ape Tech Column
Code Ape Tech Column
Aug 29, 2021 · Backend Development

Understanding Idempotency and Preventing Duplicate Submissions in Backend Systems

This article explains the concept of idempotency, the common causes of duplicate submissions in web applications, and presents multiple backend solutions—including frontend button disabling, Post‑Redirect‑Get, session tokens, local locks with Content‑MD5, AOP aspects, and Redis distributed locks—accompanied by complete Java code examples.

AOPJavaRedis
0 likes · 15 min read
Understanding Idempotency and Preventing Duplicate Submissions in Backend Systems
Programmer DD
Programmer DD
Aug 28, 2021 · Databases

How Redis Master‑Slave Replication Works: Handshake, Sync, and Code Walkthrough

Redis, the high‑performance open‑source key‑value store, uses a master‑slave replication mechanism that ensures data redundancy, read/write separation, fault recovery, and high‑availability; this article explains its handshake process, synchronization phases, replication states, and key source‑code functions in detail.

Code WalkthroughDatabaseMaster‑Slave
0 likes · 12 min read
How Redis Master‑Slave Replication Works: Handshake, Sync, and Code Walkthrough
php Courses
php Courses
Aug 27, 2021 · Backend Development

Implementing Redis-Based Rate Limiting in PHP

This article presents a PHP implementation of Redis-based rate limiting, explaining how to limit the number of requests per time interval by using timestamp-modulo keys, atomic increment operations, and key expiration, along with detailed code and step-by-step commentary.

AlgorithmRedisrate limiting
0 likes · 3 min read
Implementing Redis-Based Rate Limiting in PHP
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Aug 26, 2021 · Backend Development

Design and Implementation of a Distributed KV‑Based Message Queue

This article explains the core concepts and detailed design of a custom message queue built on a distributed key‑value store, covering terminology, architecture, broker metadata, topic metadata, message format, sending, storage, retrieval, delay handling, retry mechanisms, dead‑letter queues, and TTL policies.

Consumer GroupDelay MessageDistributed KV
0 likes · 13 min read
Design and Implementation of a Distributed KV‑Based Message Queue
Java Backend Technology
Java Backend Technology
Aug 26, 2021 · Backend Development

How to Implement Reliable Delayed Tasks in Java: From Quartz to Redis and RabbitMQ

This article compares several Java-based delayed‑task solutions—including database polling with Quartz, JDK DelayQueue, Netty’s HashedWheelTimer, Redis sorted‑set or key‑space notifications, and RabbitMQ delayed queues—detailing their implementations, advantages, drawbacks, and practical code examples for reliable order‑timeout handling.

JavaQuartzRedis
0 likes · 19 min read
How to Implement Reliable Delayed Tasks in Java: From Quartz to Redis and RabbitMQ
Code Ape Tech Column
Code Ape Tech Column
Aug 25, 2021 · Backend Development

Common Pitfalls and Best Practices of Distributed Caching with Redis and Memcached

This article examines the characteristics of Redis and Memcached as distributed cache solutions, outlines common design pitfalls such as consistency, cache penetration, breakdown, avalanche, and hot‑key issues, and provides practical strategies—including consistent hashing, binlog‑driven invalidation, message‑queue indexing, and lock mechanisms—to build reliable and high‑performance caching layers in backend systems.

Cache ConsistencyCache invalidationMemcached
0 likes · 18 min read
Common Pitfalls and Best Practices of Distributed Caching with Redis and Memcached
Programmer DD
Programmer DD
Aug 25, 2021 · Databases

Understanding Redis Virtual Memory (VM): Mechanism, Config & Best Practices

This article explains Redis's virtual memory (VM) feature, how it swaps cold data to disk while keeping keys in memory, details configuration parameters, describes the two threading models for data swap-in/out, and highlights why Redis's custom VM implementation boosts performance.

CacheConfigurationDatabase
0 likes · 8 min read
Understanding Redis Virtual Memory (VM): Mechanism, Config & Best Practices
Top Architect
Top Architect
Aug 24, 2021 · Databases

Redis Architecture Options and Deployment Guide

This article reviews Redis's latest features and compares various deployment architectures—including single‑replica, dual‑replica, cluster, and read‑write‑separation modes—detailing their reliability, performance characteristics, suitable use cases, and provides a Java Jedis example for configuring a direct‑connect cluster.

ClusterDatabaseJava
0 likes · 12 min read
Redis Architecture Options and Deployment Guide
IT Architects Alliance
IT Architects Alliance
Aug 23, 2021 · Backend Development

Choosing the Right Distributed Cache: Redis Cluster Deep Dive

This article examines the landscape of cache systems, compares four major categories, evaluates popular distributed caches such as Redis, Memcached, Tair and EvCache, explains Redis Cluster architectures and sharding strategies, and outlines common cache pitfalls with practical mitigation techniques.

Cache ClusterPerformanceRedis
0 likes · 13 min read
Choosing the Right Distributed Cache: Redis Cluster Deep Dive
IT Architects Alliance
IT Architects Alliance
Aug 23, 2021 · Backend Development

Mastering Cache Strategies: From CDN to Distributed Systems

This article provides a comprehensive overview of caching in large distributed systems, covering theory, common components, classification, CDN and reverse‑proxy caches, local application caches, popular implementations like Ehcache, Guava, Memcached and Redis, and a detailed comparison of their features and trade‑offs.

EhcacheMemcachedRedis
0 likes · 12 min read
Mastering Cache Strategies: From CDN to Distributed Systems
Programmer DD
Programmer DD
Aug 22, 2021 · Backend Development

Mastering Distributed Locks with Redis: From Basics to Redisson

This article walks through the evolution of Redis‑based distributed locks, illustrating common pitfalls and step‑by‑step improvements—from simple set‑if‑absent locks to atomic UUID checks and Lua‑scripted releases, culminating in a robust Redisson solution.

JavaRedisRedisson
0 likes · 8 min read
Mastering Distributed Locks with Redis: From Basics to Redisson
DeWu Technology
DeWu Technology
Aug 21, 2021 · Databases

Performance Issues of Redis Cluster MGET and Optimization Strategies

In a Redis cluster, bulk MGET calls suffered intermittent latency spikes because keys were distributed across many hash slots, forcing multiple network round‑trips; the issue can be mitigated by grouping keys with a common hash tag (though it reduces HA) or by issuing parallel slot‑wise MGETs with careful tuning, which preserves topology for larger batches.

ClusterJavaMGET
0 likes · 8 min read
Performance Issues of Redis Cluster MGET and Optimization Strategies
macrozheng
macrozheng
Aug 20, 2021 · Databases

Beyond Caching: How Redis Can Serve as a Full‑Featured Database

Redis, traditionally seen as a high‑performance cache, also offers rich data structures, persistence options, and clustering modes that enable it to function as a primary database for many internet services, supporting use cases such as user profiles, counters, leaderboards, friend relationships, distributed locks, rate limiting, and more.

DatabasePerformanceRedis
0 likes · 19 min read
Beyond Caching: How Redis Can Serve as a Full‑Featured Database
Code Ape Tech Column
Code Ape Tech Column
Aug 18, 2021 · Backend Development

Global Unique ID Overview and Generation Strategies

This article explains the concept, essential characteristics, and common generation strategies—including database auto‑increment, UUID, Redis, Zookeeper, and Twitter's Snowflake—highlighting their advantages, drawbacks, and practical optimization tips for building reliable distributed systems.

Redisglobal unique IDid generation
0 likes · 12 min read
Global Unique ID Overview and Generation Strategies
Top Architect
Top Architect
Aug 16, 2021 · Databases

Understanding MySQL Auto‑Increment IDs and Their Limits

This article explains the various types of auto‑increment identifiers in MySQL—including table primary keys, InnoDB row_id, Xid, trx_id, thread_id—and discusses their maximum values, overflow behavior, and alternative solutions such as using Redis for external unique keys.

InnoDBMySQLRedis
0 likes · 8 min read
Understanding MySQL Auto‑Increment IDs and Their Limits
Java Interview Crash Guide
Java Interview Crash Guide
Aug 16, 2021 · Backend Development

When to Update Redis Cache: DB‑First vs Cache‑First Strategies Explained

This article examines the consistency challenges of using Redis as a cache, compares three update strategies—updating the database before the cache, deleting the cache before updating the database, and updating the database then deleting the cache—analyzes their pitfalls, and presents practical solutions such as delayed double‑delete, asynchronous retries, and binlog‑driven cache invalidation.

Cache AsideCache ConsistencyDatabase
0 likes · 17 min read
When to Update Redis Cache: DB‑First vs Cache‑First Strategies Explained
Top Architect
Top Architect
Aug 15, 2021 · Backend Development

Choosing and Implementing Distributed Cache Systems with Redis

This article reviews various cache system types, compares popular distributed caches such as Memcache, Tair, and Redis, explains Redis cluster high‑availability mechanisms, discusses sharding strategies, and outlines common cache problems and solutions, providing practical configuration examples for Java backend developers.

Cache strategiesClusterRedis
0 likes · 12 min read
Choosing and Implementing Distributed Cache Systems with Redis
Java Architect Essentials
Java Architect Essentials
Aug 13, 2021 · Databases

Understanding Redis Persistence: RDB and AOF Mechanisms

This article explains why Redis needs persistence, describes the two main persistence mechanisms—RDB snapshots and AOF command logging—their configuration, internal structures, operational principles, and trade‑offs, and provides practical code examples for implementing and tuning them.

AOFDatabaseIn-Memory
0 likes · 13 min read
Understanding Redis Persistence: RDB and AOF Mechanisms
Laravel Tech Community
Laravel Tech Community
Aug 12, 2021 · Backend Development

Cache Penetration, Cache Breakdown, and Cache Avalanche: Concepts and Solutions

The article explains the concepts of cache penetration, cache breakdown, and cache avalanche in Redis‑based systems, analyzes the performance problems they cause under high concurrency, and presents practical mitigation techniques such as Bloom filters, caching empty objects, distributed locks, high‑availability clusters, rate limiting, and data pre‑warming.

Bloom filterCacheRedis
0 likes · 6 min read
Cache Penetration, Cache Breakdown, and Cache Avalanche: Concepts and Solutions
Architecture Digest
Architecture Digest
Aug 12, 2021 · Backend Development

Implementing Real-Time Leaderboards with Redis in PHP

This article explains how to design and implement a real-time ranking system for a mobile tank game using Redis sorted sets, covering leaderboard categories, composite scoring formulas, dynamic updates, data retrieval with pipelines, and provides a complete PHP class example.

Composite ScoreLeaderboardPHP
0 likes · 10 min read
Implementing Real-Time Leaderboards with Redis in PHP
Java Backend Technology
Java Backend Technology
Aug 12, 2021 · Databases

Mastering Spring Data Redis: From Configuration to Advanced Queries

Learn how to integrate Spring Data Redis with Spring Boot, replace Jedis with Lettuce, define data models using @RedisHash and @Indexed, configure connection properties, implement CRUD and example queries, and understand the underlying key-value storage patterns illustrated with practical code and visual examples.

CRUDJavaLettuce
0 likes · 13 min read
Mastering Spring Data Redis: From Configuration to Advanced Queries
Open Source Linux
Open Source Linux
Aug 11, 2021 · Backend Development

Boost Web Performance with OpenResty: Caching, Compression, and Dynamic Updates

This article explains how to use OpenResty with Lua to build a high‑performance caching layer that directly accesses Redis, compresses large responses, schedules periodic updates, forwards requests intelligently, and provides configurable URL caching, thereby improving concurrency, reducing latency, and optimizing bandwidth usage.

LuaOpenRestyRedis
0 likes · 6 min read
Boost Web Performance with OpenResty: Caching, Compression, and Dynamic Updates
IT Architects Alliance
IT Architects Alliance
Aug 10, 2021 · Backend Development

How to Build a Robust High‑Concurrency Flash Sale System

This article examines the challenges of implementing a flash‑sale (秒杀) system—such as overselling, massive concurrency, request flooding, URL exposure, and database strain—and presents a comprehensive backend design that includes dedicated databases, dynamic URLs, static page rendering, Redis clustering, Nginx load balancing, optimized SQL, token‑bucket rate limiting, asynchronous order processing, and service degradation strategies.

Redisasynchronous processingbackend architecture
0 likes · 14 min read
How to Build a Robust High‑Concurrency Flash Sale System
Code Ape Tech Column
Code Ape Tech Column
Aug 10, 2021 · Backend Development

How to Share Sessions Across Distributed Servers: Nginx, Tomcat, Redis, and Cookie Solutions

This article explains why session sharing is critical in micro‑service architectures, compares common Nginx load‑balancing methods, and provides four practical solutions—ip_hash load balancing, Tomcat session replication, Redis‑based session caching, and cookie‑based sharing—complete with configuration examples and pros/cons.

RedisTomcatbackend
0 likes · 6 min read
How to Share Sessions Across Distributed Servers: Nginx, Tomcat, Redis, and Cookie Solutions
Top Architect
Top Architect
Aug 8, 2021 · Backend Development

My First Java Web Project: From Planning to Deployment – A Full‑Stack Journey

This article recounts the author’s experience building a simple Java web application for a university anniversary, covering planning, environment setup, documentation, database design, coding challenges with Spring Boot, Redis, and session handling, deployment on Alibaba Cloud, and the lessons learned about architecture, logging, and monitoring.

JavaMySQLRedis
0 likes · 10 min read
My First Java Web Project: From Planning to Deployment – A Full‑Stack Journey
21CTO
21CTO
Aug 8, 2021 · Backend Development

Guaranteeing No Message Loss in RabbitMQ with Persistence and Confirm

This article examines how to ensure reliable message delivery in RabbitMQ by using durable queues, the confirm mechanism, and supplemental strategies such as persisting messages to Redis, implementing idempotent processing with optimistic locking or unique‑ID fingerprints, and employing compensation tasks to achieve near‑zero message loss in high‑concurrency systems.

Confirm MechanismRedisidempotency
0 likes · 9 min read
Guaranteeing No Message Loss in RabbitMQ with Persistence and Confirm
Architecture Digest
Architecture Digest
Aug 8, 2021 · Backend Development

Implementing Rate Limiting in Spring Boot Using a Custom Annotation and Redis

This article demonstrates how to create a custom @AccessLimit annotation in Spring Boot, implement a rate‑limiting interceptor that checks request frequency via Redis, register the interceptor, and apply the annotation to controller methods to enforce request limits with optional login verification.

Custom AnnotationInterceptorJava
0 likes · 6 min read
Implementing Rate Limiting in Spring Boot Using a Custom Annotation and Redis
Top Architect
Top Architect
Aug 7, 2021 · Backend Development

Redis Practical Use Cases: Caching, Distributed Locks, Global IDs, Counters, Rate Limiting, Bitmaps, Shopping Cart, Timeline, Message Queue, and More

This article presents a comprehensive guide to using Redis for various backend scenarios, including caching hot data, sharing sessions, implementing distributed locks, generating global IDs, counting, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, tags, product filtering, follow relationships, and ranking, all illustrated with concrete code examples.

BitmapsMessage QueueRedis
0 likes · 8 min read
Redis Practical Use Cases: Caching, Distributed Locks, Global IDs, Counters, Rate Limiting, Bitmaps, Shopping Cart, Timeline, Message Queue, and More
Java Tech Enthusiast
Java Tech Enthusiast
Aug 7, 2021 · Backend Development

Cache Optimization and Distributed Locking in High-Concurrency Systems

By illustrating how to replace simple HashMap caching with Redis‑based distributed caches and locks—using SETNX, Lua scripts, and Redisson—the article shows Spring Boot developers how to prevent cache breakdown, ensure data consistency, and dramatically improve throughput in high‑concurrency web applications.

Cache ConsistencyPerformance OptimizationRedis
0 likes · 16 min read
Cache Optimization and Distributed Locking in High-Concurrency Systems
ITPUB
ITPUB
Aug 6, 2021 · Backend Development

How to Guarantee RabbitMQ Message Delivery and Achieve Zero Loss

This article examines common pitfalls in RabbitMQ message delivery, explains persistence and confirm mechanisms, and proposes a robust solution combining pre‑storage in Redis, confirm callbacks, scheduled retries, and idempotent processing to ensure virtually zero message loss in high‑concurrency systems.

Confirm MechanismRedisidempotency
0 likes · 11 min read
How to Guarantee RabbitMQ Message Delivery and Achieve Zero Loss
Wukong Talks Architecture
Wukong Talks Architecture
Aug 6, 2021 · Databases

Redis Operational Best Practices and Guidelines

This guide presents a comprehensive set of mandatory, reference, and recommended Redis usage standards—including command restrictions, key naming, data sizing, persistence configurations, monitoring, and deployment strategies—to improve performance, reliability, and operational efficiency for production environments.

OperationsPerformancePersistence
0 likes · 9 min read
Redis Operational Best Practices and Guidelines
Top Architect
Top Architect
Aug 6, 2021 · Backend Development

Implementing Rate Limiting in Spring Boot Using a Custom Annotation and Redis

This article demonstrates how to create a custom @AccessLimit annotation, implement a Spring Boot interceptor that checks Redis for request counts, register the interceptor, and apply the annotation to a controller method to enforce rate‑limiting with optional login verification.

AnnotationInterceptorJava
0 likes · 4 min read
Implementing Rate Limiting in Spring Boot Using a Custom Annotation and Redis
Code Ape Tech Column
Code Ape Tech Column
Aug 6, 2021 · Backend Development

Common Redis Use Cases: Caching, Distributed Locks, Counters, Rate Limiting, and More

This article outlines a variety of practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmap statistics, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow/recommendation models, and ranking—demonstrating how Redis can support diverse backend functionalities.

BitMapDistributedLockMessageQueue
0 likes · 9 min read
Common Redis Use Cases: Caching, Distributed Locks, Counters, Rate Limiting, and More
TAL Education Technology
TAL Education Technology
Aug 5, 2021 · Backend Development

Understanding epoll Programming and Its Use in Redis Server

This article explains the basic network programming pattern, introduces epoll as an I/O multiplexing solution for high‑concurrency servers, and demonstrates how Redis 5.0 integrates epoll through its event‑loop abstraction with detailed code examples and debugging tips.

C++Redisepoll
0 likes · 13 min read
Understanding epoll Programming and Its Use in Redis Server
Sohu Tech Products
Sohu Tech Products
Aug 4, 2021 · Backend Development

Resolving Duplicate OpenID Insertions with Distributed Locks in a Fast App Center

To prevent duplicate OpenID records caused by concurrent synchronization requests in the Fast App Center, this article analyzes the root cause, evaluates database‑level unique indexes versus application‑level distributed locks, and presents a Redis‑based lock implementation with cleanup procedures to ensure data consistency.

Data ConsistencyJavaMySQL
0 likes · 16 min read
Resolving Duplicate OpenID Insertions with Distributed Locks in a Fast App Center
Efficient Ops
Efficient Ops
Aug 4, 2021 · Backend Development

How I Boosted a Python Service to 50k QPS: Real‑World Performance Tuning

This article documents a step‑by‑step performance optimization of a Python web module, covering requirement analysis, environment setup, load‑testing results, database and TCP bottleneck identification, caching strategies, kernel tuning, and the final achievement of 50,000 QPS with low latency.

Performance OptimizationPythonRedis
0 likes · 9 min read
How I Boosted a Python Service to 50k QPS: Real‑World Performance Tuning
Wukong Talks Architecture
Wukong Talks Architecture
Aug 3, 2021 · Databases

Redis Eviction Policies Explained

This article introduces the various Redis eviction strategies—including volatile-ttl, volatile-random, volatile-lru, volatile-lfu, allkeys-random, allkeys-lru, and allkeys-lfu—explains their behavior, shows where they are configured in redis.conf and the initServer source code, and notes the default noeviction policy when memory exceeds maxmemory.

CacheMemory ManagementRedis
0 likes · 3 min read
Redis Eviction Policies Explained
Java Interview Crash Guide
Java Interview Crash Guide
Jul 28, 2021 · Backend Development

How to Share Sessions Across Distributed Servers: Nginx, Tomcat, Redis & Cookie Solutions

This article explains why session sharing is needed in micro‑service architectures, outlines common Nginx reverse‑proxy strategies, and presents four practical solutions—Nginx ip_hash load balancing, Tomcat session replication, Redis centralized cache, and cookie‑based sharing—detailing their implementations and trade‑offs.

RedisTomcatdistributed systems
0 likes · 6 min read
How to Share Sessions Across Distributed Servers: Nginx, Tomcat, Redis & Cookie Solutions
Tencent Cloud Developer
Tencent Cloud Developer
Jul 27, 2021 · Backend Development

Comprehensive Guide to Go Unit Testing: Tools, Mocking, and Dependency Management

This guide explains Go’s built‑in testing framework, assertion libraries, table‑driven and sub‑tests, and demonstrates how to mock functions, structs, interfaces, databases, and Redis using tools such as ngmock, gomock, sqlmock and miniredis, while covering test setup, teardown, coverage handling, and best‑practice insights.

GoMockRedis
0 likes · 21 min read
Comprehensive Guide to Go Unit Testing: Tools, Mocking, and Dependency Management
dbaplus Community
dbaplus Community
Jul 25, 2021 · Backend Development

Is Redis Distributed Lock Safe? Deep Dive into Redlock and Zookeeper Pitfalls

This article thoroughly explains why distributed locks are needed, walks through basic Redis lock implementations, exposes deadlock and expiration issues, presents robust solutions with unique IDs and Lua scripts, examines the Redlock algorithm, reviews the Martin‑Antirez debate, and compares Redis with Zookeeper locks.

LuaRedisRedlock
0 likes · 40 min read
Is Redis Distributed Lock Safe? Deep Dive into Redlock and Zookeeper Pitfalls
Laravel Tech Community
Laravel Tech Community
Jul 23, 2021 · Backend Development

Cache Penetration, Cache Breakdown, and Cache Avalanche: Concepts and Mitigation Strategies

The article explains the concepts of cache penetration, cache breakdown, and cache avalanche in Redis‑based systems, describes the performance risks they pose to persistent databases, and presents practical mitigation techniques such as Bloom filters, empty‑object caching, hot‑key permanence, distributed locks, high‑availability clusters, rate limiting, and data pre‑warming.

Bloom filterCachePerformance
0 likes · 6 min read
Cache Penetration, Cache Breakdown, and Cache Avalanche: Concepts and Mitigation Strategies
Programmer DD
Programmer DD
Jul 22, 2021 · Backend Development

How to Achieve Exactly‑Once Message Processing in RocketMQ Without Heavy Transactions

This article explains why message middleware guarantees at‑least‑once delivery, the challenges of duplicate consumption, and presents both simple and advanced deduplication strategies—including transactional and non‑transactional approaches using relational databases or Redis—to achieve effectively exactly‑once semantics in RocketMQ.

DatabaseRedisRocketMQ
0 likes · 18 min read
How to Achieve Exactly‑Once Message Processing in RocketMQ Without Heavy Transactions
vivo Internet Technology
vivo Internet Technology
Jul 21, 2021 · Backend Development

Resolving Duplicate OpenID Insertions in Fast App Center: Analysis and Distributed Lock Solutions

The Fast App Center’s duplicate OpenID rows were traced to a non‑atomic check‑then‑insert race condition, prompting the team to evaluate a unique‑index safeguard versus application‑level distributed locking, ultimately implementing a Redis‑based lock to serialize inserts and adding a cleanup job to purge existing duplicates.

Database ConcurrencyJavaMySQL
0 likes · 18 min read
Resolving Duplicate OpenID Insertions in Fast App Center: Analysis and Distributed Lock Solutions
Wukong Talks Architecture
Wukong Talks Architecture
Jul 21, 2021 · Fundamentals

Understanding Redis Simple Dynamic Strings (SDS): Structure, Benefits, and Memory Management

This article explains the Redis Simple Dynamic String (SDS) data structure, comparing it with traditional C strings, detailing its struct layout, O(1) length retrieval, pre‑allocation strategy, lazy space release, and provides code examples illustrating how SDS avoids buffer overflows and improves performance.

C stringsData StructuresMemory Management
0 likes · 11 min read
Understanding Redis Simple Dynamic Strings (SDS): Structure, Benefits, and Memory Management
Efficient Ops
Efficient Ops
Jul 20, 2021 · Databases

Master Redis: 13 Proven Practices to Boost Memory, Performance & Reliability

Discover a comprehensive Redis best‑practice guide covering memory optimization, performance tuning, high reliability, daily operations, resource planning, monitoring, and security, with actionable tips such as key length control, maxmemory settings, lazy‑free, connection pooling, replication strategies, and safe deployment practices.

Database ManagementOperationsPerformance Optimization
0 likes · 23 min read
Master Redis: 13 Proven Practices to Boost Memory, Performance & Reliability
Architect
Architect
Jul 20, 2021 · Databases

Redis New Features and Architecture Options Overview

This article reviews Redis 6.0 and 5.0 new features, compares deployment architectures such as cluster, master-replica, and read-write split, and provides Java connection-pool code examples to help engineers select the appropriate Redis setup for performance, reliability, and scalability requirements.

ClusterDatabase ArchitectureJava
0 likes · 11 min read
Redis New Features and Architecture Options Overview
Selected Java Interview Questions
Selected Java Interview Questions
Jul 20, 2021 · Backend Development

Session Sharing Solutions for Distributed Systems: Nginx ip_hash, Tomcat Replication, Redis Cache, and Cookie Approaches

In distributed micro‑service environments, session sharing is essential to prevent repeated logins, and this article explains four practical solutions—Nginx ip_hash load balancing, Tomcat session replication, Redis‑based centralized sessions, and cookie‑based sharing—detailing their implementations, advantages, and drawbacks.

RedisTomcatnginx
0 likes · 5 min read
Session Sharing Solutions for Distributed Systems: Nginx ip_hash, Tomcat Replication, Redis Cache, and Cookie Approaches
Java Interview Crash Guide
Java Interview Crash Guide
Jul 20, 2021 · Backend Development

Designing a Universal Cache Strategy for Static Data in Microservices

This article outlines a universal caching strategy for low‑frequency static data in microservice systems, explaining why in‑memory caches like Redis are needed, detailing a six‑component architecture with services, queues, and consistency checks, and weighing trade‑offs such as cache eviction, persistence, and scalability.

QueueRediscaching
0 likes · 15 min read
Designing a Universal Cache Strategy for Static Data in Microservices
Programmer DD
Programmer DD
Jul 19, 2021 · Backend Development

How Redis Ziplist Compresses Memory and When to Use It

This article explains Redis's ziplist compressed list structure, its internal fields, lookup algorithm, performance characteristics, configuration thresholds for Hash and List types, and demonstrates a real‑world use case with memory‑saving calculations and experimental results.

Data StructuresMemory CompressionRedis
0 likes · 11 min read
How Redis Ziplist Compresses Memory and When to Use It
Top Architect
Top Architect
Jul 18, 2021 · Backend Development

Implementing Distributed Locks with Redis and Redisson in Java

The article explains why Java's synchronized lock cannot be used for distributed scenarios, demonstrates how to build a Redis‑based distributed lock with setIfAbsent, discusses pitfalls such as server crashes and lock expiration, and presents robust solutions including atomic expiration, thread‑ID verification, lock renewal, and Redisson usage.

JavaRedisRedisson
0 likes · 6 min read
Implementing Distributed Locks with Redis and Redisson in Java
Top Architect
Top Architect
Jul 14, 2021 · Databases

Redis Read‑Write Separation Architecture: Star vs. Chain Replication

This article explains Alibaba Cloud's Redis read‑write separation architecture, comparing star and chain replication models, their performance and scalability trade‑offs, and how transparent compatibility, high availability, and high performance are achieved through redis‑proxy, HA monitoring, and optimized binlog replication.

PerformanceRead-Write SeparationRedis
0 likes · 8 min read
Redis Read‑Write Separation Architecture: Star vs. Chain Replication
Su San Talks Tech
Su San Talks Tech
Jul 14, 2021 · Databases

Why Is Redis So Fast? Deep Dive into Its Core Architecture and Performance

Redis achieves its remarkable speed through a combination of in‑memory data storage, optimized data structures like SDS, ziplist, quicklist and skiplist, a single‑threaded command model, efficient I/O multiplexing, and sophisticated persistence, replication, Sentinel and Cluster mechanisms that together ensure high performance and reliability.

ClusterIn-Memory DatabasePersistence
0 likes · 25 min read
Why Is Redis So Fast? Deep Dive into Its Core Architecture and Performance
Programmer DD
Programmer DD
Jul 12, 2021 · Backend Development

How to Scale Redis for Billions of Keys: Memory‑Saving Strategies

This article examines the challenges of storing massive DMP data in Redis, analyzes memory fragmentation, key‑value explosion, and latency constraints, and presents practical solutions such as eviction policies, bucket hashing, key compression, and fragmentation reduction to enable efficient in‑memory storage.

JavaRedislarge-scale storage
0 likes · 11 min read
How to Scale Redis for Billions of Keys: Memory‑Saving Strategies
Su San Talks Tech
Su San Talks Tech
Jul 12, 2021 · Backend Development

Master Redisson: Simplify Distributed Locks in Spring Boot

This tutorial explains how to integrate Redisson into a Spring Boot application to implement robust distributed locks, covering Redisson's architecture, configuration, code examples, lock types, watchdog mechanism, and practical testing procedures for reentrant, read‑write, and semaphore locks.

RedisRedissonSpring Boot
0 likes · 13 min read
Master Redisson: Simplify Distributed Locks in Spring Boot
Top Architect
Top Architect
Jul 10, 2021 · Backend Development

Optimizing Complex Search Queries with Redis: A Backend Development Demo

This article explores how backend developers can handle intricate e‑commerce search filters by first attempting a monolithic SQL solution, then improving performance with index analysis and query splitting, and finally achieving fast, scalable results using Redis sets, sorted sets, and transaction commands.

PerformanceRedisSQL
0 likes · 8 min read
Optimizing Complex Search Queries with Redis: A Backend Development Demo
Selected Java Interview Questions
Selected Java Interview Questions
Jul 9, 2021 · Backend Development

Various Strategies for Deploying Distributed Scheduled Tasks on a Single Server

The article compares five practical methods—single‑server deployment, IP‑based restriction, database‑driven task selection, Redis expiration with distributed lock, and Quartz clustering—to ensure that a scheduled job runs only once across multiple servers, outlining each approach's advantages, drawbacks, and implementation details.

MySQLQuartzRedis
0 likes · 5 min read
Various Strategies for Deploying Distributed Scheduled Tasks on a Single Server
Architect
Architect
Jul 9, 2021 · Backend Development

Designing a High‑Concurrency Flash Sale System: Architecture, Caching, Rate Limiting, and Isolation Strategies

This article explains how to design a flash‑sale (秒杀) system that can handle massive traffic spikes by using static page CDN caching, gateway request interception, Redis inventory control, asynchronous order processing, and thorough business, deployment, and data isolation to ensure high performance and stability without affecting regular services.

CDNRedisSystem Architecture
0 likes · 10 min read
Designing a High‑Concurrency Flash Sale System: Architecture, Caching, Rate Limiting, and Isolation Strategies
Beike Product & Technology
Beike Product & Technology
Jul 8, 2021 · Fundamentals

Understanding HyperLogLog: Algorithm Principles, Redis Implementation, and Experimental Analysis

This article explores the HyperLogLog algorithm for cardinality estimation, tracing its development from Linear and LogLog counting, detailing its Redis implementation with sparse and dense encodings and command workflows, and presenting experiments that demonstrate its memory efficiency and analyze observed error rates versus the theoretical 0.81% standard deviation.

AlgorithmHyperLogLogRedis
0 likes · 13 min read
Understanding HyperLogLog: Algorithm Principles, Redis Implementation, and Experimental Analysis
Sohu Tech Products
Sohu Tech Products
Jul 7, 2021 · Backend Development

Implementing Nearby‑People (LBS) with MySQL and Redis GEO

This article explains how to build a location‑based "nearby people" feature by storing coordinates in MySQL, filtering with rectangular bounds, calculating distances in Java, and then scaling the solution with Redis GEO using GeoHash and Sorted Sets for high‑performance proximity queries.

LBSLocation ServicesMySQL
0 likes · 14 min read
Implementing Nearby‑People (LBS) with MySQL and Redis GEO