Tagged articles

Redis

3508 articles · Page 19 of 36
ITPUB
ITPUB
Jul 20, 2022 · Databases

Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM

This article explains how Redis stores key‑value pairs, dives into the underlying dict, dictEntry and redisObject structures, and presents seven practical memory‑saving tricks—including key shortening, encoding tweaks, object sharing, bitmap usage, hash consolidation, fragmentation cleanup, and 32‑bit deployment—to dramatically reduce RAM consumption while preserving performance.

BitMapData StructuresHash
0 likes · 19 min read
Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM
Programmer DD
Programmer DD
Jul 19, 2022 · Databases

Master RedisInsight: Install, Configure, and Use the Ultimate Redis GUI

This guide walks you through installing RedisInsight on Linux and Kubernetes, configuring environment variables, launching the service, and using its GUI to monitor Redis metrics, edit data, and analyze memory, providing step‑by‑step commands and screenshots for each stage.

Database ManagementGUIInstallation
0 likes · 7 min read
Master RedisInsight: Install, Configure, and Use the Ultimate Redis GUI
Top Architect
Top Architect
Jul 17, 2022 · Backend Development

Implementing a Reliable Delay Queue with Redis and Go

This article explains how to build a precise, persistent, and retry‑capable delayed task queue using Redis ordered sets, Lua scripts, and a Go client, addressing common e‑commerce scenarios like auto‑closing unpaid orders and sending activation messages.

GoLuaMessage Queue
0 likes · 13 min read
Implementing a Reliable Delay Queue with Redis and Go
Ops Development Stories
Ops Development Stories
Jul 15, 2022 · Databases

Unlock Redis Mastery: 40+ Diagrams & 30k Words of Interview Essentials

This comprehensive guide covers everything from Redis fundamentals, data structures, and thread model to persistence strategies, clustering, memory eviction policies, cache design patterns, and advanced use‑cases like delayed queues, large‑key handling, pipelines, transactions, and distributed locking, providing interview‑ready knowledge for developers.

ClusterDatabasePersistence
0 likes · 66 min read
Unlock Redis Mastery: 40+ Diagrams & 30k Words of Interview Essentials
Top Architect
Top Architect
Jul 14, 2022 · Databases

Understanding Redis Memory Model and Its Applications

This article explains Redis's memory model, covering memory statistics, internal structures such as redisObject, SDS, and various object types, their encoding schemes, memory allocation, fragmentation, and provides practical examples for estimating memory usage, optimizing consumption, and monitoring fragmentation in high‑performance applications.

DatabaseMemory ManagementPerformance Optimization
0 likes · 30 min read
Understanding Redis Memory Model and Its Applications
ITPUB
ITPUB
Jul 12, 2022 · Databases

Inside Redis: Ziplist, Skiplist, Quicklist & Stream – Memory & Performance Secrets

This article explains Redis's low‑level data structures—including ziplist, skiplist, intset, quicklist, zipmap and stream—detailing their memory layouts, implementation code, use‑case selection criteria, performance trade‑offs, and configurable parameters that balance speed and space.

Data StructuresPerformanceRedis
0 likes · 26 min read
Inside Redis: Ziplist, Skiplist, Quicklist & Stream – Memory & Performance Secrets
Architect
Architect
Jul 11, 2022 · Databases

Understanding Redis: Features, Use Cases, and Architectural Evolution

Redis is an open‑source, in‑memory data store that supports various data types, persistence, replication, Sentinel, clustering, Lua scripting, pipelines, and distributed locks, and the article walks through its evolution from simple caching to a high‑availability, horizontally scalable database solution.

ClusterIn-Memory DatabaseRedis
0 likes · 12 min read
Understanding Redis: Features, Use Cases, and Architectural Evolution
HelloTech
HelloTech
Jul 11, 2022 · Databases

Redis Internal Data Structures: Ziplist, Skiplist, Intset, Quicklist, Zipmap, and Stream

The article explains Redis’s internal low‑level structures—ziplist, skiplist, intset, quicklist, zipmap, and stream—detailing their memory‑efficient layouts, operations, use cases, and how they combine (e.g., quicklist merging linked lists with ziplists) to deliver high performance in the in‑memory database.

