Tagged articles

Redis

3563 articles · Page 13 of 36
Senior Tony
Senior Tony
Jan 11, 2024 · Backend Development

10 Powerful Redis Use Cases Beyond Simple Caching

This guide explores ten practical Redis scenarios—including login authentication, counters, fan following, leaderboards, anti‑scraping, message queues, browser history, distributed locks, user sign‑in tracking, and website UV statistics—showcasing commands and patterns to boost performance in real‑world applications.

Caching AlternativesData StructuresRedis
0 likes · 12 min read
10 Powerful Redis Use Cases Beyond Simple Caching
Sohu Tech Products
Sohu Tech Products
Jan 10, 2024 · Databases

An Introduction to Redis: Basics, Performance, and Comparison with Memcached

Redis is an open‑source, in‑memory NoSQL database that provides ultra‑fast key‑value storage, rich data structures, persistence, clustering and extensible modules, making it the preferred distributed cache over Memcached, which lacks these features and is now rarely chosen for new projects.

CachingIn-Memory DatabaseMemcached Comparison
0 likes · 12 min read
An Introduction to Redis: Basics, Performance, and Comparison with Memcached
Java High-Performance Architecture
Java High-Performance Architecture
Jan 9, 2024 · Backend Development

How to Build a Flexible API Rate‑Limiting System with Spring Interceptor and Redis

This article demonstrates step‑by‑step how to prevent API abuse in a Spring MVC application by using an Interceptor combined with Redis for counting requests, customizing limits per endpoint through annotations and reflection, handling mapping rules, path‑parameter challenges, and obtaining the real client IP.

InterceptorJavaRedis
0 likes · 19 min read
How to Build a Flexible API Rate‑Limiting System with Spring Interceptor and Redis
Architect's Guide
Architect's Guide
Jan 9, 2024 · Backend Development

Implementing Delayed Task Scheduling in Java: Quartz, DelayQueue, Time Wheel, Redis, and RabbitMQ

This article compares delayed tasks with scheduled tasks and presents six practical Java solutions—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis ZSET, Redis key‑space notifications, and RabbitMQ delayed queues—detailing their implementations, advantages, and drawbacks for handling order‑timeout scenarios.

DelayQueueJavaQuartz
0 likes · 16 min read
Implementing Delayed Task Scheduling in Java: Quartz, DelayQueue, Time Wheel, Redis, and RabbitMQ
IT Niuke
IT Niuke
Jan 8, 2024 · Backend Development

Implementing Idempotent APIs in SpringBoot

This article explains the concept of idempotency, why it matters for HTTP APIs, the impact on system design, RESTful method characteristics, and compares four practical implementation strategies—including database primary keys, optimistic locking, Redis token, and downstream sequence numbers—followed by a complete SpringBoot example with code and tests.

BackendJavaRedis
0 likes · 26 min read
Implementing Idempotent APIs in SpringBoot
Java Tech Enthusiast
Java Tech Enthusiast
Jan 6, 2024 · Databases

RedisInsight: Introduction, Installation, and Basic Usage

RedisInsight is a GUI for Redis that monitors memory, connections, hit rate, and uptime, supports clusters, SSL/TLS, and key editing, and can be installed on Linux via a downloadable package with environment variables and launched as a service, or deployed on Kubernetes using a NodePort service and a Deployment of the redislabs/redisinsight image, after which the UI provides metrics, data editing, and memory analysis.

GUIKubernetesRedis
0 likes · 5 min read
RedisInsight: Introduction, Installation, and Basic Usage
ITPUB
ITPUB
Jan 6, 2024 · Databases

Beyond Caching: How Redis Powers Distributed Locks, Queues, and More

This article explores Redis's capabilities beyond simple caching, detailing its use for distributed locks, rate limiting, session storage, complex business scenarios, and various messaging patterns—including List‑based queues, blocking commands, Pub/Sub, and the Stream data structure—while highlighting practical limitations and best‑practice recommendations.

Message QueueRedisStream
0 likes · 7 min read
Beyond Caching: How Redis Powers Distributed Locks, Queues, and More
Selected Java Interview Questions
Selected Java Interview Questions
Jan 4, 2024 · Backend Development

