Tagged articles
3240 articles
Page 19 of 33
IT Architects Alliance
IT Architects Alliance
Jan 27, 2022 · Backend Development

Implementing a Delayed Queue with Redis Zset in Java Spring Boot

This article explains the concept of delayed queues, outlines typical use cases, compares implementation options, and provides a complete Java Spring Boot example that uses Redis Zset to create, manage, and execute delayed tasks with accompanying code snippets and test results.

DelayQueueSpringBootZSet
0 likes · 8 min read
Implementing a Delayed Queue with Redis Zset in Java Spring Boot
Java Interview Crash Guide
Java Interview Crash Guide
Jan 26, 2022 · Backend Development

How to Build a High‑Performance Redis Delay Queue with SpringBoot

This article explains the design, implementation, and optimization of a Redis‑based delay queue using SpringBoot, Redisson, and distributed locks, covering use cases, architecture, data structures, job lifecycle, core code snippets, and future improvements for reliability and scalability.

Message QueueSpringBootdelay queue
0 likes · 15 min read
How to Build a High‑Performance Redis Delay Queue with SpringBoot
Architect
Architect
Jan 25, 2022 · Databases

Designing a High‑Availability Redis Service with Sentinel

This article explains why Redis needs high availability, defines failure scenarios, compares several HA architectures—including single‑instance, master‑slave with one or multiple Sentinel processes, and a three‑node solution with a virtual IP—and provides practical guidance for building a reliable Redis service.

Operationshigh availabilityredis
0 likes · 12 min read
Designing a High‑Availability Redis Service with Sentinel
Architecture Digest
Architecture Digest
Jan 25, 2022 · Backend Development

Distributed Lock Implementation Approaches in Java: Database, Redis, and Zookeeper

This article explains the concept of distributed locks, compares three implementation methods—database unique indexes, Redis (using SETNX), and Zookeeper—provides detailed SQL table design and Java code examples for acquiring and releasing locks, and discusses reentrancy, lock release timing, and single‑point failure considerations.

ZooKeeperdatabasedistributed-lock
0 likes · 14 min read
Distributed Lock Implementation Approaches in Java: Database, Redis, and Zookeeper
Java Backend Technology
Java Backend Technology
Jan 23, 2022 · Backend Development

Build a High‑Performance Lottery System with Spring Boot, MyBatis‑Plus & Redis

This tutorial walks through creating a Spring Boot lottery application that caches activity, prize, and record data in Redis, covering project setup, Maven dependencies, YML configuration, MyBatis‑Plus code generation, Redis key management, lottery API, event‑driven data loading, stock handling, and asynchronous record saving.

Lottery SystemSpring Bootbackend-development
0 likes · 24 min read
Build a High‑Performance Lottery System with Spring Boot, MyBatis‑Plus & Redis
Java Captain
Java Captain
Jan 22, 2022 · Backend Development

Spring Boot Lottery System with Redis and MyBatis-Plus: Project Overview and Implementation Guide

This article presents a step‑by‑step guide to building a Spring Boot lottery application that leverages MyBatis‑Plus and Redis for caching activity, prize, and record data, covering project setup, dependencies, configuration, code generation, Redis integration, lottery logic, and stock management.

LotterySpring Bootbackend-development
0 likes · 32 min read
Spring Boot Lottery System with Redis and MyBatis-Plus: Project Overview and Implementation Guide
Top Architect
Top Architect
Jan 22, 2022 · Databases

Differences Among Jedis, Redisson, and Lettuce and Their Usage in Spring Boot

This article compares the Java Redis clients Jedis, Redisson, and Lettuce, explains their distinct features and thread‑safety models, and provides detailed Spring Boot configuration and code examples for using RedisTemplate, RedissonClient, and annotation‑based caching to implement distributed locks, hash operations, and cache management.

JedisLettuceSpring Boot
0 likes · 13 min read
Differences Among Jedis, Redisson, and Lettuce and Their Usage in Spring Boot
Java High-Performance Architecture
Java High-Performance Architecture
Jan 21, 2022 · Backend Development

Efficient Large File Uploads: Chunking, Instant Transfer & Resume in Java

This guide explains how to implement fast, reliable large file uploads in Java using chunked (slice) uploads, instant (秒传) transfer via MD5 deduplication, and breakpoint resume, detailing Redis state tracking, RandomAccessFile and MappedByteBuffer server‑side code, and practical deployment considerations.

chunked uploadfile uploadjava
0 likes · 16 min read
Efficient Large File Uploads: Chunking, Instant Transfer & Resume in Java
Code Ape Tech Column
Code Ape Tech Column
Jan 21, 2022 · Backend Development

Message Deduplication and Exactly-Once Semantics in RocketMQ: Strategies and Implementation

This article explains the challenges of at‑least‑once delivery in distributed message middleware like RocketMQ, examines simple and concurrent deduplication techniques, and presents both transaction‑based and non‑transactional exactly‑once solutions using database tables or Redis, along with practical Java code examples.

Exactly-OnceRocketMQdeduplication
0 likes · 17 min read
Message Deduplication and Exactly-Once Semantics in RocketMQ: Strategies and Implementation
IT Architects Alliance
IT Architects Alliance
Jan 21, 2022 · Databases

How Redis Overcame Single‑Thread Limits with Lazy Free and Multithreaded I/O

