Tagged articles

Redis

3563 articles · Page 12 of 36
dbaplus Community
dbaplus Community
Mar 27, 2024 · Databases

How Redis Handles Full Cache: Memory Eviction Policies Explained

When Redis memory reaches its configured maxmemory limit, it triggers a set of eviction policies—such as noeviction, allkeys‑lru, volatile‑lfu, and others—to decide which keys to discard, and this article explains how to view, configure, and understand each strategy.

LFULRURedis
0 likes · 9 min read
How Redis Handles Full Cache: Memory Eviction Policies Explained
Ops Development & AI Practice
Ops Development & AI Practice
Mar 27, 2024 · Backend Development

How to Choose the Right Redis PoolSize in Go for Optimal Performance

This article explains why correctly configuring the Redis client PoolSize in Go is crucial for performance and stability, outlines key factors such as concurrency, latency, and resource limits, and provides practical strategies, benchmarking methods, and sample code to help developers determine the optimal pool size.

GoRedisconnection pool
0 likes · 5 min read
How to Choose the Right Redis PoolSize in Go for Optimal Performance
ITPUB
ITPUB
Mar 27, 2024 · Backend Development

How Instagram Scaled to 14 Million Users with Just Three Engineers

This article details how Instagram grew from zero to 14 million users in just over a year using three engineers by applying three core principles and a reliable AWS‑based tech stack covering frontend, load balancing, backend, PostgreSQL sharding, S3 storage, Redis caching, asynchronous task queues, and comprehensive monitoring.

AWSBackendInstagram
0 likes · 9 min read
How Instagram Scaled to 14 Million Users with Just Three Engineers
21CTO
21CTO
Mar 25, 2024 · Fundamentals

Why Redis Is Switching Licenses and What It Means for Cloud Providers

Redis announced a shift from the permissive BSD license to a dual‑license model (RSALv2 and SSPLv1), restricting free use by cloud providers, sparking industry debate and prompting developers to consider alternative implementations and the broader impact on open‑source ecosystems.

Cloud ProvidersLicensingRedis
0 likes · 6 min read
Why Redis Is Switching Licenses and What It Means for Cloud Providers
Java Tech Enthusiast
Java Tech Enthusiast
Mar 24, 2024 · Databases

Redis Announces Shift to Source‑Available Dual Licensing

Redis announced it will replace its BSD‑3‑Clause license with a source‑available dual licensing model—SSPLv1 and RSALv2—starting with Redis 7.4, keeping the community edition free for developers while requiring cloud providers to secure commercial agreements, yet leaving existing enterprise users and client‑library developers under unchanged, permissive terms.

LicenseRSALRedis
0 likes · 3 min read
Redis Announces Shift to Source‑Available Dual Licensing
Java Backend Technology
Java Backend Technology
Mar 24, 2024 · Databases

Beyond Caching: How Redis Powers Real‑World Storage and Services

Redis is widely known as a high‑performance cache, but its rich data structures, persistence options, and distributed features enable it to serve as a primary storage engine for many internet services, from user profiles and leaderboards to rate limiting, messaging, and geo‑location, while presenting scalability and reliability challenges.

CachingData StructuresIn-Memory Database
0 likes · 19 min read
Beyond Caching: How Redis Powers Real‑World Storage and Services
IT Services Circle
IT Services Circle
Mar 23, 2024 · Backend Development

Java Backend Interview Guide: Redis, Thread Pools, Spring, Concurrency, and Core Java Concepts

This article compiles a comprehensive Java backend interview guide covering Redis fundamentals, thread creation methods, thread‑pool pitfalls, Spring ecosystem relationships, IoC/AOP principles, shallow vs deep copying, collection cloning, differences between interfaces and abstract classes, and string handling classes, providing concise explanations and code examples for each topic.

BackendJavaRedis
0 likes · 19 min read
Java Backend Interview Guide: Redis, Thread Pools, Spring, Concurrency, and Core Java Concepts
Zhuanzhuan Tech
Zhuanzhuan Tech
Mar 22, 2024 · Backend Development

Comprehensive Guide to Bloom Filters: Principles, Implementations, and Business Applications

This article introduces Bloom filters, explains their probabilistic principles, advantages and drawbacks, details how to add and query elements, derives false‑positive formulas, provides Guava, Redisson, Redis‑module, and custom bitmap implementations with code samples, and showcases real‑world business scenarios and performance benefits.

Bloom FilterGuavaJava
0 likes · 28 min read
Comprehensive Guide to Bloom Filters: Principles, Implementations, and Business Applications
Programmer DD
Programmer DD
Mar 22, 2024 · Databases

