Tagged articles
3240 articles
Page 21 of 33
Sohu Tech Products
Sohu Tech Products
Sep 22, 2021 · Databases

Common Redis Use Cases and Implementation Patterns

This article introduces a collection of practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, tags, product filtering, follow relationships, and ranking—explaining their data types, commands, and sample code.

Bitmapscachingdistributed-lock
0 likes · 8 min read
Common Redis Use Cases and Implementation Patterns
Laravel Tech Community
Laravel Tech Community
Sep 22, 2021 · Backend Development

Session Sharing Solutions in Distributed Environments: Nginx ip_hash, Tomcat Replication, Redis Cache, and Cookie

The article explains why session sharing is critical in micro‑service and distributed deployments and presents four backend solutions—Nginx ip_hash load balancing, Tomcat session replication, Redis‑based centralized session storage, and cookie‑based sessions—detailing their implementations, advantages, and drawbacks.

BackendDistributed SystemsNginx
0 likes · 5 min read
Session Sharing Solutions in Distributed Environments: Nginx ip_hash, Tomcat Replication, Redis Cache, and Cookie
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 22, 2021 · Databases

Common Redis Interview Questions and Answers

This article provides a comprehensive list of typical Redis interview questions covering its features, performance, data structures, supported data types, common use cases, eviction policies, persistence methods, clustering, high‑availability mechanisms, transaction handling, and comparisons with local caches like Guava and Caffeine.

CacheData StructuresPersistence
0 likes · 15 min read
Common Redis Interview Questions and Answers
FunTester
FunTester
Sep 22, 2021 · Databases

Benchmarking Redis List Operations with FunTester: Multi‑Threaded Performance Insights

This article presents a detailed multi‑threaded performance benchmark of Redis list commands using the FunTester framework, describing three test scenarios, Java implementation details, raw JSON results, and observations on QPS and latency for insert, pop, and combined add‑remove operations.

Database BenchmarkFunTesterPerformance Testing
0 likes · 11 min read
Benchmarking Redis List Operations with FunTester: Multi‑Threaded Performance Insights
Java Interview Crash Guide
Java Interview Crash Guide
Sep 22, 2021 · Databases

Boost Redis Performance: Proven Tips to Eliminate Latency Bottlenecks

This article examines the fundamental characteristics of Redis, explains why network latency often dominates performance, and presents practical optimization strategies such as using Unix IPC, multi-key commands, transactions, scripts, pipelining, avoiding slow commands, tuning persistence, adjusting OS settings, and adopting distributed architectures to achieve higher throughput and lower latency.

Scalabilitydatabaseperformance optimization
0 likes · 17 min read
Boost Redis Performance: Proven Tips to Eliminate Latency Bottlenecks
Programmer DD
Programmer DD
Sep 20, 2021 · Databases

Unlock Redis: 16 Real‑World Patterns for Caching, Locks, Queues, and More

This article explores sixteen practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, tags, product filtering, follow relationships, and ranking—detailing data types, commands, and code snippets for each scenario.

Distributed SystemsMessage Queuecaching
0 likes · 8 min read
Unlock Redis: 16 Real‑World Patterns for Caching, Locks, Queues, and More
Java Architect Essentials
Java Architect Essentials
Sep 17, 2021 · Backend Development

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

This article analyzes the at‑least‑once guarantee of message middleware, explains why duplicate deliveries occur, compares simple database‑based deduplication methods, explores concurrency challenges, and presents a non‑transactional, status‑driven idempotence solution using MySQL or Redis with practical code examples and limitations.

Distributed SystemsExactly-OnceIdempotence
0 likes · 19 min read
How to Achieve Exactly‑Once Message Processing in RocketMQ Without Transactions
Baidu Geek Talk
Baidu Geek Talk
Sep 15, 2021 · Databases

DB-Engines September 2021 Database Rankings Analysis

The September 2021 DB‑Engines ranking shows longtime leaders Oracle, MySQL and Microsoft SQL Server losing hundreds of points, while MongoDB, Snowflake and ClickHouse surge in popularity, Redis and InfluxDB dominate their niches, and the report stresses that selecting a database should prioritize business needs over mere ranking.

DB-EnginesDatabase RankingsDatabase Trends
0 likes · 7 min read
DB-Engines September 2021 Database Rankings Analysis
Code Ape Tech Column
Code Ape Tech Column
Sep 14, 2021 · Backend Development