Data StructuresQuicklistRedis
0 likes · 27 min read
Redis Internal Data Structures: Ziplist, Skiplist, Intset, Quicklist, Zipmap, and Stream
Top Architect
Top Architect
Jul 10, 2022 · Backend Development

Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration

This article explains Spring Boot's caching mechanism based on the JSR‑107 JCache specification, details core interfaces and implementations like Cache, AbstractValueAdaptingCache, and ConcurrentMapCache, demonstrates cache annotations such as @Cacheable, @CachePut and @CacheEvict, and shows how to replace the default in‑memory cache with Redis using Docker, StringRedisTemplate, and custom serialization.

CacheJCacheJava
0 likes · 16 min read
Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration
Architecture Digest
Architecture Digest
Jul 10, 2022 · Databases

Redis High Availability: Master‑Slave, Sentinel, and Cluster Solutions

Redis provides multiple high‑availability solutions—including master‑slave replication, Sentinel automatic failover, client‑side sharding, proxy‑based sharding (Twemproxy, Codis), and the native Redis Cluster—each with distinct architectures, advantages, and trade‑offs for scaling, fault tolerance, and operational complexity.

ClusterDatabaseRedis
0 likes · 17 min read
Redis High Availability: Master‑Slave, Sentinel, and Cluster Solutions
Python Programming Learning Circle
Python Programming Learning Circle
Jul 8, 2022 · Backend Development

Configuring Celery with Redis as Broker and Backend

This guide explains how to set up Celery, a distributed asynchronous task framework, to use Redis both as the message broker and result backend, covering project structure, configuration code, task definition, execution, state monitoring, and common control operations.

AsynchronousPythonRedis
0 likes · 5 min read
Configuring Celery with Redis as Broker and Backend
JD Tech
JD Tech
Jul 8, 2022 · Backend Development

Designing High‑Concurrency Inventory Systems with Redis, Database Transactions, and a Task Engine

This article presents a comprehensive solution for building an e‑commerce inventory system that prevents overselling under high concurrency by combining database transactions, Redis‑based stock deduction, idempotent anti‑repeat mechanisms, pipeline optimization, and a task‑engine driven eventual‑consistency architecture.

DatabaseInventoryRedis
0 likes · 13 min read
Designing High‑Concurrency Inventory Systems with Redis, Database Transactions, and a Task Engine
FunTester
FunTester
Jul 8, 2022 · Backend Development

How to Benchmark Redis Stream Java APIs with Dynamic Threads and QPS

This article walks through designing three Redis Stream performance test cases—adding, reading, and add‑delete—using dynamic thread and dynamic QPS models in Java, provides complete Groovy‑based test code, and shows sample console output for evaluating throughput and latency.

Dynamic ThreadsJavaQPS
0 likes · 8 min read
How to Benchmark Redis Stream Java APIs with Dynamic Threads and QPS
Java High-Performance Architecture
Java High-Performance Architecture
Jul 6, 2022 · Backend Development

How to Build a Million-User Ticket Spike System with Go, Nginx, and Redis

This article explores the design of a high‑concurrency ticket‑spike system inspired by China’s 12306 platform, covering load‑balancing strategies, distributed stock deduction using Redis, Go‑based HTTP services, weighted round‑robin Nginx configuration, performance testing with ApacheBench, and practical architectural insights for handling millions of simultaneous requests.

GoRedisSystem Design
0 likes · 20 min read
How to Build a Million-User Ticket Spike System with Go, Nginx, and Redis
ITPUB
ITPUB
Jul 6, 2022 · Databases

Unveiling Redis’s Hidden Data Structures: From SDS to Dictionaries

This article explores Redis’s internal data structures—including simple dynamic strings, linked lists, and dictionaries—detailing their encoding constants, implementation differences across versions, performance advantages, and rehashing mechanisms that enable high‑throughput, memory‑efficient operations.

Data StructuresHash TableLinked List
0 likes · 17 min read
Unveiling Redis’s Hidden Data Structures: From SDS to Dictionaries
Top Architect
Top Architect
Jul 6, 2022 · Databases