Redis Shifts to Source‑Available Licenses: What It Means for Developers

Redis announced that starting with version 7.4 it will abandon the BSD 3‑Clause license in favor of a dual SSPLv1/RSALv2 model, making the source code source‑available while keeping the community edition free, and clarifying the impact on cloud providers, partners, and end‑users.

LicensingRSALRedis
0 likes · 4 min read
Redis Shifts to Source‑Available Licenses: What It Means for Developers
dbaplus Community
dbaplus Community
Mar 21, 2024 · Backend Development

Inside DeWu’s Self‑Built Redis: Architecture, Automation & High‑Availability

This article details DeWu's self‑built high‑performance distributed Redis cache system, covering its Proxy‑based architecture, core components like ConfigServer, Redis‑Proxy and Redis‑Server, the automated operations platform for deployment and scaling, as well as monitoring, alerting, stability measures and future roadmap.

Redisdistributed systems
0 likes · 22 min read
Inside DeWu’s Self‑Built Redis: Architecture, Automation & High‑Availability
Sohu Tech Products
Sohu Tech Products
Mar 20, 2024 · Databases

Master Redis: 8 Essential Data Types and Their Real‑World Uses

This article provides a comprehensive overview of Redis' eight common data structures—including String, List, Hash, Set, Sorted Set, Bitmap, HyperLogLog, and Geospatial—detailing their internal implementations, core commands, practical code examples, and typical application scenarios for developers.

Data TypesNoSQLRedis
0 likes · 25 min read
Master Redis: 8 Essential Data Types and Their Real‑World Uses
Top Architect
Top Architect
Mar 20, 2024 · Backend Development

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

This article explains how to integrate Lua scripts into Spring Boot applications using Redis, covering Lua basics, advantages of Lua in Redis, practical use cases, step‑by‑step implementation with code examples, performance optimization, error handling, security considerations, and best practices for reliable backend development.

LuaRedisSpring Boot
0 likes · 20 min read
Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide
Architect
Architect
Mar 16, 2024 · Operations

How Unified Alert Convergence Can Slash Monitoring Noise and Boost MTTA/MTTR

This article analyzes the shortcomings of fragmented monitoring systems, defines key metrics such as MTTA and MTTR, proposes a unified alert convergence architecture using Redis delayed queues, and details design, implementation, and future AI‑enhanced improvements to reduce alert fatigue and accelerate incident response.

Alert ConvergenceMTTAMTTR
0 likes · 22 min read
How Unified Alert Convergence Can Slash Monitoring Noise and Boost MTTA/MTTR
Architect
Architect
Mar 15, 2024 · Databases

How to Diagnose and Optimize Redis Memory Usage: Real‑World Cases

This article dissects Redis's memory architecture, explains each memory component, walks through object encoding rules, buffer handling, fragmentation, and child‑process memory, then presents two production incidents with step‑by‑step analysis and concrete optimization actions to prevent future memory alarms.

Rediscase studydatabase
0 likes · 27 min read
How to Diagnose and Optimize Redis Memory Usage: Real‑World Cases
Selected Java Interview Questions
Selected Java Interview Questions
Mar 15, 2024 · Backend Development

Ensuring Data Consistency Between MySQL and Redis in High‑Concurrency Scenarios

The article explains why data inconsistency occurs between MySQL and Redis under high concurrency, analyzes cache‑delete timing issues, and presents two solutions—delayed double‑delete and asynchronous cache updates via MySQL binlog—detailing implementation steps, advantages, drawbacks, and practical considerations.

Async UpdateBinlogHigh Concurrency
0 likes · 8 min read
Ensuring Data Consistency Between MySQL and Redis in High‑Concurrency Scenarios
LouZai
LouZai
Mar 14, 2024 · Backend Development

N Practical Strategies to Auto‑Cancel Timed‑Out Orders

This article analyzes multiple engineering solutions for automatically cancelling orders after the payment timeout, covering single‑machine and cluster scheduled‑task designs (Quartz, ElasticJob, XXL‑JOB), delayed‑message techniques (RocketMQ, custom delay service, Redis), and essential concurrency and monitoring best practices.

ElasticJobQuartzRedis
0 likes · 13 min read
N Practical Strategies to Auto‑Cancel Timed‑Out Orders
Linux Cloud Computing Practice
Linux Cloud Computing Practice
Mar 13, 2024 · Databases

Unlocking Redis: Architecture, High Availability, and Persistence Explained