Preventing Duplicate Form Submissions with a Redis‑Based Request Lock in Spring Boot

This article explains why duplicate form submissions occur, the risks they pose, and demonstrates a Spring Boot solution that uses a custom @RequestLock annotation together with Redis SETNX to generate a unique key and block rapid repeated requests, complete with project setup, code examples, and usage instructions.

AOPDuplicate SubmissionJava
0 likes · 12 min read
Preventing Duplicate Form Submissions with a Redis‑Based Request Lock in Spring Boot
Java Tech Enthusiast
Java Tech Enthusiast
Jan 4, 2024 · Databases

Redis Simple Dynamic String (SDS) Implementation Overview

Redis implements its own Simple Dynamic String (SDS) instead of plain C strings because SDS stores length for O(1) queries, pre‑allocates extra space and lazily reuses freed bytes, prevents buffer overflows, handles binary data, and uniformly backs all string keys, values and container elements.

C languageRedisSDS
0 likes · 8 min read
Redis Simple Dynamic String (SDS) Implementation Overview
dbaplus Community
dbaplus Community
Jan 3, 2024 · Backend Development

Designing a Scalable 1B‑User Group Chat System: Architecture & High‑Concurrency

This article walks through the design of a billion‑user group chat platform, covering functional and non‑functional requirements, core components, database schema, face‑to‑face group creation, message flow, storage strategies, and performance‑optimizing techniques such as clustering, message queues, multithreading, and Redis caching.

High ConcurrencyRedisWebSocket
0 likes · 14 min read
Designing a Scalable 1B‑User Group Chat System: Architecture & High‑Concurrency
21CTO
21CTO
Jan 3, 2024 · Databases

How Redis Founder Salvatore Sanfilippo Defied Database Conventions

Salvatore Sanfilippo, a self‑taught hobbyist who launched Redis in 2009, broke traditional database rules by building an in‑memory NoSQL system, sharing his open‑source philosophy, and shaping a thriving community that powers companies like Uber, Slack, and Twitter.

NoSQLRedisSalvatore Sanfilippo
0 likes · 8 min read
How Redis Founder Salvatore Sanfilippo Defied Database Conventions
LouZai
LouZai
Jan 3, 2024 · Databases

Why Redis Chooses Hash Slots Over Consistent Hashing

The article explains how Redis Cluster distributes keys using CRC16‑based hash slots instead of traditional consistent hashing, detailing the slot calculation, node addition and removal processes, client redirection, smart client optimizations, and the design reasons behind the fixed 16,384 slot count.

CRC16ClusterHash Slots
0 likes · 9 min read
Why Redis Chooses Hash Slots Over Consistent Hashing
IT Services Circle
IT Services Circle
Jan 1, 2024 · Backend Development

ByteDance Java Backend Internship Interview Questions and Answers

This article compiles a comprehensive set of ByteDance daily internship interview questions covering Java backend fundamentals, networking protocols, operating system concepts, Linux process management, Redis data structures and persistence, MySQL indexing and query optimization, as well as essential algorithms, providing detailed explanations and code examples for each topic.

BackendJavaMySQL
0 likes · 37 min read
ByteDance Java Backend Internship Interview Questions and Answers
Nullbody Notes
Nullbody Notes
Dec 30, 2023 · Backend Development

Building a Simple In-Memory Redis Clone with Go

This article walks through the third part of an eleven‑article series that implements a functional Redis‑compatible in‑memory database in Go, detailing how the PING, AUTH, SELECT, SET and GET commands are parsed, routed and executed with concrete code examples.

BackendData StructuresGo
0 likes · 12 min read
Building a Simple In-Memory Redis Clone with Go
Architect
Architect
Dec 28, 2023 · Backend Development

How to Implement Distributed Multi‑Rule Rate Limiting with Redis and Lua

This article explains how to design and implement a distributed rate‑limiting solution that supports multiple concurrent rules—such as per‑minute and per‑hour limits—by analyzing the shortcomings of simple string counters, introducing atomic Lua scripts and Zset structures, and providing complete Java annotation and AOP code examples.

AOPJavaLua
0 likes · 13 min read
How to Implement Distributed Multi‑Rule Rate Limiting with Redis and Lua
Selected Java Interview Questions
Selected Java Interview Questions
Dec 28, 2023 · Databases