Practical Redis Use Cases: Caching, Distributed Sessions, Locks, Global IDs, Counters, Rate Limiting, Bitmaps, Shopping Cart, Timeline, Message Queue, Lottery, Likes, Tags, Filtering, Recommendations, and Rankings

This article presents a comprehensive collection of practical Redis scenarios—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, tags, product filtering, recommendation models, and ranking—accompanied by example commands and Java code snippets for each use case.

Data StructuresRedis
0 likes · 9 min read
Practical Redis Use Cases: Caching, Distributed Sessions, Locks, Global IDs, Counters, Rate Limiting, Bitmaps, Shopping Cart, Timeline, Message Queue, Lottery, Likes, Tags, Filtering, Recommendations, and Rankings
Su San Talks Tech
Su San Talks Tech
Jul 6, 2022 · Databases

Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM

This article explains Redis's internal storage mechanisms and presents seven practical optimization techniques—including key‑value compression, small‑collection encoding, object sharing, bitmap usage, hash structuring, memory‑fragment defragmentation, and 32‑bit deployment—to dramatically reduce memory consumption while increasing data capacity.

CacheData StructuresDatabase
0 likes · 21 min read
Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM
Architect
Architect
Jul 5, 2022 · Backend Development

Why Using Redis Expiration Listener and RabbitMQ Dead‑Letter Queues for Delayed Tasks Is a Bad Idea

The article explains why common shortcuts such as Redis key‑space expiration notifications, RabbitMQ dead‑letter queues, and non‑persistent time wheels are unreliable for implementing delayed tasks, and recommends using proper message‑queue solutions like RocketMQ, Pulsar, or Redisson DelayQueue with compensation mechanisms.

Message QueueRedisTime Wheel
0 likes · 8 min read
Why Using Redis Expiration Listener and RabbitMQ Dead‑Letter Queues for Delayed Tasks Is a Bad Idea
Top Architect
Top Architect
Jul 5, 2022 · Backend Development

Designing a High‑Concurrency Ticket Booking System with Nginx Load Balancing, Redis Stock Management, and Go

This technical article explains how to handle millions of simultaneous train‑ticket purchase requests by combining Nginx weighted load balancing, local in‑memory stock deduction, and a centralized Redis stock counter using Go, ensuring no overselling, high availability, and efficient performance.

GoRedishigh-concurrency
0 likes · 19 min read
Designing a High‑Concurrency Ticket Booking System with Nginx Load Balancing, Redis Stock Management, and Go
Architect
Architect
Jul 3, 2022 · Backend Development

Order Timeout Strategies: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ Dead‑Letter, Time Wheel, and Redis Expiration

The article compares five practical approaches for automatically closing unpaid orders—scheduled tasks, RocketMQ delayed messages, RabbitMQ dead‑letter queues, a time‑wheel algorithm, and Redis key‑expiration listeners—detailing their principles, advantages, limitations, and providing concrete Java code examples for each method.

RedisRocketMQorder timeout
0 likes · 17 min read
Order Timeout Strategies: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ Dead‑Letter, Time Wheel, and Redis Expiration
Tencent Cloud Developer
Tencent Cloud Developer
Jun 30, 2022 · Databases

Redis Overview: Architecture, Persistence, Replication, Sentinel, and Cluster

Redis is a single‑threaded, in‑memory data store offering rich structures, configurable expiration, multiple eviction policies, asynchronous master‑slave replication with Sentinel failover, durable RDB snapshots plus AOF logging, and native clustering that shards data across many masters for horizontal scalability and high availability.

CacheClusterDatabase
0 likes · 18 min read
Redis Overview: Architecture, Persistence, Replication, Sentinel, and Cluster
Top Architect
Top Architect
Jun 30, 2022 · Backend Development

Spring Boot Cache: JCache Specification, Cache Abstraction, Annotations, and Redis Integration

This article explains Spring Boot caching by introducing the JSR‑107 JCache specification, detailing core cache interfaces, showing the Spring Cache abstraction and its implementations, demonstrating cache annotations such as @Cacheable, @CachePut and @CacheEvict, and finally covering Redis setup and custom CacheManager usage.

CacheJCacheJava
0 likes · 19 min read
Spring Boot Cache: JCache Specification, Cache Abstraction, Annotations, and Redis Integration
Architect's Tech Stack
Architect's Tech Stack
Jun 27, 2022 · Backend Development