This article provides a comprehensive overview of Redis, covering its core concepts, deployment architectures—including single instance, high‑availability, Sentinel, and cluster setups—its replication mechanisms, gossip protocol, and the various persistence options such as RDB, AOF, and fork‑based snapshots.

ClusterIn-Memory DatabasePersistence
0 likes · 17 min read
Unlocking Redis: Architecture, High Availability, and Persistence Explained
macrozheng
macrozheng
Mar 12, 2024 · Operations

Why HertzBeat Could Be Your Next Agentless Monitoring Solution

This article introduces HertzBeat, an open‑source real‑time monitoring and alerting system that offers powerful template‑based monitoring without agents, explains its Docker‑quick start, demonstrates how to monitor Redis and SpringBoot services, and walks through email alarm configuration.

OperationsRedisagentless
0 likes · 7 min read
Why HertzBeat Could Be Your Next Agentless Monitoring Solution
Java Tech Enthusiast
Java Tech Enthusiast
Mar 11, 2024 · Backend Development

How to Prevent Cache Penetration, Breakdown, and Avalanche in Redis

The article explains the concepts of cache penetration, cache breakdown, and cache avalanche, illustrates why they cause massive database load, and provides practical mitigation techniques such as parameter validation, storing null placeholders, Bloom filters, rate limiting, hot‑key pre‑warming, distributed locking, and cache pre‑warming strategies, with Java code examples.

Bloom FilterCache AvalancheCache Breakdown
0 likes · 10 min read
How to Prevent Cache Penetration, Breakdown, and Avalanche in Redis
Architect
Architect
Mar 10, 2024 · Backend Development

Build a Redis Distributed Lock in Go from Scratch

This article walks through the problem of implementing a reliable Redis distributed lock in Go, explains the pitfalls of naive SetNx usage, introduces timeout handling and GetSet replacement, provides step‑by‑step Go code, and demonstrates its correctness with a multithreaded test.

GoRedisbackend development
0 likes · 11 min read
Build a Redis Distributed Lock in Go from Scratch
Java Backend Technology
Java Backend Technology
Mar 9, 2024 · Backend Development

From Solo Project to Official Redis Client: The ioredis Journey

The ioredis author @Luin announced the library's acquisition by Redis Inc., recounting its nine‑year evolution from a personal side project created to address missing Promise support, aesthetic command syntax, and lacking Cluster/Sentinel features into the most popular Node.js Redis client today.

Node.jsOpenSourceRedis
0 likes · 3 min read
From Solo Project to Official Redis Client: The ioredis Journey
Java Architect Essentials
Java Architect Essentials
Mar 7, 2024 · Backend Development

Various Implementation Strategies for Delayed Tasks in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ

This article explains the concept of delayed tasks, distinguishes them from scheduled tasks, and presents six practical Java implementations—including Quartz database polling, JDK DelayQueue, Netty's HashedWheelTimer, Redis sorted sets, Redis key‑space notifications, and RabbitMQ delayed queues—along with their advantages and drawbacks.

JavaQuartzRabbitMQ
0 likes · 14 min read
Various Implementation Strategies for Delayed Tasks in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ
Ma Wei Says
Ma Wei Says
Mar 5, 2024 · Backend Development

How to Prevent Cache Penetration Attacks with Bloom Filters and Null Caching

The article explains what cache penetration is, why it can crash databases under malicious traffic, and presents practical mitigation techniques such as Bloom filters, null-value caching, data pre‑warming, and request validation to protect Redis‑backed systems.

Backend PerformanceBloom FilterCache Penetration
0 likes · 6 min read
How to Prevent Cache Penetration Attacks with Bloom Filters and Null Caching
Linux Cloud Computing Practice
Linux Cloud Computing Practice
Mar 4, 2024 · Operations

Building a High‑Performance, Highly Available Membership System with ES, Redis & MySQL

To ensure the massive, multi‑platform membership service remains fast and reliable, this article details a multi‑center architecture using Elasticsearch for unified member data, Redis caching, and MySQL partitioning, along with traffic isolation, fault‑tolerant syncing, and fine‑grained flow‑control and degradation strategies.

MySQLRedisfault tolerance
0 likes · 23 min read
Building a High‑Performance, Highly Available Membership System with ES, Redis & MySQL
21CTO
21CTO
Mar 4, 2024 · Backend Development

How ioredis Became the Leading Node.js Redis Client and Got Acquired

ioredis, a high‑performance Node.js Redis client created by luin, uses a single‑socket pipeline for efficient command batching, has attracted enterprise users like Alibaba, and after years of growth was officially acquired by Redis, with its source now hosted on GitHub.