This article explains Redis’s original single‑threaded event‑driven architecture, its performance bottlenecks, and how versions 4.0 and 6.0 introduced Lazy Free and multithreaded I/O mechanisms—including asynchronous key deletion, background freeing, and I/O thread pools—to improve scalability while outlining their implementation details, limitations, and comparisons with Tair.

Database InternalsLazy FreeMultithreaded I/O
0 likes · 15 min read
How Redis Overcame Single‑Thread Limits with Lazy Free and Multithreaded I/O
Architect's Tech Stack
Architect's Tech Stack
Jan 19, 2022 · Backend Development

Implementing Chunked and Resumable File Upload with Fast Upload (秒传) in Java

This article explains how to implement fast (MD5‑based) upload, chunked upload, and resumable (break‑point) upload for large files in Java, detailing the Redis‑based status tracking, server‑side file handling with RandomAccessFile or MappedByteBuffer, and the required front‑end and back‑end coordination.

BackendMappedByteBufferRandomAccessFile
0 likes · 13 min read
Implementing Chunked and Resumable File Upload with Fast Upload (秒传) in Java
Java Interview Crash Guide
Java Interview Crash Guide
Jan 19, 2022 · Backend Development

Master the CCBank Online Interview: 30+ Must‑Know Backend Questions

This article outlines the first, second, and HR interview rounds for a CCBank online position, detailing over thirty technical and behavioral questions covering Elasticsearch, Redis, Spring Cloud, JVM, data structures, performance optimization, and candidate queries, followed by a concise summary.

ElasticsearchSpring Cloudinterview
0 likes · 3 min read
Master the CCBank Online Interview: 30+ Must‑Know Backend Questions
Code Ape Tech Column
Code Ape Tech Column
Jan 19, 2022 · Databases

Choosing Appropriate Redis Data Structures for Large‑Scale Statistics: Cardinality, Sorting, and Aggregation

This article explains how to select Redis data structures such as Bitmap, HyperLogLog, Set, List, Sorted Set, and Hash to efficiently handle massive statistical scenarios like user login status, UV counting, ranking, and set aggregation, while providing concrete command examples and best‑practice recommendations.

BitmapCardinalityData Structures
0 likes · 11 min read
Choosing Appropriate Redis Data Structures for Large‑Scale Statistics: Cardinality, Sorting, and Aggregation
IT Architects Alliance
IT Architects Alliance
Jan 18, 2022 · Backend Development

Implementation Strategies for Delayed (Scheduled) Messages in Distributed Systems

This article examines common delayed (scheduled) message implementations in distributed systems, comparing external storage approaches using databases, RocksDB, and Redis, as well as built-in solutions in open-source MQs like RocketMQ, Pulsar, and QMQ, and discusses their advantages, drawbacks, and design considerations.

Distributed SystemsRocketMQRocksDB
0 likes · 12 min read
Implementation Strategies for Delayed (Scheduled) Messages in Distributed Systems
Top Architect
Top Architect
Jan 15, 2022 · Backend Development

Distributed Lock Implementation Strategies: Database, Redis, and Zookeeper

This article explains why distributed locks are needed beyond Java's JVM‑level locks, compares three common implementation approaches—database unique indexes, Redis SETNX, and Zookeeper ephemeral sequential nodes—and provides concrete SQL and Java code examples with analysis of re‑entrancy, release timing, and single‑point risks.

BackendZooKeeperdatabase
0 likes · 15 min read
Distributed Lock Implementation Strategies: Database, Redis, and Zookeeper
Architect
Architect
Jan 14, 2022 · Backend Development

Design and Implementation of a Redis-Based Delayed Queue

This article explains the business scenarios that require delayed processing, compares several existing delayed‑queue solutions, and details a Redis‑backed delayed‑queue design—including its data structures, message format, multi‑node deployment, and runtime workflow—providing practical guidance for building scalable backend systems.

Backend ArchitectureDistributed Systemsdelayed queue
0 likes · 8 min read
Design and Implementation of a Redis-Based Delayed Queue
IT Xianyu
IT Xianyu
Jan 14, 2022 · Operations

Redis Monitoring, Data Migration, and Cluster Management Tools Overview

This article introduces essential Redis operational tools, covering the INFO command for monitoring, Prometheus‑based redis‑exporter visualization, the Redis‑shake data migration utility, Redis‑full‑check consistency verification, and the CacheCloud platform for comprehensive cluster management.

CacheCloudData MigrationOperations
0 likes · 10 min read
Redis Monitoring, Data Migration, and Cluster Management Tools Overview
Architecture Digest
Architecture Digest
Jan 11, 2022 · Backend Development

Implementing Distributed Locks with Redis and Redisson Watchdog Mechanism

This article explains how to implement a distributed lock using Redis by setting a unique key-value pair, handling expiration, addressing lock timeout issues, and leveraging Redisson's watchdog mechanism with automatic renewal, including detailed code examples for tryLock, subscription, and renewal processes.

Watchdogdistributed-lockjava
0 likes · 9 min read
Implementing Distributed Locks with Redis and Redisson Watchdog Mechanism
Architect's Tech Stack
Architect's Tech Stack
Jan 11, 2022 · Backend Development

Diagnosing Redis Connection Pool Blocking in a Spring Boot Application

The article details a week‑long investigation of unresponsive APIs in a sandbox environment, tracing the root cause to Redis connection pool blocking in a Spring Boot service, and presents step‑by‑step debugging, code analysis, configuration fixes, and best‑practice recommendations for proper Redis usage.