Why Redis Expiration and RabbitMQ Dead‑Letter Queues Are Unsuitable for Delayed Tasks and Recommended Alternatives

The article explains why using Redis key‑expiration notifications or RabbitMQ dead‑letter queues for delayed task execution is risky, compares several common approaches, and recommends reliable solutions such as dedicated message‑queue schedulers, Redisson delay queues, or time‑wheel implementations with proper compensation mechanisms.

Message QueueRedisRedisson
0 likes · 9 min read
Why Redis Expiration and RabbitMQ Dead‑Letter Queues Are Unsuitable for Delayed Tasks and Recommended Alternatives
MaGe Linux Operations
MaGe Linux Operations
Jun 25, 2022 · Backend Development

Why Redis Expiration and RabbitMQ Dead‑Letter Queues Fail for Delayed Tasks – Safer Alternatives

This article examines why using Redis key‑space expiration listeners, RabbitMQ dead‑letter queues, and in‑memory time wheels are unreliable for precise delayed‑task execution, and recommends more robust solutions such as dedicated message‑queue delay features and Redisson DelayQueue with fallback mechanisms.

RedisRedissonTime Wheel
0 likes · 6 min read
Why Redis Expiration and RabbitMQ Dead‑Letter Queues Fail for Delayed Tasks – Safer Alternatives
macrozheng
macrozheng
Jun 24, 2022 · Backend Development

Master Redis Data Types: Real‑World Use Cases & Implementation Guide

This comprehensive guide explains Redis's core and newer data types—including String, List, Hash, Set, Zset, BitMap, HyperLogLog, GEO, and Stream—detailing their internal implementations, essential commands, and practical scenarios such as caching, counting, locking, ranking, geolocation, and reliable message queuing.

Data StructuresPerformanceRedis
0 likes · 46 min read
Master Redis Data Types: Real‑World Use Cases & Implementation Guide
FunTester
FunTester
Jun 23, 2022 · Backend Development

Why Switching from Java to Go Simplifies Redis Integration – A Hands‑On Guide

This article walks through the author’s decision to continue learning Go for Redis access, outlines a step‑by‑step study plan, compares Go and Java Redis clients, presents a custom Go‑Redis wrapper with full source code, demonstrates usage in unit tests, and shares console output observations.

API wrapperGoPerformance
0 likes · 11 min read
Why Switching from Java to Go Simplifies Redis Integration – A Hands‑On Guide
NetEase Smart Enterprise Tech+
NetEase Smart Enterprise Tech+
Jun 23, 2022 · Backend Development

Mastering Rate Limiting: Choosing the Right Algorithm for High‑Availability Systems

This article explores the importance of rate limiting in distributed micro‑service architectures, explains four core algorithms—fixed window, sliding window, leaky bucket, and token bucket—and details a practical, Redis‑backed multi‑layer throttling solution for a voice‑bot platform, including trade‑offs and implementation tips.

RedisSliding Windowdistributed systems
0 likes · 15 min read
Mastering Rate Limiting: Choosing the Right Algorithm for High‑Availability Systems
HelloTech
HelloTech
Jun 21, 2022 · Backend Development

Recommendation Engine Upgrade Path, Architecture, and Performance Optimization for the "Guangguang" Content Community

The article details Guangguang’s shift from a rule‑based, Hive‑driven recommendation pipeline to an algorithmic service that leverages Elasticsearch and Redis for multi‑source recall, coarse and fine model ranking, exposure filtering, cold‑start handling, latency optimizations, reliability monitoring, and future vector‑based enhancements.

Cold StartElasticsearchPerformance Optimization
0 likes · 16 min read
Recommendation Engine Upgrade Path, Architecture, and Performance Optimization for the "Guangguang" Content Community
Top Architect
Top Architect
Jun 18, 2022 · Backend Development

Combining Redis with Local Guava Cache for Efficient Lazy Loading

This article explains how to integrate Redis with a Guava‑based local cache to achieve lazy‑loading of high‑frequency data, reduces Redis I/O pressure, provides code examples, discusses advantages and drawbacks, and outlines suitable microservice scenarios.