Large File Upload with Chunking, Resume, and RandomAccessFile in Java

This article explains how to handle multi‑gigabyte video uploads by splitting files into chunks, using MD5 for identification, implementing resumable and instant uploads with Spring Boot and Redis, and leveraging Java's RandomAccessFile and memory‑mapped I/O for efficient merging.

RandomAccessFileSpring Bootchunking
0 likes · 15 min read
Large File Upload with Chunking, Resume, and RandomAccessFile in Java
FunTester
FunTester
Sep 14, 2021 · Databases

Benchmarking Redis Key‑Value Inserts with FunTester: Java & Groovy Test Cases

This article walks through a practical performance test for continuously adding key‑value pairs to Redis using the FunTester framework, detailing the test design, Java and Groovy implementations, execution logs, result metrics, and key takeaways for future Redis benchmarking.

FunTesterPerformance Testingbenchmark
0 likes · 6 min read
Benchmarking Redis Key‑Value Inserts with FunTester: Java & Groovy Test Cases
Wukong Talks Architecture
Wukong Talks Architecture
Sep 12, 2021 · Backend Development

Ensuring Consistency Between Cache and Database: Patterns and Strategies

This article explains the fundamentals of data consistency in distributed systems, compares strong, weak, and eventual consistency, describes three classic cache patterns (Cache‑Aside, Read‑Through/Write‑Through, Write‑Behind), and presents practical techniques such as delayed double delete, retry mechanisms, and binlog‑based asynchronous deletion to keep Redis caches and MySQL databases in sync.

Backendcache patternsdistributed-systems
0 likes · 10 min read
Ensuring Consistency Between Cache and Database: Patterns and Strategies
Code Ape Tech Column
Code Ape Tech Column
Sep 12, 2021 · Backend Development

Implementing Delayed Tasks in Java: Database Polling, JDK DelayQueue, Time Wheel, Redis, and RabbitMQ

This article explains the concept of delayed tasks, compares them with scheduled tasks, and presents five practical implementation strategies—including database polling with Quartz, JDK DelayQueue, Netty's time‑wheel algorithm, Redis sorted‑set and keyspace notifications, and RabbitMQ delayed queues—complete with code samples, advantages, and drawbacks.

RabbitMQbackend-developmentdelayed tasks
0 likes · 18 min read
Implementing Delayed Tasks in Java: Database Polling, JDK DelayQueue, Time Wheel, Redis, and RabbitMQ
Node Underground
Node Underground
Sep 10, 2021 · Backend Development

Master Distributed Task Scheduling with MidwayJS Task Component

This guide explains how to install, configure, and use the @midwayjs/task module for distributed and delayed task scheduling in Midway, covering Redis setup, code examples for cron jobs, local tasks, manual triggers, progress tracking, logging, and troubleshooting.

BackendBullMidwayJS
0 likes · 8 min read
Master Distributed Task Scheduling with MidwayJS Task Component
IT Architects Alliance
IT Architects Alliance
Sep 9, 2021 · Databases

Redis Scaling Strategies: Partitioning, Master‑Slave, Sentinel, and Cluster

This article introduces the main Redis scaling solutions—including simple partitioning, master‑slave replication, Sentinel high‑availability, and Redis Cluster—explaining their concepts, usage patterns, advantages, and drawbacks to help developers choose the appropriate architecture for high‑traffic environments.

ClusterMaster‑SlavePartitioning
0 likes · 12 min read
Redis Scaling Strategies: Partitioning, Master‑Slave, Sentinel, and Cluster
Selected Java Interview Questions
Selected Java Interview Questions
Sep 9, 2021 · Backend Development

Preventing Overselling in Flash‑Sale (SecKill) Systems with a Redis Distributed Lock

This article explains how a naïve SpringBoot SecKill implementation can cause overselling, then introduces Redis commands (SETNX, EXPIRE, GETSET) and a custom RedisLock component to achieve safe distributed locking, avoid deadlocks, and ensure accurate inventory updates during high‑concurrency flash‑sale events.

SeckillSpringBootdistributed-lock
0 likes · 10 min read
Preventing Overselling in Flash‑Sale (SecKill) Systems with a Redis Distributed Lock
Architecture Digest
Architecture Digest
Sep 9, 2021 · Backend Development

Design and Implementation of Delayed Task Processing in Java: Database Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ

The article explains the concept of delayed tasks versus scheduled tasks and presents five practical Java implementations—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis sorted sets and keyspace notifications, and RabbitMQ delayed queues—detailing their code, advantages, and drawbacks.

DelayQueueQuartzRabbitMQ
0 likes · 18 min read
Design and Implementation of Delayed Task Processing in Java: Database Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ
Sohu Tech Products
Sohu Tech Products
Sep 8, 2021 · Backend Development

Why Client‑Side Caching Is Needed and How Redis Tracking Works

This article explains the motivation for client‑side caching, what data should be cached, and details the Redis tracking feature—including normal, broadcast, and redirect modes—while providing implementation examples and best‑practice guidelines for reducing latency and load on Redis servers.

BackendClient Side Cachingcache invalidation
0 likes · 9 min read
Why Client‑Side Caching Is Needed and How Redis Tracking Works
Architect
Architect
Sep 8, 2021 · Databases

Redis Scaling Solutions: Partitioning, Master‑Slave, Sentinel, and Cluster

This article explains how to extend Redis beyond a single instance by covering partitioning, master‑slave replication, Sentinel automatic failover, and Redis Cluster, describing their usage methods, advantages, and drawbacks for high‑traffic, high‑availability scenarios.

ClusterPartitioningredis
0 likes · 11 min read
Redis Scaling Solutions: Partitioning, Master‑Slave, Sentinel, and Cluster
YunZhu Net Technology Team
YunZhu Net Technology Team
Sep 8, 2021 · Backend Development

Design and Performance Evaluation of a Scalable Like System

This article analyzes common like‑system business scenarios, derives functional requirements, proposes three architectural solutions (Redis‑based priority queue, relational database, and a hybrid cache‑MQ‑DB design), presents detailed implementation code, and evaluates each approach with extensive performance tests to guide practical backend design choices.

Backend ArchitectureKafkaLike System
0 likes · 18 min read
Design and Performance Evaluation of a Scalable Like System
Programmer DD
Programmer DD
Sep 8, 2021 · Backend Development

How to Keep Redis Cache Consistent with Database: Strategies and Pitfalls

This article examines the consistency challenges when using Redis as a cache for database data, compares three update strategies, and presents practical solutions such as delayed double‑delete, retry mechanisms, and handling cache penetration, avalanche, and thread‑safety issues in Java.

Cache Consistencyconcurrencydatabase
0 likes · 18 min read
How to Keep Redis Cache Consistent with Database: Strategies and Pitfalls
NiuNiu MaTe
NiuNiu MaTe
Sep 8, 2021 · Backend Development

Mastering Distributed Locks with Redis: From Basics to RedLock

This article explains what distributed locks are, outlines their essential properties, walks through step‑by‑step Redis implementations—from simple SETNX to Lua‑based atomic operations—and discusses reliability strategies such as master‑slave failover and RedLock while highlighting the inherent limits of any distributed lock.

Lua scriptingRedlockdistributed-lock
0 likes · 11 min read
Mastering Distributed Locks with Redis: From Basics to RedLock
Java Interview Crash Guide
Java Interview Crash Guide
Sep 8, 2021 · Backend Development

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

This article explores the challenges of storing billions of mapping records for a DMP in Redis and presents practical solutions such as eviction policies, key bucketing, hash‑map optimization, fragmentation reduction, and specialized memory allocators to achieve millisecond‑level real‑time queries.

HashMapKey BucketingLarge‑Scale Storage
0 likes · 11 min read
How to Scale Redis for Billions of Keys: Memory‑Efficient Strategies
IT Architects Alliance
IT Architects Alliance
Sep 7, 2021 · Backend Development

Implementing Delayed Tasks: Strategies, Code Samples, and Trade‑offs

This article explains various approaches to implementing delayed tasks in backend systems, comparing database polling, Java's DelayQueue, Netty's time wheel, Redis sorted sets and keyspace notifications, and RabbitMQ delayed queues, with detailed code examples and analysis of each method's pros and cons.

NettyRabbitMQScheduling
0 likes · 17 min read
Implementing Delayed Tasks: Strategies, Code Samples, and Trade‑offs
Code Ape Tech Column
Code Ape Tech Column
Sep 7, 2021 · Databases

20 Classic Redis Interview Questions and Answers