ArthasConnection PoolJedis
0 likes · 9 min read
Diagnosing Redis Connection Pool Blocking in a Spring Boot Application
Java High-Performance Architecture
Java High-Performance Architecture
Jan 6, 2022 · Backend Development

Mastering Redis Distributed Locks: Strategies, Pitfalls, and Redisson Watchdog

Redis distributed locks rely on a key-value marker with unique client IDs, expiration times, and careful release checks; the article explores lock timeout challenges, automatic renewal via watchdog mechanisms, Redisson's tryLock implementation, Lua‑based renewal scripts, and best practices to avoid deadlocks and resource waste.

Watchdogconcurrencydistributed-lock
0 likes · 11 min read
Mastering Redis Distributed Locks: Strategies, Pitfalls, and Redisson Watchdog
Sohu Tech Products
Sohu Tech Products
Jan 5, 2022 · Backend Development

Implementing Distributed Locks with Redis and Redisson

This article explains how to implement a distributed lock using Redis, discusses challenges with lock expiration, describes automatic renewal techniques such as watchdog mechanisms, and provides detailed Java code examples of Redisson's tryLock and renewal processes.

Watchdogconcurrencydistributed-lock
0 likes · 12 min read
Implementing Distributed Locks with Redis and Redisson
Tencent Cloud Developer
Tencent Cloud Developer
Jan 5, 2022 · Fundamentals

Understanding Skip Lists: Principles, Implementation in Go, and Redis Integration

The article explains skip list fundamentals, shows how probabilistic multi‑level indexing yields O(log n) search and O(n) space, provides a complete Go implementation with insertion, deletion and search functions, compares Redis’s enhanced skip list used in sorted sets, and answers common design questions.

Go ProgrammingIndex structureSkip List
0 likes · 17 min read
Understanding Skip Lists: Principles, Implementation in Go, and Redis Integration
Top Architect
Top Architect
Jan 5, 2022 · Backend Development

Implementation and Comparison of Delayed Task Solutions in Java

This article explains the concept of delayed tasks, compares them with scheduled tasks, and presents five implementation approaches—database polling, JDK DelayQueue, time‑wheel algorithm, Redis sorted sets, and message‑queue based delay queues—detailing their code, advantages, and drawbacks.

DelayQueueMessage QueueQuartz
0 likes · 17 min read
Implementation and Comparison of Delayed Task Solutions in Java
DeWu Technology
DeWu Technology
Jan 4, 2022 · Backend Development

Best Practices for Redis Cache Consistency in Distributed Systems

In distributed e‑commerce systems, achieving Redis cache consistency requires invalidating stale entries via reliable DB change detection (e.g., binlog listeners) and optionally using versioned writes that only update when newer, combined with safeguards like TTLs, double deletes, and business‑specific designs to mitigate race conditions and ensure eventual consistency.

Cache Consistencybackend-developmentredis
0 likes · 9 min read
Best Practices for Redis Cache Consistency in Distributed Systems
Top Architect
Top Architect
Jan 2, 2022 · Backend Development

Debugging Redis Connection Pool Blocking Issues in a Spring Backend Application

The article details a step‑by‑step investigation of a Spring‑based backend where API requests hung due to Redis connection pool misconfiguration, showing how thread dumps, jstack, and Arthas were used to pinpoint blocking in Jedis pool acquisition, and provides corrected configuration and proper connection handling recommendations.

Connection PoolJedisdebugging
0 likes · 9 min read
Debugging Redis Connection Pool Blocking Issues in a Spring Backend Application
Java Architect Essentials
Java Architect Essentials
Jan 1, 2022 · Backend Development

Mastering Large File Uploads: Instant, Chunked, and Resumable Strategies in Java

This article explains why simple byte‑stream uploads fail for large files and introduces three robust solutions—instant (hash‑based) upload, chunked (slice) upload, and resumable upload—detailing their core logic, Redis tracking, and Java implementations using RandomAccessFile and MappedByteBuffer, plus practical code snippets.

MappedByteBufferRandomAccessFilechunked upload
0 likes · 13 min read
Mastering Large File Uploads: Instant, Chunked, and Resumable Strategies in Java
Java High-Performance Architecture
Java High-Performance Architecture
Dec 30, 2021 · Information Security

How to Deploy and Manage JumpServer for Secure Remote Access

This guide walks you through installing JumpServer—a bastion host solution that adds permission control, session monitoring, and audit logging to remote server access—by setting up MariaDB and Redis, configuring Docker, generating secret keys, running the JumpServer container, and configuring users, groups, assets, and permissions.

Bastion HostDevOpsDocker
0 likes · 16 min read
How to Deploy and Manage JumpServer for Secure Remote Access
Top Architect
Top Architect
Dec 30, 2021 · Backend Development

High‑Performance Caching with OpenResty, Nginx, and Redis Using Lua

This article explains how to leverage OpenResty and Lua scripts to integrate Nginx with Redis for direct caching, compression, timed updates, request forwarding, and configurable URL management, thereby improving concurrency, reducing latency, and enhancing the resilience of backend web services.

LuaNginxOpenResty
0 likes · 7 min read
High‑Performance Caching with OpenResty, Nginx, and Redis Using Lua
Architecture Digest
Architecture Digest
Dec 30, 2021 · Operations

Step‑by‑Step Deployment of JumpServer with MariaDB, Redis, and Docker