Guava CacheJavaRedis
0 likes · 11 min read
Combining Redis with Local Guava Cache for Efficient Lazy Loading
Java High-Performance Architecture
Java High-Performance Architecture
Jun 15, 2022 · Databases

How Redis Implements High‑Performance ‘Nearby People’ Search with GEOADD & GEORADIUS

This article explains the Redis Geo module’s GEOADD and GEORADIUS commands, analyzes their source code, and details the geohash‑based algorithm that enables efficient “nearby people” queries by converting coordinates to 52‑bit scores, searching nine‑grid cells, and filtering by spherical distance.

GEOADDGEORADIUSGeospatial
0 likes · 20 min read
How Redis Implements High‑Performance ‘Nearby People’ Search with GEOADD & GEORADIUS
ITPUB
ITPUB
Jun 13, 2022 · Backend Development

Mastering Redis Data Types: When to Use Strings, Lists, Hashes, Sets, Zsets and More

This comprehensive guide explains Redis's core data types—including String, List, Hash, Set, Zset, BitMap, HyperLogLog, GEO and Stream—detailing their internal implementations, common commands, and real‑world application scenarios such as caching, counting, messaging queues, ranking, geolocation and unique‑ID generation.

CacheData TypesMessage Queue
0 likes · 50 min read
Mastering Redis Data Types: When to Use Strings, Lists, Hashes, Sets, Zsets and More
Top Architect
Top Architect
Jun 12, 2022 · Databases

Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Configuration, and Tooling

This article outlines comprehensive guidelines for Alibaba Cloud Redis, covering readable and concise key naming, value size limits, appropriate data types, key lifecycle management, safe command usage, client connection pooling, encryption, eviction policies, and tools for synchronization, big‑key detection, and efficient deletion.

Alibaba CloudCommand OptimizationDatabase
0 likes · 8 min read
Best Practices for Using Alibaba Cloud Redis: Key Design, Command Usage, Client Configuration, and Tooling
Programmer DD
Programmer DD
Jun 10, 2022 · Information Security

Migrate Spring OAuth to Spring Authorization Server with Java 8

This article explains how to migrate from the deprecated Spring Security OAuth to Spring Authorization Server, covering Java 8 compatibility, extended grant types, Redis token storage, token formatting enhancements, custom authorization code handling, and resource server improvements, all demonstrated on the PIG microservice platform.

Java 8OAuth2Redis
0 likes · 6 min read
Migrate Spring OAuth to Spring Authorization Server with Java 8
FunTester
FunTester
Jun 10, 2022 · Databases

Using Redis Stream with Jedis: Basic Operations and Code Examples

This article introduces Redis Stream—a persistent message queue added in Redis 5.0—and demonstrates how to set up dependencies, use Java Jedis to perform core operations such as XADD, XTRIM, XDEL, XLEN, XREAD, and XRANGE, with complete code examples for each.

JavaMessage QueueRedis
0 likes · 9 min read
Using Redis Stream with Jedis: Basic Operations and Code Examples
Tencent Cloud Developer
Tencent Cloud Developer
Jun 9, 2022 · Databases

Redis Cache Anomalies and Mitigation Strategies

Redis caching can suffer from avalanche, breakdown, and penetration anomalies, but using staggered expirations, mutex locks, double‑key backups, high‑availability clusters, rate limiting, empty‑value caching, Bloom filters, warm‑up and degradation strategies effectively mitigates these risks and protects database stability.

CacheCache AvalancheCache Breakdown
0 likes · 9 min read
Redis Cache Anomalies and Mitigation Strategies
Sohu Tech Products
Sohu Tech Products
Jun 8, 2022 · Databases

Cache Working Mechanisms and Consistency Solutions Using Redis

This article explores Redis cache mechanisms, various caching patterns such as Cache‑Aside, Read‑Through, Write‑Through and Write‑Behind, analyzes consistency challenges in write operations, and presents solutions like delayed double deletion, retry mechanisms, and binlog‑based asynchronous cache invalidation to achieve eventual consistency.

Cache AsideCache ConsistencyRedis
0 likes · 18 min read
Cache Working Mechanisms and Consistency Solutions Using Redis
php Courses
php Courses
Jun 8, 2022 · Backend Development