BackendClientNode.js
0 likes · 4 min read
How ioredis Became the Leading Node.js Redis Client and Got Acquired
Architect
Architect
Mar 1, 2024 · Backend Development

Distributed ID Generation: Requirements, Common Solutions, and Implementation Details

This article explains what a distributed ID is, outlines its essential requirements such as global uniqueness, high performance, high availability, and ease of use, and then reviews common generation strategies—including database auto‑increment, segment mode, NoSQL approaches, UUID, Snowflake, and several open‑source frameworks—providing code examples and practical trade‑offs.

RedisSnowflakeUID generator
0 likes · 23 min read
Distributed ID Generation: Requirements, Common Solutions, and Implementation Details
Java Architect Essentials
Java Architect Essentials
Feb 28, 2024 · Backend Development

Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Custom Annotations in Kotlin

This article explains why a custom business risk‑control (rate‑limiting) component is needed for AI‑intensive services, compares open‑source solutions, and provides a complete backend implementation using Redis+Lua scripts, Kotlin code, Spring AOP annotations, and real‑time adjustable rules.

BackendKotlinLua
0 likes · 10 min read
Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Custom Annotations in Kotlin
Java High-Performance Architecture
Java High-Performance Architecture
Feb 27, 2024 · Backend Development

Boost Spring Boot Performance with Redis Lua Scripts: A Complete Guide

This article explains how to integrate Lua scripts into Spring Boot applications using Redis, covering Lua fundamentals, advantages of Lua in Redis, practical use cases, step‑by‑step implementation, performance optimization techniques, error handling, security considerations, and best practices for reliable backend development.

LuaRedisSpring Boot
0 likes · 20 min read
Boost Spring Boot Performance with Redis Lua Scripts: A Complete Guide
Architect's Guide
Architect's Guide
Feb 27, 2024 · Backend Development

Implementation Details of a Simple Seckill (Flash Sale) System Using SpringBoot

This article presents a step‑by‑step technical walkthrough of a SpringBoot‑based Seckill project, covering password MD5 hashing, distributed session management, unified exception handling, page and object caching, static page generation, memory flag with Redis pre‑decrement and RabbitMQ async processing, oversell prevention, and API rate limiting, followed by a visual demonstration of the system’s UI and source code download.

RabbitMQRedisSpringBoot
0 likes · 9 min read
Implementation Details of a Simple Seckill (Flash Sale) System Using SpringBoot
Senior Tony
Senior Tony
Feb 22, 2024 · Backend Development

Eight Distributed ID Generation Strategies: Pros, Cons, and Implementation Guide

This article reviews eight popular distributed ID generation methods—including UUID, database auto‑increment, Redis INCR, Snowflake, database segment, Meituan Leaf, Didi Tinyid, and Baidu UidGenerator—detailing their principles, code examples, advantages, disadvantages, and practical considerations for choosing the right solution.

LeafRedisSnowflake
0 likes · 11 min read
Eight Distributed ID Generation Strategies: Pros, Cons, and Implementation Guide
Top Architect
Top Architect
Feb 21, 2024 · Backend Development

Cache Consistency Strategies Between MySQL and Redis

This article explains the classic cache consistency problem between MySQL and Redis, analyzes why inconsistencies occur, and details four common design patterns—delete‑then‑update, update‑then‑invalidate (Cache‑Aside), Read/Write‑Through, and Write‑Behind—along with their advantages, drawbacks, and typical execution flows.

Database CachingDesign PatternsMySQL
0 likes · 9 min read
Cache Consistency Strategies Between MySQL and Redis
MaGe Linux Operations
MaGe Linux Operations
Feb 20, 2024 · Big Data

Redis Streams vs Kafka: Which Is Better for Real‑Time Event Processing?

This article compares Redis Streams and Kafka, examining their architectures, ordering guarantees, consumer group models, scalability, and trade‑offs, and shows how Redis can emulate Kafka‑like semantics using the Runnel library, while highlighting memory‑speed benefits versus Kafka’s durable, unlimited log storage.

Event ProcessingKafkaRedis
0 likes · 9 min read
Redis Streams vs Kafka: Which Is Better for Real‑Time Event Processing?
macrozheng
macrozheng
Feb 20, 2024 · Databases

10 Real-World Redis Use Cases Every Backend Engineer Should Know

Discover ten practical Redis scenarios—from counting page visits and caching category trees to implementing distributed locks, leaderboards, rate limiting, bitmap analytics, message queues, and global ID generation—each illustrated with concise code snippets and best‑practice tips for robust backend development.