This tutorial walks through installing MariaDB and Redis on a backend node, configuring Docker on a separate host, pulling and running the JumpServer container, and then setting up users, assets, and permissions so that operations teams can securely manage internal servers via a bastion host.

BastionHostDockerJumpServer
0 likes · 15 min read
Step‑by‑Step Deployment of JumpServer with MariaDB, Redis, and Docker
Java High-Performance Architecture
Java High-Performance Architecture
Dec 30, 2021 · Backend Development

Mastering Efficient Large File Uploads: Instant, Chunked & Resume Techniques

This guide explains how to improve large file upload performance by using instant (hash‑based) uploads, chunked (slice) uploads, and breakpoint‑resume strategies, detailing the underlying Redis state tracking, server‑side Java implementations with RandomAccessFile and MappedByteBuffer, and practical deployment considerations.

chunked uploadfile uploadjava
0 likes · 14 min read
Mastering Efficient Large File Uploads: Instant, Chunked & Resume Techniques
Code Ape Tech Column
Code Ape Tech Column
Dec 30, 2021 · Backend Development

Implementing JWT Invalidation with Redis Blacklist in Spring Cloud Gateway

This article explains how to invalidate JWT tokens during password changes, permission updates, or logout by using a Redis-backed blacklist approach in Spring Cloud Gateway, detailing the extraction of the token's jti, gateway filtering, downstream modifications, and a logout endpoint implementation.

AuthenticationBackendJWT
0 likes · 8 min read
Implementing JWT Invalidation with Redis Blacklist in Spring Cloud Gateway
Top Architect
Top Architect
Dec 27, 2021 · Backend Development

Redis Distributed Lock Implementation and Redisson Watchdog Mechanism

This article explains how to implement a Redis-based distributed lock, discusses the challenges of lock expiration, introduces automatic renewal strategies such as watchdogs, and provides detailed Redisson tryLock and renewal code examples for reliable concurrency control.

Watchdogjavaredis
0 likes · 12 min read
Redis Distributed Lock Implementation and Redisson Watchdog Mechanism
Top Architect
Top Architect
Dec 26, 2021 · Databases

Understanding Redis Lazy Free and Multi‑Threaded I/O: Architecture, Mechanisms, and Limitations

The article explains how Redis, originally a single‑threaded in‑memory cache, introduces Lazy Free in version 4.0 and multi‑threaded I/O in version 6.0 to mitigate blocking during large key deletions, describes the underlying event‑driven architecture, shows relevant source code, and discusses the benefits and constraints of these mechanisms.

Lazy FreeMultithreaded I/Oevent loop
0 likes · 16 min read
Understanding Redis Lazy Free and Multi‑Threaded I/O: Architecture, Mechanisms, and Limitations
Code Ape Tech Column
Code Ape Tech Column
Dec 25, 2021 · Backend Development

Key New Features in Spring Boot 2.6.0

Spring Boot 2.6.0 introduces several important changes such as default prohibition of circular dependencies, custom sanitizing functions, automatic Redis connection‑pool activation, moved reactive session properties, Maven build‑info exclusions, WebTestClient support for MVC testing, and Log4j2 composite configuration options.

BackendConfigurationRelease Notes
0 likes · 5 min read
Key New Features in Spring Boot 2.6.0
Selected Java Interview Questions
Selected Java Interview Questions
Dec 24, 2021 · Backend Development

Implementing Fixed-Time Scheduled Tasks in Single-Node and Distributed Java Applications

This article explains how to implement fixed‑time scheduled tasks on a single machine using Timer and ScheduledThreadPoolExecutor, how to build a custom Redis‑based distributed scheduler with distributed locks, and compares several third‑party frameworks such as Quartz, TBSchedule, Elastic‑Job and Sature for distributed task execution.

QuartzScheduled Tasksbackend-development
0 likes · 8 min read
Implementing Fixed-Time Scheduled Tasks in Single-Node and Distributed Java Applications
TAL Education Technology
TAL Education Technology
Dec 23, 2021 · Databases

Understanding Redis Sorted‑Set Implementation: From Linked List to Skiplist

This article explains how Redis implements its Sorted‑Set data type by starting from a basic ordered singly linked list, analyzing its insertion and query complexities, introducing the skiplist structure, deriving its O(log N) performance, and detailing the underlying C source code for creation, insertion, lookup, and deletion.

Data StructureSorted Setc++
0 likes · 32 min read
Understanding Redis Sorted‑Set Implementation: From Linked List to Skiplist
21CTO
21CTO
Dec 23, 2021 · Backend Development

Choosing the Right Message Broker for Microservices: RabbitMQ vs Kafka vs Redis

This article explains the difference between synchronous and asynchronous microservice communication, outlines the benefits of async messaging, and compares three popular message brokers—RabbitMQ, Kafka, and Redis—based on scale, persistence, and consumer patterns, offering guidance on selecting the right broker for various use cases.

KafkaRabbitMQredis
0 likes · 8 min read
Choosing the Right Message Broker for Microservices: RabbitMQ vs Kafka vs Redis
Code Ape Tech Column
Code Ape Tech Column
Dec 23, 2021 · Operations

Overview of Redis Monitoring, Data Migration, and Cluster Management Tools

This article introduces essential Redis operational tools, covering the INFO command for real‑time monitoring, Prometheus‑based exporters, data migration utilities like Redis‑shake, consistency checking with Redis‑full‑check, and cluster management via CacheCloud, while offering practical usage tips.