Using Redis Bitmap for Online User Statistics in Laravel

This article explains how to efficiently count daily visits and online users in a Laravel application by leveraging Redis bitmap, detailing its memory‑saving advantages, providing complete PHP code for setting, counting, and checking online status, and comparing alternative methods such as tables, sorted sets, and HyperLogLog.

BitMapRedislaravel
0 likes · 4 min read
Using Redis Bitmap for Online User Statistics in Laravel
ITPUB
ITPUB
Jun 7, 2022 · Backend Development

How Redis Achieves High Performance with a Single‑Threaded Event Loop

This article explains how Redis uses Linux epoll and a single‑threaded event‑driven architecture to handle tens of thousands of connections efficiently, detailing the initialization of the server, the event‑loop mechanics, and the processing of client commands from accept to reply.

Redisepollevent loop
0 likes · 22 min read
How Redis Achieves High Performance with a Single‑Threaded Event Loop
DaTaobao Tech
DaTaobao Tech
Jun 7, 2022 · Databases

Inside Redis AOF Rewrite: How Forked Processes Manage Data Persistence

This article provides a detailed walkthrough of Redis's AOF rewrite mechanism, covering trigger conditions, parent‑child process forking, three communication pipes, key data structures, the child’s rewrite steps, the parent’s handling of concurrent writes, and the final hand‑over that swaps the new AOF file into production.

AOF RewriteFork ProcessRedis
0 likes · 12 min read
Inside Redis AOF Rewrite: How Forked Processes Manage Data Persistence
Java Architecture Diary
Java Architecture Diary
Jun 6, 2022 · Information Security

Integrating Spring Authorization Server in PIG v3.5: Secure OAuth2 Migration Guide

This article explains how the PIG microservice platform v3.5 adds official Spring Authorization Server support, covering background, Java compatibility, Maven dependency configuration, extended grant types, Redis token storage, token formatting and enhancement, and customized resource server introspection for a seamless OAuth2 migration.

JavaRedisSpring Authorization Server
0 likes · 5 min read
Integrating Spring Authorization Server in PIG v3.5: Secure OAuth2 Migration Guide
Java High-Performance Architecture
Java High-Performance Architecture
Jun 5, 2022 · Backend Development

Redis Cache Mastery: Real-World Scenarios & Distributed Lock Solutions for Java

This article examines common Redis caching challenges in Java high‑performance architectures—such as lock loss, cache hot‑spot rebuild, cache penetration, and avalanche—through eleven real‑world scenarios, and provides practical solutions including RedLock alternatives, Zookeeper, DCL, tryLock, multi‑level caching, and Lua‑based read‑write locks.

CacheJavaRedis
0 likes · 19 min read
Redis Cache Mastery: Real-World Scenarios & Distributed Lock Solutions for Java
dbaplus Community
dbaplus Community
Jun 5, 2022 · Databases

Detecting and Resolving Redis Performance Bottlenecks

This guide explains how to identify when Redis is slow, measure baseline latency, monitor slow commands and latency, troubleshoot network, fork, huge pages, swap, AOF, expiration, and big keys, and provides a practical checklist of solutions.

DatabaseRedistroubleshooting
0 likes · 18 min read
Detecting and Resolving Redis Performance Bottlenecks
IT Architects Alliance
IT Architects Alliance
Jun 3, 2022 · Backend Development

Which Delayed Task Strategy Wins? A Deep Dive into DB Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ

The article compares five delayed‑task implementations—database polling, JDK DelayQueue, Netty time wheel, Redis sorted sets, and RabbitMQ dead‑letter queues—detailing their concepts, Java code examples, advantages, and drawbacks to help developers choose the most suitable approach for order‑timeout scenarios.

DelayQueueJavaQuartz
0 likes · 16 min read
Which Delayed Task Strategy Wins? A Deep Dive into DB Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ
ITPUB
ITPUB
Jun 3, 2022 · Backend Development

Unlocking Redis Speed: A Deep Dive into Its Core Data Structures

This article explains why Redis is ultra‑fast by exploring its in‑memory design and the nine fundamental data structures—SDS, linked lists, ziplist, hash tables, skiplist, intset, quicklist, and listpack—that power keys, values, and internal objects, complete with code examples and version‑specific changes.