This article compiles 20 classic Redis interview questions covering its definition, data structures, performance mechanisms, caching challenges, high‑availability setups, persistence options, distributed locking techniques, and best‑practice solutions, providing developers with comprehensive insights into Redis architecture and practical usage.

DistributedLockdatabaseinterview
0 likes · 50 min read
20 Classic Redis Interview Questions and Answers
Programmer DD
Programmer DD
Sep 5, 2021 · Backend Development

Mastering Delayed Tasks in Java: From Quartz to Redis and RabbitMQ

This article compares delayed and scheduled tasks, explains their differences, and presents five practical Java implementations—including database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis sorted sets, and RabbitMQ—highlighting each method's advantages and drawbacks.

RabbitMQSchedulingbackend-development
0 likes · 19 min read
Mastering Delayed Tasks in Java: From Quartz to Redis and RabbitMQ
Top Architect
Top Architect
Sep 4, 2021 · Backend Development

Various Implementations of Delayed Task Scheduling in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ

This article compares delayed tasks with scheduled tasks and presents five practical Java implementations—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis sorted sets and keyspace notifications, and RabbitMQ delayed queues—detailing their code, advantages, and drawbacks.

DelayQueueQuartzRabbitMQ
0 likes · 18 min read
Various Implementations of Delayed Task Scheduling in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ
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.

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

Cache StrategiesGuavabloom-filter
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.

GeoHashPHPSpatial Indexing
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.

Connection PoolPerformance Testingbackend-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.

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

delay queuejavaredis
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.

aopdistributed-lockduplicate submission
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 WalkthroughMaster‑SlavePSYNC
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.

algorithmrate limitingredis
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.

Delay MessageDistributed KVMessage Queue
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.

QuartzRabbitMQScheduling
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 ConsistencyMemcachedcache invalidation
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.

CacheConfigurationVirtual Memory
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.

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

BackendCache Clusterdistributed cache
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.

BackendDistributed SystemsEhcache
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.

Spring Bootdistributed-lockjava
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.

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

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

ID generationglobal unique IDredis
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.

InnoDBauto_incrementmysql
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 Consistencybackend-developmentcache-aside
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 StrategiesClusterbackend-development
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.

AOFIn-MemoryPersistence
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.

BackendCachebloom-filter
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 ScorePHPSorted Set
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.

CRUDLettuceSpring Boot
0 likes · 13 min read
Mastering Spring Data Redis: From Configuration to Advanced Queries
Java Interview Crash Guide
Java Interview Crash Guide
Aug 12, 2021 · Databases

Mastering Redis Expiration and Eviction: 8 Strategies, LRU & LFU Explained

Redis handles key expiration using commands like EXPIRE, PEXPIRE, EXPIREAT, and PEXPIREAT, offers TTL queries, and employs three deletion strategies—timed, lazy, and periodic scanning—while its eight eviction policies (e.g., volatile‑lru, allkeys‑lfu, noeviction) and refined LRU/LFU algorithms manage memory pressure efficiently.

Eviction PoliciesExpirationLFU
0 likes · 14 min read
Mastering Redis Expiration and Eviction: 8 Strategies, LRU & LFU Explained
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.

LuaOpenRestybackend-development
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.

Backend ArchitectureNginxasynchronous processing
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.

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

Understanding Thread, Process, and Distributed Locks and Their Implementation

This article explains the differences between thread, process, and distributed locks, describes how distributed locks work using third‑party storage such as Redis or Zookeeper, discusses implementation details, and highlights when and why to use them in backend systems.

ZooKeeperdistributed-lockprocess lock
0 likes · 9 min read
Understanding Thread, Process, and Distributed Locks and Their Implementation
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.

DeploymentProject ManagementSpring Boot
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 MechanismIdempotencyRabbitMQ
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 AnnotationInterceptorSpring Boot
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 Queuebackend-development
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 ConsistencyDistributed SystemsLoad Testing
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 MechanismIdempotencyRabbitMQ
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.

OperationsPersistencebest practices
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.

InterceptorSpring Bootannotation
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.

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

Event-drivenNetwork programmingc++
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.

BackendData Consistencydistributed-lock
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.

Load TestingPythonTCP Tuning
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 Managementdatabases
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.

Distributed SystemsTomcatredis
0 likes · 6 min read
How to Share Sessions Across Distributed Servers: Nginx, Tomcat, Redis & Cookie Solutions