CacheCloudData Migrationredis
0 likes · 10 min read
Overview of Redis Monitoring, Data Migration, and Cluster Management Tools
IT Architects Alliance
IT Architects Alliance
Dec 20, 2021 · Backend Development

How to Build a Robust Flash‑Sale System that Handles Millions of Requests

This article examines the core challenges of flash‑sale (秒杀) systems—such as overselling, extreme concurrency, bot traffic, and database strain—and presents a comprehensive backend design that includes dedicated databases, dynamic URLs, static pages, Redis clustering, Nginx load balancing, SQL optimization, rate‑limiting, asynchronous order queues, and service degradation strategies.

backend designflash salehigh concurrency
0 likes · 14 min read
How to Build a Robust Flash‑Sale System that Handles Millions of Requests
21CTO
21CTO
Dec 17, 2021 · Backend Development

Mastering Cache: Benefits, Strategies, and Optimization Techniques

This article explores how caching accelerates read/write performance and reduces backend load, analyzes its benefits and costs, and presents practical strategies for cache updates, granularity control, penetration, avalanche, and hot‑key issues with concrete examples and diagrams.

Cache ConsistencyDistributed Systemscaching
0 likes · 14 min read
Mastering Cache: Benefits, Strategies, and Optimization Techniques
IT Architects Alliance
IT Architects Alliance
Dec 17, 2021 · Backend Development

Mastering Cache: Strategies to Boost Performance and Avoid Common Pitfalls

This article examines the benefits, costs, and design patterns of caching—including update policies, granularity control, penetration, bottom‑hole, avalanche, and hot‑key issues—while offering concrete optimization techniques and practical recommendations for building robust Redis‑MySQL cache layers.

Cache Strategiesavalanche preventionbackend-development
0 likes · 15 min read
Mastering Cache: Strategies to Boost Performance and Avoid Common Pitfalls
IT Architects Alliance
IT Architects Alliance
Dec 17, 2021 · Databases

Comparison of Jedis, Redisson, and Lettuce and Their Integration with Spring Boot

This article compares the three popular Java Redis clients—Jedis, Redisson, and Lettuce—detailing their differences in threading, I/O, and feature sets, and provides comprehensive Spring Boot configuration and code examples for using StringRedisTemplate, RedissonClient, and Spring Cache annotations to implement caching and distributed locks.

JedisLettuceSpring Boot
0 likes · 11 min read
Comparison of Jedis, Redisson, and Lettuce and Their Integration with Spring Boot
Practical DevOps Architecture
Practical DevOps Architecture
Dec 15, 2021 · Databases

Redis AOF Persistence Configuration Guide

This guide explains Redis AOF persistence settings, including default options, the three synchronization strategies (no, always, everysec), and practical recommendations such as enabling AOF on slaves for critical data while keeping masters free of persistence work.

AOFConfigurationDevOps
0 likes · 3 min read
Redis AOF Persistence Configuration Guide
Architect
Architect
Dec 15, 2021 · Backend Development

Cache Optimization Techniques and Design Strategies

This article explains how caching improves application performance and reduces backend load, and it details practical optimization methods such as benefit‑cost analysis, update policies, granularity control, penetration protection, bottomless‑hole mitigation, avalanche prevention, and hot‑key rebuild strategies, primarily using Redis.

Distributed Systemsoptimizationredis
0 likes · 15 min read
Cache Optimization Techniques and Design Strategies
macrozheng
macrozheng
Dec 15, 2021 · Backend Development

Implement Distributed Locks with Spring Integration: Redis & Zookeeper Guide

Learn how to implement distributed locks in Spring-based applications using Spring Integration, covering Redlock, Apache Curator alternatives, and detailed step-by-step examples for Redis and Zookeeper backends, including configuration, code snippets, testing procedures, and troubleshooting tips for reliable lock management.

Spring IntegrationZooKeeperjava
0 likes · 7 min read
Implement Distributed Locks with Spring Integration: Redis & Zookeeper Guide
IT Architects Alliance
IT Architects Alliance
Dec 15, 2021 · Databases

Comprehensive Redis Guide: Data Structures, Commands, Persistence, Performance Tuning, and Deployment Strategies

This article provides a thorough introduction to Redis, covering its core data structures and common commands, persistence options (RDB and AOF), memory‑management and eviction policies, pipelining, transactions and Lua scripting, performance optimization techniques, replication, Sentinel high‑availability, cluster sharding, and a comparison of popular Java clients.

ClusterData StructuresIn-Memory Database
0 likes · 40 min read
Comprehensive Redis Guide: Data Structures, Commands, Persistence, Performance Tuning, and Deployment Strategies
Senior Brother's Insights
Senior Brother's Insights
Dec 14, 2021 · Backend Development

Beyond Redis: When to Choose EhCache for Java In‑Process Caching

With hardware costs dropping, many default to Redis for caching, but it isn’t always optimal; this article examines EhCache—a pure‑Java, in‑process cache—covering its architecture, eviction policies, API and XML configurations, and step‑by‑step Spring Boot integration, helping you decide when to prefer it.

BackendCache EvictionEhcache
0 likes · 15 min read
Beyond Redis: When to Choose EhCache for Java In‑Process Caching
Architecture Digest
Architecture Digest
Dec 14, 2021 · Information Security

Implementing a Dynamic IP Blacklist with Nginx, Lua, and Redis

This guide explains how to build a dynamic IP blacklist using Nginx, Lua scripts, and Redis to block malicious or unwanted requests at the server level, covering architecture choices, installation steps, configuration details, and the benefits of a lightweight, shared, and easily updatable solution.