Data StructuresHash TableRedis
0 likes · 45 min read
Unlocking Redis Speed: A Deep Dive into Its Core Data Structures
Tencent Cloud Developer
Tencent Cloud Developer
Jun 1, 2022 · Backend Development

Implementing a Distributed Delayed Message Queue in Go Using Redis

Implementing a distributed delayed message queue in Go with Redis uses a List for ready jobs and a Sorted Set for delayed jobs, periodically migrating expired entries atomically via Lua or transactions, providing O(1) enqueue/dequeue performance, retry support, and scalable concurrency for multi‑instance systems.

Delayed MessagingGoLua Script
0 likes · 12 min read
Implementing a Distributed Delayed Message Queue in Go Using Redis
macrozheng
macrozheng
May 31, 2022 · Backend Development

Can Redis Streams Replace Kafka? A Practical Comparison

This article compares Redis Streams with Kafka, highlighting Redis's simplicity, performance, and built‑in features like consumer groups, while discussing when each solution is appropriate for different project scales and requirements.

KafkaPerformanceRedis
0 likes · 7 min read
Can Redis Streams Replace Kafka? A Practical Comparison
21CTO
21CTO
May 30, 2022 · Backend Development

How Twitter Scaled Timelines: Fan‑Out, Redis, and Architecture Secrets

This article analyzes Twitter's early architectural choices for handling massive user growth, detailing how fan‑out, precomputed home timelines stored in Redis, and selective write strategies enabled the platform to serve hundreds of thousands of timeline requests per second while keeping latency low.

RedisTwitterbackend architecture
0 likes · 8 min read
How Twitter Scaled Timelines: Fan‑Out, Redis, and Architecture Secrets
Top Architect
Top Architect
May 28, 2022 · Backend Development

Various Approaches to Implementing Delayed Tasks in Java Backend Systems

The article compares delayed and scheduled tasks and presents five backend solutions—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis ZSET, and RabbitMQ delayed queues—detailing their implementations, code examples, outputs, and pros and cons.

DelayQueueJavaQuartz
0 likes · 19 min read
Various Approaches to Implementing Delayed Tasks in Java Backend Systems
IT Services Circle
IT Services Circle
May 28, 2022 · Backend Development

Understanding Redis Eviction Policies and Implementing LRU Cache in Java

This article explains Redis memory eviction strategies, including volatile and allkeys policies, details the approximate LRU algorithm Redis uses, and provides Java implementations of an LRU cache using LinkedHashMap and a custom doubly‑linked list, complete with code examples and configuration settings.

Cache EvictionJavaLRU
0 likes · 7 min read
Understanding Redis Eviction Policies and Implementing LRU Cache in Java
Java Backend Technology
Java Backend Technology
May 27, 2022 · Backend Development

Why Redis Streams Can Replace Kafka for Your Message Queue Needs

The article explains how Redis Streams, a lightweight in‑memory data structure, can serve as a low‑cost, high‑performance alternative to Kafka for many projects, outlining its features, benefits, and practical usage scenarios while acknowledging when a dedicated MQ is still preferable.

Kafka AlternativeMessage QueueRedis
0 likes · 6 min read
Why Redis Streams Can Replace Kafka for Your Message Queue Needs
dbaplus Community
dbaplus Community
May 25, 2022 · Backend Development

How to Ensure Concurrency Quality with Distributed Locks in E‑Commerce Systems

This article explains why concurrency issues like overselling occur in e‑commerce, introduces distributed lock concepts and mainstream implementations (MySQL, Redis, Zookeeper/etcd), and provides a three‑stage quality‑assurance framework with code‑review checklists, testing methods, and data‑reconciliation techniques.

E‑commerceMySQLRedis
0 likes · 12 min read
How to Ensure Concurrency Quality with Distributed Locks in E‑Commerce Systems
Top Architect
Top Architect
May 24, 2022 · Backend Development

Comprehensive Guide to Cache Optimization and Design Strategies

This article presents a comprehensive overview of cache optimization techniques, covering benefits and costs, update policies, granularity control, penetration and avalanche mitigation, hot‑key reconstruction, and distributed batch‑operation strategies, with practical examples using Redis and MySQL.