KeyDB Multithreaded Architecture, Connection Management, Fastlock, and Active‑Replica Mechanism

This article explains how KeyDB, a multithreaded fork of Redis, restructures the original single‑threaded design by introducing worker threads, per‑thread connection handling, a fastlock spin‑lock implementation, and an active‑replica feature that enables writable replicas with conflict‑resolution using timestamped keys.

Active-ReplicaKeyDBLock
0 likes · 9 min read
KeyDB Multithreaded Architecture, Connection Management, Fastlock, and Active‑Replica Mechanism
MaGe Linux Operations
MaGe Linux Operations
Dec 26, 2023 · Databases

Master Redis: Essential Commands for Data Management and Persistence

This guide walks through Redis fundamentals, covering how data persists after restarts, core key operations, database selection, serialization, expiration handling, key movement, random retrieval, renaming, and how to check the number of configured databases, all with practical command examples and visual illustrations.

Key ManagementPersistenceRedis
0 likes · 7 min read
Master Redis: Essential Commands for Data Management and Persistence
DeWu Technology
DeWu Technology
Dec 25, 2023 · Databases

Jedis Connection Pool: Principles, Configuration, and Troubleshooting

Jedis uses Apache Commons’ GenericObjectPool to manage Redis connections, with Spring‑Data‑Redis creating a JedisConnectionFactory that holds a configurable pool where borrowObject and returnObject handle idle queues, eviction and validation settings (testOnBorrow, testWhileIdle, etc.) can be tuned, and JMX metrics aid troubleshooting.

ConnectionPoolGenericObjectPoolJava
0 likes · 10 min read
Jedis Connection Pool: Principles, Configuration, and Troubleshooting
Senior Tony
Senior Tony
Dec 25, 2023 · Databases

Mastering Redis ZSet: Real‑Time Ranking, Set vs List, and Underlying Implementations

This article walks through a real‑world sales‑ranking scenario, explains why a simple SQL solution falls short at scale, and demonstrates how Redis Set and ZSet data structures provide high‑performance, real‑time ranking, including detailed command examples, performance metrics, and an in‑depth look at ZSet's internal listpack and skiplist‑dict implementations.

Data StructuresRedisSorted Set
0 likes · 11 min read
Mastering Redis ZSet: Real‑Time Ranking, Set vs List, and Underlying Implementations
Open Source Tech Hub
Open Source Tech Hub
Dec 22, 2023 · Databases

Mastering RedisSearch: Build Fast Full-Text Search on Redis with PHP

This guide introduces RedisSearch, walks through installation, explains its rich feature set, details core concepts like data models and indexing, shows command‑line operations for creating indexes and querying, and provides a complete PHP example for integrating RedisSearch into applications.

PHPRedisRedisSearch
0 likes · 9 min read
Mastering RedisSearch: Build Fast Full-Text Search on Redis with PHP
IT Services Circle
IT Services Circle
Dec 21, 2023 · Backend Development

Comprehensive Backend Interview Guide: MySQL, Redis, Java Collections, Concurrency, and TCP

This article compiles essential backend interview questions and answers covering MySQL storage engines and indexes, Redis persistence modes, Java collection frameworks and HashMap internals, thread‑safe ConcurrentHashMap implementations, as well as HTTP message structure and TCP reliability mechanisms, providing a thorough review for candidates preparing for backend positions.

JavaMySQLRedis
0 likes · 26 min read
Comprehensive Backend Interview Guide: MySQL, Redis, Java Collections, Concurrency, and TCP
Architecture Digest
Architecture Digest
Dec 21, 2023 · Backend Development

Comparison of Delayed Task Solutions in Java: Quartz, DelayQueue, Time Wheel, Redis and RabbitMQ

The article explains the concept of delayed tasks versus scheduled tasks in payment systems, outlines their key differences, and evaluates five practical implementation approaches—Quartz database polling, JDK DelayQueue, Netty's HashedWheelTimer, Redis ZSET/Keyspace notifications, and RabbitMQ delayed queues—detailing their code examples, advantages and drawbacks.