Server Securityip blacklistredis
0 likes · 4 min read
Implementing a Dynamic IP Blacklist with Nginx, Lua, and Redis
Su San Talks Tech
Su San Talks Tech
Dec 13, 2021 · Backend Development

Why Distributed IDs Matter and 9 Efficient Generation Methods

This article explains the need for globally unique, high‑performance, and easy‑to‑integrate distributed IDs, outlines their essential characteristics, and compares nine common generation approaches—including UUID, database auto‑increment, segment mode, Redis, Snowflake, Baidu uid‑generator, Meituan Leaf, and Didi TinyID—detailing each method’s advantages and drawbacks.

ID generationdistributed-idredis
0 likes · 20 min read
Why Distributed IDs Matter and 9 Efficient Generation Methods
IT Architects Alliance
IT Architects Alliance
Dec 11, 2021 · Databases

Mastering Redis Replication and Sentinel: Solving Failover Challenges

This article examines the limitations of Redis master‑slave replication, explains how Redis Sentinel addresses those issues with monitoring, notification, and automatic failover, and provides detailed configuration commands, discovery mechanisms, and step‑by‑step failover procedures for building a highly available Redis deployment.

ConfigurationReplicationdatabase
0 likes · 12 min read
Mastering Redis Replication and Sentinel: Solving Failover Challenges
Code Ape Tech Column
Code Ape Tech Column
Dec 10, 2021 · Databases

13 Redis Performance Optimization Rules

This article presents thirteen practical Redis performance optimization rules, covering avoidance of slow commands, proper key expiration handling, data structure selection, persistence strategies, hardware considerations, pipelining, client optimization, and clustering to maximize throughput and minimize latency in high‑volume deployments.

databaseredis
0 likes · 11 min read
13 Redis Performance Optimization Rules
Cloud Native Technology Community
Cloud Native Technology Community
Dec 9, 2021 · Backend Development

Redis Distributed Locks: Safety Issues, Redlock Debate, and Best Practices

This article thoroughly examines how Redis distributed locks work, the pitfalls of simple SETNX‑based locks such as deadlocks and premature expiration, presents robust solutions using expiration, unique identifiers, Lua scripts, discusses the Redlock algorithm and its controversy, compares Zookeeper locks, and offers practical guidance for safe lock usage.

LuaRedlockZooKeeper
0 likes · 31 min read
Redis Distributed Locks: Safety Issues, Redlock Debate, and Best Practices
macrozheng
macrozheng
Dec 9, 2021 · Backend Development

Mastering Redis Distributed Locks: From Basics to Advanced Redisson Practices

This comprehensive guide explains the principles, pitfalls, and best practices of implementing Redis distributed locks, covering basic SETNX usage, lock timeout handling, re‑entrant locks, Redlock algorithm debates, and practical Redisson integration with Spring Boot.

RedlockSpring Bootjava
0 likes · 24 min read
Mastering Redis Distributed Locks: From Basics to Advanced Redisson Practices
Sohu Tech Products
Sohu Tech Products
Dec 8, 2021 · Backend Development

Understanding Redis I/O and Thread Models: From Blocking to Multi‑Reactor Designs

This article explains Redis's high‑performance I/O architecture by tracing the evolution from blocking, non‑blocking, and multiplexed network models to various Reactor‑based thread designs, illustrating each model with Java pseudo‑code and diagrams to clarify why Redis adopts a single‑threaded Reactor with optional multi‑threaded I/O extensions.

IO ModelNetwork programmingReactor Pattern
0 likes · 19 min read
Understanding Redis I/O and Thread Models: From Blocking to Multi‑Reactor Designs
21CTO
21CTO
Dec 8, 2021 · Backend Development

What’s New in Django 4.0? Key Features and Installation Guide

Django 4.0 has been officially released, bringing built‑in Redis caching, enhanced form customization, new password hashing, default zoneinfo support, upgraded jQuery, PostgreSQL improvements, and a test runner shuffle option, with a simple pip installation command.

DjangoFormsRelease Notes
0 likes · 3 min read
What’s New in Django 4.0? Key Features and Installation Guide
NiuNiu MaTe
NiuNiu MaTe
Dec 7, 2021 · Databases

Master‑Slave Replication in Redis: How It Works and How to Prevent Data Loss

This article explains why a single‑instance Redis can cause outages, introduces the master‑slave architecture, details the full and incremental synchronization processes, shows how to configure replication, addresses multi‑slave scaling, network interruptions, and automatic failover with Sentinel.

Master‑SlaveReplicationdatabase
0 likes · 11 min read
Master‑Slave Replication in Redis: How It Works and How to Prevent Data Loss
Top Architect
Top Architect
Dec 5, 2021 · Backend Development

Handling Redis Cache Issues: Breakdown, Penetration, and Avalanche Strategies

This article explains how Redis cache can suffer from key expiration, eviction, and high‑concurrency problems such as cache breakdown, penetration, and avalanche, and presents practical lock‑based, filter‑based, and timing‑aware solutions to maintain backend stability and performance.

Cachecache-avalanchecache-breakdown
0 likes · 6 min read
Handling Redis Cache Issues: Breakdown, Penetration, and Avalanche Strategies
Top Architect
Top Architect
Dec 4, 2021 · Backend Development