Cache invalidationPerformanceRedis
0 likes · 14 min read
Comprehensive Guide to Cache Optimization and Design Strategies
Refining Core Development Skills
Refining Core Development Skills
May 24, 2022 · Backend Development

An In-Depth Analysis of Redis Multi-Threaded Architecture and I/O Event Processing

This article provides a comprehensive source-level analysis of Redis 6.0 and later multi-threaded architecture, detailing how the main event loop coordinates with dedicated I/O threads to efficiently distribute, parse, and process concurrent read and write requests while maintaining high throughput and low latency.

C programmingI/O multiplexingRedis
0 likes · 21 min read
An In-Depth Analysis of Redis Multi-Threaded Architecture and I/O Event Processing
ByteFE
ByteFE
May 23, 2022 · Backend Development

Design and Implementation of ByteDance Wallet Asset Platform for the 2022 Spring Festival Activity Across Eight Apps

The article details the architecture, challenges, and solutions of ByteDance's wallet asset platform that unified reward issuance, display, and usage across eight applications during the 2022 Spring Festival, covering high‑traffic order processing, token‑based asynchronous settlement, budget control, stability mechanisms, and future evolution.

Redisbackenddistributed systems
0 likes · 29 min read
Design and Implementation of ByteDance Wallet Asset Platform for the 2022 Spring Festival Activity Across Eight Apps
IT Architects Alliance
IT Architects Alliance
May 21, 2022 · Backend Development

Cache Usage Techniques and Design Strategies

This article explains how caching can accelerate read/write performance and reduce backend load, analyzes its benefits and costs, and details practical design patterns such as update policies, granularity control, penetration, bottom‑hole, avalanche, and hot‑key optimizations for reliable high‑performance systems.

PerformanceRedisbackend optimization
0 likes · 13 min read
Cache Usage Techniques and Design Strategies
php Courses
php Courses
May 13, 2022 · Backend Development

Designing a High-Concurrency Ticketing System with Load Balancing, Redis, and Go

This article explores the architecture and implementation of a high‑concurrency train ticket flash‑sale system, detailing load‑balancing strategies, Nginx weighted round‑robin, Redis‑based inventory management, and Go code examples that demonstrate local and remote stock deduction, performance testing, and fault‑tolerant design.

GoRedisbackend
0 likes · 20 min read
Designing a High-Concurrency Ticketing System with Load Balancing, Redis, and Go
Top Architect
Top Architect
May 13, 2022 · Backend Development

Design and Implementation of Delayed Message Queues in Distributed Systems

This article surveys common delayed message implementations—including external storage, RocksDB, Redis, and open‑source MQs like RocketMQ, Pulsar, and QMQ—analyzing their architectures, advantages, drawbacks, and practical considerations for building reliable distributed asynchronous messaging systems.

QMQRedisRocksDB
0 likes · 13 min read
Design and Implementation of Delayed Message Queues in Distributed Systems
HelloTech
HelloTech
May 13, 2022 · Backend Development

Redis Dual-Active Architecture: Hot-Standby, Dual-Write, and Bidirectional Synchronization Comparison

This article compares Redis dual‑active designs—hot‑standby, various dual‑write models, and bidirectional synchronization—showing hot‑standby’s high cost, dual‑write’s latency or consistency trade‑offs, and arguing that a middleware‑driven bidirectional sync, using replication protocols and fixed‑prefix keys to avoid loops, offers the most practical solution.

ClusterData synchronizationDual-Active Architecture
0 likes · 14 min read
Redis Dual-Active Architecture: Hot-Standby, Dual-Write, and Bidirectional Synchronization Comparison
Programmer DD
Programmer DD
May 12, 2022 · Backend Development

Build a Simple Hot Search Feature with Java, Redis, and Sensitive Word Filtering

This guide demonstrates how to implement a simple hot‑search feature and personal search‑history management using Java and Redis, covering ZSet‑based ranking, timestamp handling, and a DFA‑based sensitive‑word filter with Spring‑Boot configuration and reusable service methods.

JavaRedisSensitive Word Filter
0 likes · 16 min read
Build a Simple Hot Search Feature with Java, Redis, and Sensitive Word Filtering