BitmapCachingLeaderboard
0 likes · 11 min read
10 Real-World Redis Use Cases Every Backend Engineer Should Know
Architect
Architect
Feb 19, 2024 · Information Security

Mastering Single Sign-On: From Session Basics to CAS Implementation

This article walks through the fundamentals of HTTP session handling, the challenges of session sharing in clustered environments, and presents a step‑by‑step design of a Single Sign‑On solution using CAS, including concrete code examples, Redis‑based session storage, and a comparison with OAuth2.

AuthenticationCASJava
0 likes · 17 min read
Mastering Single Sign-On: From Session Basics to CAS Implementation
Java Architect Essentials
Java Architect Essentials
Feb 18, 2024 · Databases

Common Redis Use Cases and Implementation Patterns

This article presents sixteen practical Redis use cases—including caching, distributed locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow relationships, and leaderboards—each explained with data types, commands, and code examples.

DistributedLockLeaderboardRateLimiting
0 likes · 8 min read
Common Redis Use Cases and Implementation Patterns
Architect
Architect
Feb 18, 2024 · Backend Development

How Redisson Implements Distributed Locks: Deep Dive into Mechanisms and Pitfalls

This article explains why distributed locks are needed, outlines Redisson's lock properties, walks through its Lua‑based acquisition, renewal, and release processes, examines master‑slave pitfalls, compares RedLock with Zookeeper, and provides practical code examples for Java developers.

JavaLock MechanismRedis
0 likes · 14 min read
How Redisson Implements Distributed Locks: Deep Dive into Mechanisms and Pitfalls
Java Captain
Java Captain
Feb 16, 2024 · Backend Development

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

This article explains how to integrate Lua scripts into Spring Boot applications using Redis, covering Lua fundamentals, performance benefits, practical use cases, step‑by‑step implementation, error handling, security considerations, and best practices for optimizing backend services.

LuaRedisSpring Boot
0 likes · 19 min read
Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide
MaGe Linux Operations
MaGe Linux Operations
Feb 14, 2024 · Databases

Unlocking Redis: Core Concepts, Architecture, and Persistence Explained

This article introduces Redis as an in‑memory key‑value data‑structure server, explains its primary use cases, walks through deployment options such as single instances, high‑availability, Sentinel and Cluster, and details its persistence mechanisms including RDB, AOF and forking.

CachingClusterIn-Memory Database
0 likes · 16 min read
Unlocking Redis: Core Concepts, Architecture, and Persistence Explained
php Courses
php Courses
Feb 5, 2024 · Backend Development

Backend Development Fundamentals: Processes, Socket Programming, Nginx FASTCGI, Byte Order, and Redis Basics

This course offers an in‑depth exploration of process concepts, TCP/IP and Socket communication, Nginx‑FASTCGI integration, host‑to‑network byte order conversion, and Redis fundamentals, targeting backend developers, system administrators, and network engineers seeking comprehensive backend skill enhancement.

NginxRedisSocket
0 likes · 3 min read
Backend Development Fundamentals: Processes, Socket Programming, Nginx FASTCGI, Byte Order, and Redis Basics
Java Captain
Java Captain
Feb 4, 2024 · Backend Development

Understanding and Implementing Idempotency in Backend Services with Java and Redis

This article explains the concept of idempotency, identifies which API requests are naturally idempotent, discusses why idempotency is essential for retries, asynchronous callbacks, and message queues, and provides a step‑by‑step Java Spring implementation using custom annotations, AOP, and Redis for token management.

AOPBackendJava
0 likes · 9 min read
Understanding and Implementing Idempotency in Backend Services with Java and Redis
MaGe Linux Operations
MaGe Linux Operations
Feb 3, 2024 · Operations

How to Build a 100% High‑Availability Membership System with ES, Redis, and MySQL

This article details the design and implementation of a highly available membership system that handles billions of users and peak traffic of over 20,000 TPS, covering Elasticsearch dual‑center master‑slave clusters, traffic‑isolated three‑cluster architecture, Redis caching with distributed locks, and dual‑center MySQL partitioning.

ElasticsearchMySQLRedis
0 likes · 20 min read
How to Build a 100% High‑Availability Membership System with ES, Redis, and MySQL
IT Niuke
IT Niuke
Feb 3, 2024 · Backend Development

A Powerful Distributed Lock Framework: Introducing Lock4j

This guide introduces Lock4j, a versatile distributed‑lock component for Java that works with Spring AOP and supports RedisTemplate, Redisson, and Zookeeper, and walks through its features, configuration, annotation attributes, basic usage, and advanced customization options.