DelayQueueJavaQuartz
0 likes · 16 min read
Comparison of Delayed Task Solutions in Java: Quartz, DelayQueue, Time Wheel, Redis and RabbitMQ
Selected Java Interview Questions
Selected Java Interview Questions
Dec 18, 2023 · Backend Development

Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations

This article explains the concept of idempotency, presents several strategies to achieve it, and provides a complete Spring Boot implementation using Redis, a custom @AutoIdempotent annotation, token generation and verification, interceptor configuration, and test cases to ensure only the first request succeeds.

BackendInterceptorJava
0 likes · 10 min read
Implementing API Idempotency with Spring Boot, Redis, and Custom Annotations
Architect's Alchemy Furnace
Architect's Alchemy Furnace
Dec 16, 2023 · Backend Development

Reliable MQTT File Transfer with FastDFS and Redis

This article presents a complete solution for reliable, resumable file upload and download over MQTT in distributed IoT platforms, leveraging FastDFS for storage and Redis for caching file metadata and progress, detailing the architecture, data structures, and handling of packet fragmentation, offsets, and cluster coordination.

FastDFSIoTMQTT
0 likes · 9 min read
Reliable MQTT File Transfer with FastDFS and Redis
MaGe Linux Operations
MaGe Linux Operations
Dec 14, 2023 · Backend Development

How Redis Uses 24‑Bit Counters for Efficient LRU Caching

This article explores how counters, especially 24‑bit timestamps, are employed in Redis’s LRU eviction algorithm and other memory‑constrained scenarios, detailing implementation tricks, precision trade‑offs, and practical code examples for efficient cyclic counters and compact storage techniques.

C ProgrammingCountersLRU
0 likes · 12 min read
How Redis Uses 24‑Bit Counters for Efficient LRU Caching
Sanyou's Java Diary
Sanyou's Java Diary
Dec 14, 2023 · Operations

Why Is My Redis Slowing Down? A Complete Diagnosis and Optimization Guide

This article explains how to determine whether Redis is truly experiencing latency spikes, outlines a step‑by‑step benchmarking process, identifies common causes such as high‑complexity commands, big keys, memory limits, fork overhead, AOF settings, CPU binding, swap usage, and provides concrete configuration and code examples to resolve each issue.

AOFBigKeyRedis
0 likes · 39 min read
Why Is My Redis Slowing Down? A Complete Diagnosis and Optimization Guide
macrozheng
macrozheng
Dec 12, 2023 · Backend Development

RediSearch vs Elasticsearch: Cheap Setup, Performance Benchmarks, Java Guide

RediSearch, a low‑memory Redis module, offers comparable full‑text search capabilities to Elasticsearch, with faster indexing and query performance on modest hardware; this article explains its features, compares benchmarks, shows Docker installation, and provides Java/Jedis code examples for creating, querying, and managing indexes.

DockerElasticsearchJava
0 likes · 11 min read
RediSearch vs Elasticsearch: Cheap Setup, Performance Benchmarks, Java Guide
Programmer DD
Programmer DD
Dec 8, 2023 · Backend Development

Mastering Distributed Caching with Redis: Strategies, Types, and Pitfalls

Redis serves as a powerful in‑memory key‑value store for distributed caching, offering various data structures, persistence options, deployment modes, eviction policies, and update strategies, while addressing consistency challenges, cache miss scenarios, and failure modes such as penetration, breakdown, and avalanche.

Cache EvictionRedisSpring Boot
0 likes · 13 min read
Mastering Distributed Caching with Redis: Strategies, Types, and Pitfalls
LouZai
LouZai
Dec 7, 2023 · Backend Development

Designing a Scalable Comment System: Architecture, High Concurrency, and Moderation

This article walks through the full design of a large‑scale comment system, covering functional requirements, database schema, distributed architecture, high‑concurrency handling, caching, security measures like Bloom filters, and optional NLP‑based sentiment analysis to moderate live‑stream comments.

Bloom FilterHigh ConcurrencyMessage Queue
0 likes · 16 min read
Designing a Scalable Comment System: Architecture, High Concurrency, and Moderation
Java High-Performance Architecture
Java High-Performance Architecture
Dec 7, 2023 · Backend Development

Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage

This article introduces the Lock4j distributed lock library for Java, outlines its key features and supported backends, provides step‑by‑step Maven dependency setup, Redis configuration, annotation details, and demonstrates both basic and advanced usage patterns including custom executors and lock‑failure strategies.

JavaLock4jRedis
0 likes · 6 min read
Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage
Architect
Architect
Dec 6, 2023 · Backend Development

Implementing an Order State Machine with Spring Statemachine: Concepts, Persistence, and Testing

This article explains the fundamentals of finite state machines, introduces Spring Statemachine, shows how to define states, events, and transitions for an order lifecycle, demonstrates memory and Redis persistence, provides full Java code for controller, service, listeners, and discusses testing, error handling, and AOP logging.

RedisSpring StateMachine
0 likes · 22 min read
Implementing an Order State Machine with Spring Statemachine: Concepts, Persistence, and Testing
Architecture Digest
Architecture Digest
Dec 5, 2023 · Backend Development

Common Java Backend Code Smells and Bugs: Real‑World Cases and Fixes

The article presents a collection of typical Java backend coding mistakes—ranging from misused ternary operators and poor parameter validation to logging pitfalls, dead code, improper exception handling, AOP self‑invocation issues, Redis resilience problems, and Excel file upload bugs—along with concrete examples, images, and corrected code snippets to help developers avoid and fix them.

BackendBugFixesCodeQuality
0 likes · 12 min read
Common Java Backend Code Smells and Bugs: Real‑World Cases and Fixes
Efficient Ops
Efficient Ops
Dec 3, 2023 · Backend Development

Why Our Redis Cluster Pipeline Deadlocked: Thread Locks Explained

This article walks through a production incident where a Redis Cluster pipeline caused Dubbo threads to block and eventually deadlock, detailing the root‑cause analysis, code inspection, and verification steps using jstack, jmap, and MAT to confirm the deadlock and propose fixes.

JavaJedisRedis
0 likes · 13 min read
Why Our Redis Cluster Pipeline Deadlocked: Thread Locks Explained
LouZai
LouZai
Dec 1, 2023 · Backend Development

Understanding All Major Distributed Lock Implementations in One Guide

This article explains what distributed locks are, outlines their key properties, classifies implementation approaches, and provides detailed walkthroughs of MySQL, Redis, Etcd, and ZooKeeper based locks—including code examples, trade‑offs, and best‑practice recommendations.

GoMySQLRedis
0 likes · 21 min read
Understanding All Major Distributed Lock Implementations in One Guide
Java Architect Essentials
Java Architect Essentials
Nov 29, 2023 · Backend Development

Performance Tuning of a Java Backend Service: From 50/s to 500/s Through Profiling, Thread‑Pool, and SQL Optimization

The article details a step‑by‑step investigation and optimization of a Java backend service that initially delivered only 50 requests per second under load, covering profiling, slow‑SQL fixes, thread‑pool tuning, JVM memory adjustments, and Spring bean creation overhead to approach the target 500 req/s.

JavaProfilingRedis
0 likes · 14 min read
Performance Tuning of a Java Backend Service: From 50/s to 500/s Through Profiling, Thread‑Pool, and SQL Optimization
Efficient Ops
Efficient Ops
Nov 28, 2023 · Databases

Mastering Redis: Core Features, Caching Strategies, and High Availability

This article provides a comprehensive overview of Redis, covering its architecture, key features, data types, caching use cases, common pitfalls such as consistency, avalanche, penetration and breakdown, as well as performance reasons, eviction policies, persistence options, replication, and Sentinel high‑availability mechanisms.

CachingRedishigh availability
0 likes · 13 min read
Mastering Redis: Core Features, Caching Strategies, and High Availability
Architect
Architect
Nov 28, 2023 · Databases

How to Import 1 Billion Records into MySQL Efficiently: Architecture & Performance Guide

This article walks through the full engineering process of importing a billion 1 KB log records into MySQL, covering data size calculations, B‑tree index limits, batch‑insert strategies, storage‑engine trade‑offs, fast file‑reading techniques, task coordination with Redis and Redisson, and distributed‑lock design using Zookeeper.