Cache Usage Techniques and Design Solutions: Benefits, Costs, Update Strategies, Granularity, and Common Optimizations

This article explains how caching can accelerate read/write performance and reduce backend load, analyzes its benefits and costs, discusses update strategies, granularity control, and solutions for common problems such as cache penetration, empty‑hole, avalanche, and hot‑key reconstruction, providing practical guidelines for robust backend design.

Backend PerformanceDistributed Systemscache invalidation
0 likes · 14 min read
Cache Usage Techniques and Design Solutions: Benefits, Costs, Update Strategies, Granularity, and Common Optimizations
IT Architects Alliance
IT Architects Alliance
Dec 3, 2021 · Backend Development

Design and Performance Optimization of a High‑Concurrency WebSocket Gateway (Version 2.0)

This article details the evolution from a Node.js‑based WebSocket gateway to a Go‑implemented, gRPC‑driven architecture, describing the redesign of connection handling, TLS off‑loading, socket ID generation, session management, custom Kafka headers, code‑level optimizations, and extensive performance testing that validates the new gateway’s scalability and resource efficiency.

GoKafkaWebSocket
0 likes · 22 min read
Design and Performance Optimization of a High‑Concurrency WebSocket Gateway (Version 2.0)
Top Architect
Top Architect
Dec 2, 2021 · Backend Development

Design and Performance Optimization of a High‑Scale WebSocket Gateway (Version 2.0)

This article describes the architectural evolution from Gateway 1.0 to Gateway 2.0 for a high‑traffic document collaboration platform, detailing the redesign of the WebSocket layer, resource‑usage optimizations, heartbeat mechanisms, custom Kafka headers, message serialization, load‑testing results, and the operational lessons learned to support millions of concurrent connections.

GoKafkaMicroservices
0 likes · 22 min read
Design and Performance Optimization of a High‑Scale WebSocket Gateway (Version 2.0)
Architecture Digest
Architecture Digest
Dec 2, 2021 · Backend Development

Design and Performance Optimization of a Million‑Scale WebSocket Gateway at Shimo Docs

This article details the redesign of Shimo Docs' WebSocket gateway—from a Node.js/Socket.IO 1.0 version to a Go‑based 2.0 architecture—covering handshake degradation, TLS memory savings, SnowFlake SocketID generation, Redis‑based session broadcasting, heartbeat tuning, custom Kafka headers, object pooling, MessagePack compression, extensive performance testing, and the resulting stability and scalability improvements for handling half‑a‑million concurrent connections.

GoKafkaMicroservices
0 likes · 23 min read
Design and Performance Optimization of a Million‑Scale WebSocket Gateway at Shimo Docs
Architect
Architect
Dec 1, 2021 · Backend Development

Design and Performance Optimization of a High‑Concurrency WebSocket Gateway (Version 2.0)

This article describes the evolution from a Node.js‑based WebSocket gateway to a Go‑powered, gRPC‑enabled architecture, detailing the redesign of the gateway, resource‑saving techniques, heartbeat and TLS optimizations, message‑broker choices, extensive performance testing, and the resulting improvements in CPU, memory, and scalability for millions of concurrent connections.

GoPerformance TestingWebSocket
0 likes · 25 min read
Design and Performance Optimization of a High‑Concurrency WebSocket Gateway (Version 2.0)
21CTO
21CTO
Nov 30, 2021 · Backend Development

Building a Million-Scale WebSocket Gateway: Architecture, Optimization & Performance

This article details the design, refactoring, and performance testing of a high‑traffic WebSocket gateway for Shimo Docs, covering the evolution from a Node.js Socket.IO version to a Go‑based microservice architecture, TLS memory tuning, socket ID generation, heartbeat handling, custom Kafka headers, and resource‑efficient scaling to half‑a‑million concurrent connections.

GoKafkaWebSocket
0 likes · 25 min read
Building a Million-Scale WebSocket Gateway: Architecture, Optimization & Performance
Programmer DD
Programmer DD
Nov 30, 2021 · Backend Development

Mastering Redis Distributed Locks with Jedis: A Hands‑On Guide

This tutorial demonstrates how to implement Redis distributed locks in Java using Jedis, covering lock creation with SETNX, expiration handling, safe unlocking via Lua scripts, and a high‑concurrency simulation of 100,000 users competing for limited stock.

JedisSpring Bootconcurrency
0 likes · 9 min read
Mastering Redis Distributed Locks with Jedis: A Hands‑On Guide
Architect
Architect
Nov 30, 2021 · Databases

Why Is Redis So Fast? Architecture, Data Structures, Persistence, Replication and Cluster

This article explains why Redis achieves extremely high performance by being an in‑memory key‑value store, using compact data structures, a single‑threaded command model with epoll‑based I/O multiplexing, efficient hash tables, progressive rehashing, various persistence options, master‑slave replication, Sentinel monitoring and a sharded Cluster architecture.

ClusterData StructuresIn-Memory Database
0 likes · 23 min read
Why Is Redis So Fast? Architecture, Data Structures, Persistence, Replication and Cluster
High Availability Architecture
High Availability Architecture
Nov 30, 2021 · Backend Development

Design and Performance Optimization of a Million‑Scale WebSocket Gateway

This article details the evolution from a Node.js Socket.IO gateway to a Go‑based, gRPC‑enabled WebSocket gateway that supports millions of concurrent connections, covering architecture redesign, TLS handling, socket ID generation, session management, heartbeat optimization, custom Kafka headers, code‑level refinements, and extensive performance testing results.