JavaLock4jRedis
0 likes · 7 min read
A Powerful Distributed Lock Framework: Introducing Lock4j
Java Tech Enthusiast
Java Tech Enthusiast
Feb 1, 2024 · Fundamentals

Understanding Bloom Filters: Theory, Implementation, and Applications

Bloom filters are space‑efficient probabilistic structures that test set membership using multiple hash functions, offering fast, low‑memory checks with a controllable false‑positive rate, and can be implemented manually in Java, via Guava’s library, or deployed at scale with RedisBloom for distributed applications.

Bloom FilterGuavaJava
0 likes · 14 min read
Understanding Bloom Filters: Theory, Implementation, and Applications
Java Tech Enthusiast
Java Tech Enthusiast
Feb 1, 2024 · Backend Development

Implementing a Robust Redis Distributed Lock with Spring Boot

The article shows how to build a reliable Redis‑based distributed lock in a Spring Boot 2.7 application by storing a unique UUID token, acquiring the lock with SET NX PX, releasing it atomically via a Lua script, and providing a clean Lock interface, factory component, and JUnit example.

JavaLuaRedis
0 likes · 13 min read
Implementing a Robust Redis Distributed Lock with Spring Boot
Alibaba Cloud Developer
Alibaba Cloud Developer
Feb 1, 2024 · Databases

Why Redis Dominates Modern Caching: Architecture, Strategies, and Pitfalls

This article provides a comprehensive technical overview of Redis, covering its high‑performance in‑memory design, rich data structures, persistence options, transaction support, eviction policies, common caching patterns, distributed locking techniques, and high‑availability solutions such as Sentinel and Cluster, while also comparing it with alternatives like Memcached, Tair, Guava, EVCache and ETCD.

PersistenceRedishigh availability
0 likes · 35 min read
Why Redis Dominates Modern Caching: Architecture, Strategies, and Pitfalls
Su San Talks Tech
Su San Talks Tech
Jan 31, 2024 · Backend Development

Master Multi‑Level Cache Design: From Redis to JVM with Caffeine

This article explores high‑performance cache design, illustrating concepts with real‑world analogies, detailing traditional and multi‑level caching architectures, and providing practical implementations using Redis, Caffeine JVM cache, OpenResty Nginx local cache, and synchronization strategies such as double‑write, async notifications, and Canal‑based data replication.

CachingRedis
0 likes · 25 min read
Master Multi‑Level Cache Design: From Redis to JVM with Caffeine
Architect
Architect
Jan 30, 2024 · Backend Development

How to Keep MySQL and Redis in Sync: Practical Cache Consistency Patterns

This article explains why cache inconsistency occurs between MySQL and Redis, then walks through four concrete design patterns—delete‑then‑update, update‑then‑invalidate, read/write‑through, and write‑behind—detailing each step, trade‑offs, and failure scenarios to help engineers choose the most suitable approach.

BackendCache AsideMySQL
0 likes · 9 min read
How to Keep MySQL and Redis in Sync: Practical Cache Consistency Patterns
Nullbody Notes
Nullbody Notes
Jan 30, 2024 · Backend Development

Implementing TCC Distributed Transactions for Redis in Go

This article explains how to build a TCC‑style distributed transaction layer for Redis using Go, detailing the two‑phase commit workflow, handling of prepare, commit, and rollback phases, the associated consistency challenges, and providing full code examples.

RedisTCCbackend development
0 likes · 13 min read
Implementing TCC Distributed Transactions for Redis in Go
Architect
Architect
Jan 29, 2024 · Backend Development

How to Implement Robust Request Debounce in Java Backend with Redis and Redisson

This article explains why request debounce is essential for preventing duplicate submissions, outlines which APIs need protection, and walks through two distributed‑lock solutions—shared Redis cache and Redisson—showing concrete annotations, key‑generation logic, and Spring‑AOP code with full test results.

BackendJavaRedis
0 likes · 19 min read
How to Implement Robust Request Debounce in Java Backend with Redis and Redisson
Top Architect
Top Architect
Jan 29, 2024 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis

This article demonstrates how to implement API request throttling in a Spring Boot application using a custom Interceptor and Redis, covering basic principles, configuration, custom annotations, reflection for per‑endpoint limits, handling path parameters, and addressing timing logic nuances.

InterceptorJavaRedis
0 likes · 21 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Jan 29, 2024 · Databases

Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices

This article explains the relationship between MySQL and Redis, discusses why cache consistency is challenging, and details four cache update design patterns—delete‑then‑update, update‑then‑invalidate, read/write‑through, and write‑behind—along with their advantages, drawbacks, and typical execution flows.