Batch InsertDistributed TasksMySQL
0 likes · 20 min read
How to Import 1 Billion Records into MySQL Efficiently: Architecture & Performance Guide
Top Architect
Top Architect
Nov 28, 2023 · Backend Development

Implementing Sign‑In and Statistics with Redis BitMap in Spring Boot

This article explains how to use Redis BitMap to build an efficient sign‑in feature and monthly statistics in a Spring Boot microservice, covering basic BitMap commands, key design, code implementation, testing procedures, and a cache‑penetration mitigation strategy.

BitmapCache PenetrationRedis
0 likes · 12 min read
Implementing Sign‑In and Statistics with Redis BitMap in Spring Boot
Architecture Digest
Architecture Digest
Nov 27, 2023 · Databases

Fast Import of 1 Billion Records into MySQL: Design, Performance, and Reliability Considerations

To import one billion 1 KB log records into MySQL efficiently, the article examines data size constraints, B‑tree index limits, batch insertion strategies, storage engine choices, file‑reading techniques, task coordination with Redis, Redisson semaphores, and distributed lock handling to ensure ordered, reliable, high‑throughput loading.

Batch InsertMySQLRedis
0 likes · 18 min read
Fast Import of 1 Billion Records into MySQL: Design, Performance, and Reliability Considerations
Selected Java Interview Questions
Selected Java Interview Questions
Nov 26, 2023 · Databases

Understanding and Solving Hot Key Issues in Redis

Hot keys in Redis—high‑frequency accessed keys—can overload the cache and downstream databases, causing crashes; this article explains what hot keys are, why they arise, their risks, how to detect them, and practical mitigation strategies such as scaling clusters, using secondary caches, monitoring commands, and traffic analysis.

Hot KeyRediscache
0 likes · 6 min read
Understanding and Solving Hot Key Issues in Redis
Architect's Guide
Architect's Guide
Nov 24, 2023 · Databases

Implementing Conditional Query and Pagination with Redis

This article explains how to use Redis' Sorted Set and Hash structures to achieve efficient pagination, multi‑condition fuzzy queries, and their combination, while also discussing performance optimizations such as expiration handling and data synchronization strategies.

Fuzzy QueryRedisZset
0 likes · 10 min read
Implementing Conditional Query and Pagination with Redis
Architect
Architect
Nov 23, 2023 · Databases

Inside Our High‑Performance Self‑Built Redis System: Architecture, Features & Ops

This article details the design and implementation of a self‑managed Redis KV cache system spanning tens of terabytes, covering its Proxy‑based architecture, ConfigServer high‑availability via Raft, Redis‑Proxy slot routing, async‑fork optimizations, data migration strategies, and a comprehensive automation platform for deployment, scaling, monitoring, and stability governance.

Redisautomationdistributed systems
0 likes · 24 min read
Inside Our High‑Performance Self‑Built Redis System: Architecture, Features & Ops
Top Architect
Top Architect
Nov 22, 2023 · Information Security

Designing Microservice Permission Control with Shiro and Redis Session Sharing

This article explains how to design microservice permission control using Apache Shiro, sharing session data via Redis, outlines failed approaches, presents a workable solution with custom cache and session managers, and provides complete code examples for realms, configuration, and login flow.

JavaRedisSpringBoot
0 likes · 24 min read
Designing Microservice Permission Control with Shiro and Redis Session Sharing
Didi Tech
Didi Tech
Nov 21, 2023 · Databases

Investigation and Root Cause Analysis of a Redis Memory Leak in Production

An in‑depth, timeline‑driven investigation of a production Redis memory leak revealed that the custom 3.2.8 build’s getKeysInSlot function failed to free a temporary key‑array after traversing the radix‑tree, causing hundreds of megabytes of leaked SDS strings, which was fixed by adding a single free call and highlighted the need for functional code reviews and early leak detection.

LinuxMemory LeakRedis
0 likes · 10 min read
Investigation and Root Cause Analysis of a Redis Memory Leak in Production
Java High-Performance Architecture
Java High-Performance Architecture
Nov 21, 2023 · Information Security

Master Spring Security: Quick Start, JWT Authentication, and RBAC Authorization