GoKafkaWebSocket
0 likes · 21 min read
Design and Performance Optimization of a Million‑Scale WebSocket Gateway
Top Architect
Top Architect
Nov 27, 2021 · Backend Development

Design and Implementation of a High‑Concurrency Flash‑Sale (Seckill) System

The article explains the characteristics of flash‑sale scenarios, presents core design principles such as rate limiting, peak shaving, asynchronous processing and scalability, and details a complete backend and frontend architecture—including Redis‑based queueing and caching—to build a robust, high‑throughput seckill system.

Distributed SystemsSeckillasynchronous processing
0 likes · 12 min read
Design and Implementation of a High‑Concurrency Flash‑Sale (Seckill) System
360 Tech Engineering
360 Tech Engineering
Nov 26, 2021 · Backend Development

Implementing a Redis Message Queue with RPUSH and BLPOP in PHP

This article explains how to build a Redis‑based message queue for high‑concurrency business scenarios using RPUSH to enqueue tasks and BLPOP to block‑wait for consumption, illustrated with a PHP cancel‑order example and detailed configuration and code snippets.

BLPOPMessage QueuePHP
0 likes · 6 min read
Implementing a Redis Message Queue with RPUSH and BLPOP in PHP
Top Architect
Top Architect
Nov 26, 2021 · Backend Development

Implementing Automatic Idempotency in Spring Boot Using Redis and Interceptors

This article demonstrates how to achieve automatic request idempotency in Spring Boot applications by leveraging Redis for token storage, custom annotations, and interceptor configuration, providing step-by-step code examples for building a Redis service, token service, custom annotation, interceptor, and testing the solution.

IdempotencyInterceptorSpring Boot
0 likes · 10 min read
Implementing Automatic Idempotency in Spring Boot Using Redis and Interceptors
IT Architects Alliance
IT Architects Alliance
Nov 26, 2021 · Fundamentals

Understanding Mutual Exclusion and Idempotency in Distributed Systems: Locks, Implementations, and GTIS

This article explains the challenges of mutual exclusion and idempotency in distributed environments, compares thread‑level and process‑level solutions, describes the principles and typical implementations of distributed locks (Zookeeper, Redis, Tair, Cerberus), and introduces GTIS as a reliable idempotency framework.

IdempotencyZooKeeperconcurrency
0 likes · 34 min read
Understanding Mutual Exclusion and Idempotency in Distributed Systems: Locks, Implementations, and GTIS
dbaplus Community
dbaplus Community
Nov 25, 2021 · Operations

How Unified Alert Convergence Can Transform Monitoring Systems

This article explains the background and challenges of legacy monitoring systems, defines key concepts such as exceptions, problems, alerts and recoveries, introduces critical metrics like MTTA and MTTR, and details the design, architecture, and core implementation of a unified alert convergence service using Redis delay queues.

MTTAMTTROperations
0 likes · 19 min read
How Unified Alert Convergence Can Transform Monitoring Systems
Beike Product & Technology
Beike Product & Technology
Nov 25, 2021 · Backend Development

Implementation of Hystrix Circuit Breaker in PHP: Counter Design, Bucket Strategies, Distributed Time Sync, and Performance Evaluation

This article details the design and implementation of a Hystrix‑style circuit breaker for PHP, covering circular and fixed bucket counters, distributed time synchronization, dynamic Apollo configuration, event handling, monitoring tools, single‑node versus cluster approaches, key‑length handling, storage abstraction, and performance testing results.

HystrixPHPPerformance Testing
0 likes · 13 min read
Implementation of Hystrix Circuit Breaker in PHP: Counter Design, Bucket Strategies, Distributed Time Sync, and Performance Evaluation
Cloud Native Technology Community
Cloud Native Technology Community
Nov 25, 2021 · Databases

Why Is My Redis Slowing Down? A Complete Troubleshooting Guide

This article provides a systematic, step‑by‑step methodology for diagnosing Redis latency spikes, covering baseline performance testing, slow‑log analysis, high‑complexity commands, big‑key handling, expiration patterns, memory limits, fork overhead, huge‑page settings, AOF configurations, CPU binding, swap usage, memory fragmentation, network saturation, and practical monitoring tips.

Latencydatabasemonitoring
0 likes · 42 min read
Why Is My Redis Slowing Down? A Complete Troubleshooting Guide
vivo Internet Technology
vivo Internet Technology
Nov 24, 2021 · Databases

Redis I/O Model and Thread Model Deep Dive

The article thoroughly examines Redis’s high‑performance architecture, detailing the evolution from blocking to non‑blocking I/O, the Reactor pattern’s single‑ and multi‑reactor models, Redis’s I/O multiplexing thread design, and how its hybrid single‑thread core with auxiliary I/O threads mitigates bottlenecks under heavy traffic.

I/O MultiplexingNetwork programmingNon-blocking I/O
0 likes · 16 min read
Redis I/O Model and Thread Model Deep Dive
Top Architect
Top Architect
Nov 23, 2021 · Databases

Understanding Redis Persistence: RDB and AOF Mechanisms

This article explains how Redis, an in‑memory key‑value store, ensures data durability through two persistence methods—RDB snapshotting and AOF command logging—detailing their commands, file structures, configuration options, performance trade‑offs, and rewrite processes.

AOFData DurabilityPersistence
0 likes · 13 min read
Understanding Redis Persistence: RDB and AOF Mechanisms