BackendCache AsideRedis
0 likes · 9 min read
Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices
Architecture Digest
Architecture Digest
Jan 28, 2024 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis

This article demonstrates how to build a Spring‑based API rate‑limiting solution using an Interceptor and Redis, covering the basic principle, project setup, code implementation, custom annotation with reflection for flexible limits, handling path‑parameter keys, real‑IP acquisition, and practical considerations for production use.

BackendInterceptorJava
0 likes · 18 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis
Nullbody Notes
Nullbody Notes
Jan 26, 2024 · Backend Development

Building a Distributed Redis Cluster in Go Using Simple Consistent Hash

This article walks through creating a functional Redis service called EasyRedis, focusing on implementing a distributed cluster with a consistent‑hash algorithm in Go, including detailed code examples, node mapping, command routing, and relay mechanisms.

Code ExampleConsistent HashDistributed Cluster
0 likes · 11 min read
Building a Distributed Redis Cluster in Go Using Simple Consistent Hash
Nullbody Notes
Nullbody Notes
Jan 25, 2024 · Backend Development

Building a Redis Connection Pool in Go: Design and Implementation

This article walks through the design and Go implementation of a reusable Redis connection pool, covering the pool data structure, object acquisition and release logic, handling of active limits and waiting queues, and an extended per‑IP socket pool for distributed Redis clusters.

BackendGoRedis
0 likes · 10 min read
Building a Redis Connection Pool in Go: Design and Implementation
Nullbody Notes
Nullbody Notes
Jan 23, 2024 · Databases

Implementing Redis Transactions in Go: A Complete Walkthrough

This article walks through building a functional Redis server in Go, focusing on transaction support (MULTI, EXEC, WATCH, UNWATCH, DISCARD), using locks for atomicity, version tracking for watch, and an undo‑log mechanism for rollback, with code examples and demo screenshots.

GoLockRedis
0 likes · 11 min read
Implementing Redis Transactions in Go: A Complete Walkthrough
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 22, 2024 · Backend Development

Mastering Two-Level Caching in Spring Boot with CacheFrontend & Caffeine

This guide walks through implementing a two‑level cache in Spring Boot 2.7 using Lettuce’s CacheFrontend together with Caffeine, covering dependency setup, configuration, custom CacheAccessor, bean definitions, and sample endpoints that demonstrate automatic synchronization and eviction between local JVM cache and Redis.

CacheFrontendCaffeineRedis
0 likes · 7 min read
Mastering Two-Level Caching in Spring Boot with CacheFrontend & Caffeine
IT Niuke
IT Niuke
Jan 21, 2024 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Search in Redis

The article explains how to use Redis Sorted Sets for efficient pagination, employ Hashes with HSCAN for multi‑condition fuzzy matching, combine both techniques into a unified solution, and apply expiration‑based optimizations to keep the cache lightweight and responsive.

RedisSorted Setcache optimization
0 likes · 10 min read
Implementing Pagination and Multi‑Condition Fuzzy Search in Redis
Selected Java Interview Questions
Selected Java Interview Questions
Jan 20, 2024 · Backend Development

Implementing Sa-Token Authentication in Spring Cloud Gateway with Redis and Nacos

This article demonstrates how to replace heavyweight Spring Security with the lightweight Sa-Token framework by configuring token generation, session storage in Redis, service discovery via Nacos, and permission checks in a Spring Cloud Gateway micro‑service architecture, complete with code examples and deployment settings.

AuthenticationJavaNacos
0 likes · 21 min read
Implementing Sa-Token Authentication in Spring Cloud Gateway with Redis and Nacos
MaGe Linux Operations
MaGe Linux Operations
Jan 19, 2024 · Databases

Master Redis Data Structures: Practical Commands and Use Cases

This comprehensive guide walks through Redis's core data structures—including strings, lists, sets, sorted sets, hashes, HyperLogLog, bitmaps, streams, and geospatial indexes—explaining their characteristics and providing concrete command‑line examples to help developers select and use the right structure for their applications.

Data StructuresNoSQLRedis
0 likes · 10 min read
Master Redis Data Structures: Practical Commands and Use Cases
php Courses
php Courses
Jan 19, 2024 · Databases

Redis Basics and Using Redis to Optimize PHP Web Applications

This article introduces Redis fundamentals and demonstrates how to integrate Redis into PHP web applications for caching, session management, database caching, and queue operations, providing code examples that illustrate connecting to Redis, setting and retrieving data, and configuring expiration to boost performance and stability.