This comprehensive guide walks you through setting up Spring Security in a Spring Boot project, configuring password encoding, implementing JWT-based authentication, building custom login and logout endpoints, managing user details with MyBatis Plus, and applying role‑based access control with custom permission handlers, all illustrated with complete code examples.

AuthenticationJWTJava
0 likes · 40 min read
Master Spring Security: Quick Start, JWT Authentication, and RBAC Authorization
Efficient Ops
Efficient Ops
Nov 20, 2023 · Databases

Why Is My Redis Slowing Down? 10 Common Causes and How to Fix Them

This article explains why Redis may become slower, covering benchmark testing, high‑complexity commands, big keys, concentrated expirations, memory limits, fork overhead, huge pages, AOF settings, CPU binding, swap usage, memory fragmentation, and lazy‑free mechanisms, and provides practical optimization steps.

OptimizationRedisTroubleshooting
0 likes · 34 min read
Why Is My Redis Slowing Down? 10 Common Causes and How to Fix Them
IT Services Circle
IT Services Circle
Nov 20, 2023 · Databases

Redis Beyond Caching: Distributed Locks, Rate Limiting, Message Queues and More

This article explains how Redis can be used for distributed locks, rate limiting, various message‑queue patterns, delayed queues, distributed sessions and complex business scenarios, while also discussing the limitations of using Redis as a message queue and recommending dedicated solutions like RocketMQ or Kafka.

RedisStreamdistributed lock
0 likes · 7 min read
Redis Beyond Caching: Distributed Locks, Rate Limiting, Message Queues and More
Practical DevOps Architecture
Practical DevOps Architecture
Nov 20, 2023 · Backend Development

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

This guide explains how to build a dynamic IP blacklist using Nginx, Lua, and Redis, covering installation of LuaJIT, compiling Nginx with required modules, configuring Redis, writing Lua access‑limit scripts, and verifying that frequent requests are automatically blocked for a set period.

BackendIP blacklistLua
0 likes · 9 min read
Implementing a Dynamic IP Blacklist with Nginx, Lua, and Redis
IT Architects Alliance
IT Architects Alliance
Nov 17, 2023 · Databases

How to Implement Conditional Queries and Pagination in Redis

This article explains how to achieve conditional fuzzy queries and pagination in Redis by leveraging Sorted Sets and Hashes, detailing command usage, data modeling, combination strategies, and performance optimizations such as expiration and real‑time updates.

Fuzzy QueryRedisSorted Set
0 likes · 8 min read
How to Implement Conditional Queries and Pagination in Redis
php Courses
php Courses
Nov 17, 2023 · Backend Development

Cross-Platform PHP Caching Techniques with File and Redis Implementations

This article explains how to implement cross‑platform caching in PHP using both file‑based storage and Redis, providing complete code examples and detailing the functions involved to ensure compatibility, performance, and proper cache expiration handling.

BackendCachingFileCache
0 likes · 5 min read
Cross-Platform PHP Caching Techniques with File and Redis Implementations
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 15, 2023 · Databases

Understanding Redis Hotkeys: Issues, Detection Methods, and Mitigation Strategies

This article explains what Redis hotkeys are, the performance and replication problems they cause, various techniques for detecting them—including client statistics, MONITOR, the HOTKEYS command, and TCP packet capture—and practical mitigation approaches such as sharding, multi‑level caching, and monitoring optimization.

HotKeyMonitoringRedis
0 likes · 9 min read
Understanding Redis Hotkeys: Issues, Detection Methods, and Mitigation Strategies
Didi Tech
Didi Tech
Nov 14, 2023 · Databases

Didi's Multi-Active Redis Architecture: Design, Challenges, and Solutions

To achieve disaster-recovery and cross-data-center resilience, Didi progressed from a simple proxy double-write scheme to a sophisticated MQ-free multi-active Redis design that uses a dedicated syncer, shard-based loop prevention, op-id replay protection, conflict detection, and incremental AOF durability, ensuring low latency, no data loss, and consistent availability.

DidiMulti-ActiveRedis
0 likes · 11 min read
Didi's Multi-Active Redis Architecture: Design, Challenges, and Solutions
Test Development Learning Exchange
Test Development Learning Exchange
Nov 13, 2023 · Fundamentals

Master Core Python, Database, Linux, and Networking Concepts in One Guide