In-Memory DatabasePHPQueue
0 likes · 4 min read
Redis Basics and Using Redis to Optimize PHP Web Applications
JavaEdge
JavaEdge
Jan 18, 2024 · Databases

Master RedisInsight: Visualize, Manage, and Optimize Redis Seamlessly

This guide introduces RedisInsight, a powerful GUI for Redis, outlines its key features such as cluster support, visual data browsing, built‑in CLI, stream and log analysis, and provides step‑by‑step installation instructions for Linux, Kubernetes, and macOS, plus basic usage tips.

Database ManagementGUIInstallation guide
0 likes · 10 min read
Master RedisInsight: Visualize, Manage, and Optimize Redis Seamlessly
Architect
Architect
Jan 17, 2024 · Backend Development

How to Build a Custom Spring Security Authentication Flow with Redis Token Management

This article walks through the complete process of implementing a custom login authentication in Spring Boot, including custom authentication filters, success/failure handlers, a token stored in Redis, role‑based URL security, and detailed configuration of Spring Security headers and session handling.

Custom AuthenticationJavaRedis
0 likes · 24 min read
How to Build a Custom Spring Security Authentication Flow with Redis Token Management
Cognitive Technology Team
Cognitive Technology Team
Jan 17, 2024 · Artificial Intelligence

Redis Founder antirez Reflects on Large Language Models in 2024

In his first 2024 blog post, Redis founder antirez shares a programmer's perspective on large language models, sharply critiques Google's search engine, evaluates current AIGC as both foolish and historically knowledgeable, and argues that generative AI mainly amplifies the abilities of already strong developers.

AI CommentaryRedislarge language models
0 likes · 2 min read
Redis Founder antirez Reflects on Large Language Models in 2024
IT Services Circle
IT Services Circle
Jan 16, 2024 · Backend Development

Cache Prewarming Techniques and Implementation in Spring Boot and Redis

This article explains cache prewarming—its purpose, benefits, and various strategies such as startup loading, scheduled tasks, manual triggers, and cache loaders—while providing concrete Spring Boot and Redis examples, including code snippets for ApplicationReadyEvent, CommandLineRunner, InitializingBean, @PostConstruct, @Scheduled, and Caffeine cache loader.

Backend PerformanceCaffeineRedis
0 likes · 9 min read
Cache Prewarming Techniques and Implementation in Spring Boot and Redis
Java Captain
Java Captain
Jan 15, 2024 · Backend Development

Implementing Interface Rate Limiting with Spring Interceptor and Redis

This article explains how to prevent API abuse by using a Spring Interceptor combined with Redis to count requests per IP and URI, demonstrates step‑by‑step code implementations, discusses custom annotations, mapping rules, time‑window challenges, path‑parameter handling, and real‑IP extraction for robust backend rate limiting.

BackendInterceptorJava
0 likes · 15 min read
Implementing Interface Rate Limiting with Spring Interceptor and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Jan 15, 2024 · Backend Development

Preventing Inventory Overselling in High‑Concurrency Scenarios: Java, Redis Distributed Lock, MySQL Row Lock, Optimistic Lock, and SQL Solutions

The article analyzes the inventory oversell problem caused by concurrent purchase requests and presents four backend solutions—including a Redis distributed lock, MySQL row lock, optimistic locking with version fields, and conditional SQL updates—illustrated with Java code and SQL examples to ensure data consistency.

JavaOptimistic LockRedis
0 likes · 10 min read
Preventing Inventory Overselling in High‑Concurrency Scenarios: Java, Redis Distributed Lock, MySQL Row Lock, Optimistic Lock, and SQL Solutions
Architecture Digest
Architecture Digest
Jan 15, 2024 · Databases

Understanding Redis Persistence: AOF vs RDB Mechanisms

This article explains Redis's two persistence mechanisms—Append Only File (AOF) and RDB snapshots—detailing their operation, advantages, risks, write‑back strategies, rewrite process, and how to choose the appropriate method for performance and reliability requirements.

AOFPersistenceRDB
0 likes · 11 min read
Understanding Redis Persistence: AOF vs RDB Mechanisms
Nullbody Notes
Nullbody Notes
Jan 13, 2024 · Backend Development

How to Build a Redis‑Style Sorted Set with Skiplist in Go

This article walks through implementing a Redis‑compatible sorted‑set in Go, covering requirement analysis, data‑structure design with a map and skiplist, detailed insertion and search algorithms, complete code examples, and edge‑case handling, all illustrated with diagrams and sample output.

BackendGoRedis
0 likes · 13 min read
How to Build a Redis‑Style Sorted Set with Skiplist in Go