This comprehensive guide covers essential programming fundamentals—including Python memory management, metaclasses, decorators, multithreading, data structures, algorithmic techniques, database concepts such as ACID, indexing, and transaction isolation, Redis operations, Linux memory handling, networking protocols, Docker/Kubernetes commands, and core testing methodologies—providing clear explanations and practical code examples.

AlgorithmsLinuxNetworking
0 likes · 38 min read
Master Core Python, Database, Linux, and Networking Concepts in One Guide
php Courses
php Courses
Nov 8, 2023 · Backend Development

Implementing Caching Strategies in PHP to Improve User Experience

This article explains various PHP caching techniques—including file‑system, memory (Memcache and Redis), and framework (Laravel) caches—providing code examples and configuration steps to reduce database load, speed up page rendering, and enhance overall user experience.

CachingLaravelPHP
0 likes · 5 min read
Implementing Caching Strategies in PHP to Improve User Experience
Selected Java Interview Questions
Selected Java Interview Questions
Nov 7, 2023 · Backend Development

Implementing Distributed Locks with Redis: Principles, Challenges, and Optimizations

This article explains why traditional local locks fail in distributed systems, surveys common distributed‑lock approaches, and provides a step‑by‑step guide to building a robust Redis‑based lock in Java—including expiration handling, UUID safety, Lua‑script atomicity, re‑entrancy, automatic renewal, and the RedLock algorithm—while comparing its performance against plain local locks.

JavaLuaRedis
0 likes · 17 min read
Implementing Distributed Locks with Redis: Principles, Challenges, and Optimizations
php Courses
php Courses
Nov 7, 2023 · Backend Development

Advantages and Disadvantages of Caching in PHP Development with Code Examples

This article examines the benefits and drawbacks of implementing caching in PHP backend development, illustrating how caching can boost page load speed, reduce database load, and improve performance, while also discussing cache expiration, data consistency, and memory usage, accompanied by practical code examples.

CachingPHPRedis
0 likes · 6 min read
Advantages and Disadvantages of Caching in PHP Development with Code Examples
Architecture Digest
Architecture Digest
Nov 6, 2023 · Backend Development

Using Lua Scripts in Spring Boot with Redis: A Comprehensive Guide

This article explains how to integrate Lua scripts into Spring Boot projects for Redis, covering Lua fundamentals, performance benefits, practical use cases, step‑by‑step implementation with code examples, error handling, security considerations, and best‑practice recommendations for backend developers.

LuaRedisSpring Boot
0 likes · 19 min read
Using Lua Scripts in Spring Boot with Redis: A Comprehensive Guide
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 2, 2023 · Databases

Strategies for Efficiently Importing One Billion Records into MySQL

This article analyzes the constraints of loading one billion 1 KB log records from distributed storage into MySQL, evaluates single‑table limits, proposes batch‑insert, sharding, storage‑engine, file‑reading, and distributed‑task coordination techniques to achieve high‑speed, ordered, and reliable data ingestion.

Batch InsertJavaMySQL
0 likes · 18 min read
Strategies for Efficiently Importing One Billion Records into MySQL
Architect
Architect
Nov 1, 2023 · Backend Development

Mastering Distributed Locks with Redis: From Basics to Advanced Solutions

This article examines why local locks fail in distributed micro‑service environments, introduces Redis‑based distributed locking, walks through five incremental lock designs—from a simple SETNX implementation to a Lua‑script atomic solution—highlighting each scheme's trade‑offs, code examples, and practical pitfalls.

JavaLuaRedis
0 likes · 18 min read
Mastering Distributed Locks with Redis: From Basics to Advanced Solutions
JD Cloud Developers
JD Cloud Developers
Nov 1, 2023 · Databases

How Do Big Keys Slow Down Redis and How to Fix Them?

This article explains why oversized Redis keys (BigKeys) cause data skew, network blockage, slow queries, and high CPU load, shows how to detect them with redis-cli and other tools, and provides practical strategies—including lazy deletion, key splitting, and preventive design—to mitigate their impact on production systems.

BigKeyKey ManagementLazy Free
0 likes · 22 min read
How Do Big Keys Slow Down Redis and How to Fix Them?