Tagged articles
3240 articles
Page 29 of 33
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 21, 2019 · Databases

Redis Data Types, Expiration Strategies, Memory Eviction Policies, and a Java LRU Cache Example

This article explains Redis's core data structures—string, hash, list, set, and sorted set—covers why and how data expires, details Redis's periodic and lazy expiration mechanisms, outlines the six memory eviction policies, and provides a Java LinkedHashMap‑based LRU cache implementation.

Eviction PoliciesExpirationjava
0 likes · 9 min read
Redis Data Types, Expiration Strategies, Memory Eviction Policies, and a Java LRU Cache Example
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 20, 2019 · Databases

Understanding Redis: Purpose, Usage, Caching Benefits, Differences with Memcached, and Thread Model

This article explains what Redis is, how it is used for caching in projects, the performance and concurrency advantages of caching, common cache pitfalls, key differences between Redis and Memcached, and the internal single‑threaded event‑driven architecture that enables high‑throughput operations.

In-Memory DatabaseMemcachedThread Model
0 likes · 11 min read
Understanding Redis: Purpose, Usage, Caching Benefits, Differences with Memcached, and Thread Model
Efficient Ops
Efficient Ops
Jul 16, 2019 · Backend Development

Mastering Cache Strategies with Redis: From Theory to Practical Deployment

This article explores cache fundamentals, common pitfalls like penetration and avalanche, naming conventions, warm‑up techniques, and provides step‑by‑step guidance for setting up Redis master‑slave, testing containers, and optimizing configurations for high‑performance backend systems.

Containercache-avalanchecache-penetration
0 likes · 10 min read
Mastering Cache Strategies with Redis: From Theory to Practical Deployment
Java Captain
Java Captain
Jul 14, 2019 · Backend Development

Backend Architecture, Distributed Locks, and Session Management in Java

This article explains a Java backend architecture with front‑end/back‑end separation, deployment diagrams, the concepts of thread, process and distributed locks, implementations using database optimistic locking, Redis and Zookeeper, session handling in distributed systems, and various related code examples and best‑practice notes.

backend-developmentdistributed-lockjava
0 likes · 12 min read
Backend Architecture, Distributed Locks, and Session Management in Java
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 13, 2019 · Databases

Weekly Community Digest: MySQL 8.0.17 New Features, Redis 6 Release, DBLE & DTLE Updates, and Upcoming Shanghai Meetup

This weekly digest summarizes the latest MySQL 8.0.17 enhancements, Redis 6's new RESP3 protocol, free Mycat diagnostics, DBLE and DTLE weekly reports, original technical articles on MySQL fragmentation, dynamic permissions and TempTable engine, plus details of the upcoming Shanghai 3306π meetup.

DBLEDTLEcommunity
0 likes · 7 min read
Weekly Community Digest: MySQL 8.0.17 New Features, Redis 6 Release, DBLE & DTLE Updates, and Upcoming Shanghai Meetup
Programmer DD
Programmer DD
Jul 12, 2019 · Databases

Critical Redis Remote Code Execution Flaw (CNVD‑2019‑21763): Risks & Fixes

A high‑severity Redis remote command execution vulnerability (CNVD‑2019‑21763) discovered in July 2019 allows unauthenticated attackers to load malicious modules and execute arbitrary code, affecting Redis 2.x‑5.x, with no official patch yet and only temporary mitigation steps available.

CNVDDatabase SecurityRemote Code Execution
0 likes · 3 min read
Critical Redis Remote Code Execution Flaw (CNVD‑2019‑21763): Risks & Fixes
ITPUB
ITPUB
Jul 11, 2019 · Backend Development

How to Prevent Redis Cache Avalanche and Penetration Failures

The article explains what cache avalanche and cache penetration are in Redis, why they can crash databases, and provides practical strategies—including random expiration, high‑availability setups, local caches, rate limiting, Bloom filters, and empty‑object caching—to mitigate these issues and maintain cache‑database consistency.

Cachecache-avalanchecache-penetration
0 likes · 6 min read
How to Prevent Redis Cache Avalanche and Penetration Failures
Java Backend Technology
Java Backend Technology
Jul 11, 2019 · Databases

Understanding Redis: Protocol, ACID Myths, Persistence, and Optimization

Redis, the in‑memory data store, uses a simple RESP text protocol, offers limited ACID‑style transactions without rollback, employs optimistic locking via WATCH, provides multiple persistence options (RDB, AOF, hybrid), optimizes memory with ziplist and quicklist structures, and implements sophisticated replication and expiration strategies to balance performance and resource usage.

In-Memory DatabaseMemory OptimizationPersistence
0 likes · 23 min read
Understanding Redis: Protocol, ACID Myths, Persistence, and Optimization
Programmer DD
Programmer DD
Jul 10, 2019 · Operations

The Hidden Struggles of Maintaining a Popular Open‑Source Project

An open‑source maintainer shares candid reflections on the psychological pressure, overwhelming community feedback, role shifts, time constraints, fear of losing technical leadership, friction with contributors, and the sense of futility that accompany the stewardship of a widely used project like Redis.

Project Maintenancecommunity managementdeveloper psychology
0 likes · 8 min read
The Hidden Struggles of Maintaining a Popular Open‑Source Project
Efficient Ops
Efficient Ops
Jul 8, 2019 · Backend Development

Why Is Redis So Fast? Deep Dive into Its Data Structures and Optimizations

This article explains why Redis achieves exceptional performance by using pure in‑memory operations, a single‑threaded model, efficient data structures like SDS, skip‑list, ziplist, and various encoding and rehash optimizations that reduce memory allocation and CPU overhead.

Data StructuresKV StoreMemory Optimization
0 likes · 17 min read
Why Is Redis So Fast? Deep Dive into Its Data Structures and Optimizations
Architects' Tech Alliance
Architects' Tech Alliance
Jul 3, 2019 · Databases

Optimizing Redis Persistence with Non‑Volatile Memory: Design, Performance, and Recovery

This article examines how integrating Non‑volatile Memory (NVM) with Redis can replace traditional RDB/AOF persistence, offering a hybrid design that improves durability, reduces recovery time, and maintains high write performance, while discussing implementation details, performance benchmarks, and future optimization challenges.

NVMPersistenceperformance
0 likes · 13 min read
Optimizing Redis Persistence with Non‑Volatile Memory: Design, Performance, and Recovery
Architect's Tech Stack
Architect's Tech Stack
Jul 3, 2019 · Backend Development

Implementing a Distributed Rate Limiter with Redis, Spring Boot, and Lua Scripts

This article demonstrates how to build a distributed rate‑limiting component named shield‑ratelimiter using Redis’s INCR and TTL features, Spring‑Boot‑starter integration, Lua scripting for atomic operations, custom annotations, and AspectJ, providing a robust, configurable solution for limiting API calls in Java backend services.

Distributed SystemsLuaSpring Boot
0 likes · 16 min read
Implementing a Distributed Rate Limiter with Redis, Spring Boot, and Lua Scripts
Big Data Technology & Architecture
Big Data Technology & Architecture
Jun 24, 2019 · Big Data

Resetting Daily Page View Counters in Spark Streaming Using mapWithState and Timeout

The article explains how to use Spark Streaming's mapWithState operator to count product page views, addresses the issue of daily PV reset by presenting two solutions—restarting the streaming job via a scheduled script and configuring a StreamingContext timeout—plus an alternative approach using Redis for external state management.

Spark Streamingdaily resetmapWithState
0 likes · 4 min read
Resetting Daily Page View Counters in Spark Streaming Using mapWithState and Timeout
Java Backend Technology
Java Backend Technology
Jun 19, 2019 · Backend Development

Enterprise Redis: Scaling, Monitoring, and Business Isolation

This article explores how enterprises can effectively use Redis by partitioning clusters for independent or shared use, addressing key naming conflicts, implementing graceful scaling with Zookeeper, monitoring performance via Open-Falcon, and quickly isolating problematic business traffic to maintain system stability.

Business IsolationClustermonitoring
0 likes · 10 min read
Enterprise Redis: Scaling, Monitoring, and Business Isolation
Java Backend Technology
Java Backend Technology
Jun 15, 2019 · Backend Development

How to Share HTTP Sessions Across Spring Boot Instances with Redis and Nginx

This article explains why session sharing is required in distributed Java back‑ends, demonstrates how Spring Session automatically synchronizes HttpSession data to Redis, and shows step‑by‑step how to configure Spring Boot, Redis, and Nginx to achieve transparent session sharing across multiple service instances.

NginxSpring BootSpring Session
0 likes · 8 min read
How to Share HTTP Sessions Across Spring Boot Instances with Redis and Nginx
macrozheng
macrozheng
Jun 14, 2019 · Operations

Step‑by‑Step: Deploy the Mall Application on Linux Using Docker

This guide walks you through installing Docker on CentOS 7.6 and deploying a complete mall stack—including MySQL, Redis, Nginx, RabbitMQ, Elasticsearch, MongoDB, and a SpringBoot service—inside Docker containers, configuring volumes, ports, firewalls, and testing the APIs.

DeploymentDockerElasticsearch
0 likes · 11 min read
Step‑by‑Step: Deploy the Mall Application on Linux Using Docker
ITPUB
ITPUB
Jun 11, 2019 · Databases

Why KEYS Can Crash Your Redis and How SCAN Keeps It Running

The article explains how using the KEYS command on large Redis datasets can block the single‑threaded server and cause outages, and demonstrates how the incremental SCAN command safely retrieves keys without impacting performance, including syntax, options, and practical examples.

KEYSSCANdatabase
0 likes · 4 min read
Why KEYS Can Crash Your Redis and How SCAN Keeps It Running
Youzan Coder
Youzan Coder
Jun 5, 2019 · Backend Development

Building a Poster Rendering Service with Puppeteer

The article explains how to build a poster‑rendering service with Puppeteer, detailing its advantages over canvas, the Redis‑based caching and CDN workflow, optimization tricks for headless Chromium, and future plans to boost QPS and pre‑generate popular posters.

CDNCanvas APIPuppeteer
0 likes · 9 min read
Building a Poster Rendering Service with Puppeteer
HomeTech
HomeTech
Jun 5, 2019 · Backend Development

Performance Optimization of a New‑Car E‑commerce CRM System: Distributed Locks with ZooKeeper and Redis Cache Improvements

This article details how a new‑car e‑commerce CRM system was optimized for high availability by introducing ZooKeeper‑based distributed locks, mitigating herd effects, segmenting locks per merchant, and redesigning Redis caching with sorted sets to efficiently rank consultants by daily call volume, resulting in significant performance gains under high concurrency.

BackendZooKeeperdistributed-lock
0 likes · 10 min read
Performance Optimization of a New‑Car E‑commerce CRM System: Distributed Locks with ZooKeeper and Redis Cache Improvements
Big Data Technology & Architecture
Big Data Technology & Architecture
Jun 4, 2019 · Databases

Best Practices and Guidelines for Using Alibaba Cloud Redis

This article presents comprehensive Alibaba Cloud Redis development guidelines covering key‑value design, value handling, command usage, client configuration, lifecycle management, related tools, and code examples to help developers avoid common pitfalls and improve performance.

Alibaba CloudBigKey DetectionClient Best Practices
0 likes · 11 min read
Best Practices and Guidelines for Using Alibaba Cloud Redis
dbaplus Community
dbaplus Community
May 29, 2019 · Databases

Redis Replication Deep Dive: PSYNC, Full & Partial Sync, Heartbeats and Async Writes

This guide explains Redis replication in depth, detailing the step‑by‑step slave‑of initiation, the PSYNC command’s role in data synchronization, the full and partial sync processes, heartbeat mechanisms, and asynchronous write propagation, while highlighting key configuration parameters and performance considerations.

Full SyncPSYNCPartial Sync
0 likes · 11 min read
Redis Replication Deep Dive: PSYNC, Full & Partial Sync, Heartbeats and Async Writes
ITPUB
ITPUB
May 27, 2019 · Databases

Mastering Redis Data Types: Practical Tips and Real-World Use Cases

This article introduces Redis as an open‑source in‑memory store, outlines its core data structures—strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, and geospatial indexes—and provides concrete command examples, application scenarios, and best‑practice guidelines for effective usage.

CacheData StructuresHash
0 likes · 7 min read
Mastering Redis Data Types: Practical Tips and Real-World Use Cases
Java Captain
Java Captain
May 21, 2019 · Backend Development

QR Code Login Mechanism: Web and Mobile Interaction Overview

This article explains the QR‑code login process, detailing how the web front‑end, server, Redis store, and mobile application cooperate to generate a QR code, verify the scan, and complete user authentication using tokens and UUIDs.

AuthenticationBackendMobile
0 likes · 5 min read
QR Code Login Mechanism: Web and Mobile Interaction Overview
Architecture Talk
Architecture Talk
May 20, 2019 · Databases

From Zero to Redis Mastery: Why and How to Use Its Core Features

This article walks through Redis from a basic overview to advanced features such as persistence, Sentinel, clustering, data types, transactions, Lua scripting, pipelining, and distributed locks, illustrating each concept with practical examples and explaining when and why to use them in real‑world applications.

Data TypesDistributed SystemsPersistence
0 likes · 14 min read
From Zero to Redis Mastery: Why and How to Use Its Core Features
macrozheng
macrozheng
May 13, 2019 · Backend Development

How to Secure a Spring Boot API with Spring Security and JWT

This tutorial shows how to integrate Spring Security and JWT into a Spring Boot backend to implement user login and authorization, configure Swagger‑UI to automatically include the token, and provides all necessary code snippets, configuration files, and utility classes for a complete authentication solution.

AuthorizationBackendSwagger
0 likes · 21 min read
How to Secure a Spring Boot API with Spring Security and JWT
macrozheng
macrozheng
May 10, 2019 · Backend Development

How to Integrate Redis for SMS Verification in a Spring Boot Mall Project

This guide walks you through installing Redis, adding Maven dependencies, configuring Spring Boot, creating a Redis service interface and implementation, and building controller endpoints to generate and verify SMS verification codes, complete with code examples and deployment instructions.

Backend IntegrationCacheSMS Verification
0 likes · 10 min read
How to Integrate Redis for SMS Verification in a Spring Boot Mall Project
dbaplus Community
dbaplus Community
May 9, 2019 · Databases

Exporting Redis Slowlog to Elasticsearch with a Customized rsbeat

This guide explains how to overcome Redis slowlog retention limits by modifying rsbeat to collect and ship slowlog entries—including sentinel and cluster support—to Elasticsearch, where Kibana can be used for detailed analysis and visualization.

BeatsDatabase MonitoringElasticsearch
0 likes · 7 min read
Exporting Redis Slowlog to Elasticsearch with a Customized rsbeat
Efficient Ops
Efficient Ops
May 9, 2019 · Operations

Master ELK Log Processing: Encoding, Multiline, Grok, and Performance Tuning

This article compiles practical ELK knowledge, covering character‑set conversion, removing unwanted log lines, Grok pattern handling for multi‑line logs, multiline plugin usage in Filebeat and Logstash, date filtering, log type classification, performance optimization, Redis buffering, and Elasticsearch node tuning.

ELKElasticsearchFilebeat
0 likes · 16 min read
Master ELK Log Processing: Encoding, Multiline, Grok, and Performance Tuning
Architects' Tech Alliance
Architects' Tech Alliance
May 9, 2019 · Databases

From Single‑Node to Distributed: The Evolution of Modern Database Services

This article traces the historical laws that drove computing growth, examines how Redis, MongoDB and Memcached evolved, compares client‑side, proxy and compute‑storage‑separated architectures, evaluates their trade‑offs, and answers common questions about cloud‑based distributed databases.

Cloud DatabasesCompute-Storage SeparationDatabase Architecture
0 likes · 23 min read
From Single‑Node to Distributed: The Evolution of Modern Database Services
macrozheng
macrozheng
May 4, 2019 · Backend Development

Explore the Full‑Featured Mall E‑Commerce System Built with Spring Boot & MyBatis

The Mall project is a comprehensive e‑commerce solution featuring a front‑end storefront and back‑office management, implemented with Spring Boot, MyBatis, and a suite of modern technologies such as Redis, Elasticsearch, RabbitMQ, Docker, and more, offering modules for products, orders, marketing, and analytics.

DockerElasticsearchMyBatis
0 likes · 4 min read
Explore the Full‑Featured Mall E‑Commerce System Built with Spring Boot & MyBatis
Java Captain
Java Captain
Apr 27, 2019 · Databases

Redis Key Design, Command Usage, and Client Best Practices

This guide presents comprehensive best‑practice recommendations for designing Redis keys, choosing appropriate data types, managing key lifecycles, safely using commands, optimizing client connections, handling big keys, and selecting eviction policies to ensure high performance and reliability in production environments.

CacheKey Designbest practices
0 likes · 12 min read
Redis Key Design, Command Usage, and Client Best Practices
Architect's Tech Stack
Architect's Tech Stack
Apr 25, 2019 · Backend Development

Redis I/O Multiplexing: Design, Implementation, and Code Walkthrough

This article examines Redis's I/O multiplexing mechanism, explaining why it uses non‑blocking models, detailing the Reactor pattern, comparing select, epoll, and kqueue, and providing a thorough walkthrough of the underlying C code that implements event creation, addition, deletion, and polling across platforms.

I/O MultiplexingReactor Patternbackend-development
0 likes · 11 min read
Redis I/O Multiplexing: Design, Implementation, and Code Walkthrough
Java Captain
Java Captain
Apr 14, 2019 · Databases

Redis Overview: Features, Use Cases, Data Types, Persistence, Distributed Locks, and Performance

This article provides a comprehensive overview of Redis, covering its definition, common use cases, core functionalities, differences from Memcached, single‑threaded design, cache‑penetration mitigation, supported data types, Java clients, consistency strategies, persistence methods, distributed lock implementation, memory optimization, eviction policies, and typical performance issues.

Data TypesPersistencecaching
0 likes · 6 min read
Redis Overview: Features, Use Cases, Data Types, Persistence, Distributed Locks, and Performance
Tencent TDS Service
Tencent TDS Service
Apr 4, 2019 · Databases

Understanding Redis Persistence: RDB vs AOF Explained

This article provides a detailed analysis of Redis's two persistence mechanisms—RDB snapshots and AOF logging—covering their core concepts, implementation details, trigger conditions, data safety, performance impact, and recovery speed to help engineers choose the appropriate method for their workloads.

AOFData RecoveryPersistence
0 likes · 11 min read
Understanding Redis Persistence: RDB vs AOF Explained
Architect's Tech Stack
Architect's Tech Stack
Apr 1, 2019 · Databases

Comprehensive Guide to Common Redis Issues and Their Solutions

This article provides an in‑depth overview of why Redis is used, its drawbacks, the reasons behind its single‑threaded speed, data types and use‑cases, expiration policies, memory eviction strategies, consistency challenges with databases, and practical solutions for cache penetration, cache avalanche, and concurrent key competition.

Data ConsistencyMemory Managementcaching
0 likes · 15 min read
Comprehensive Guide to Common Redis Issues and Their Solutions
dbaplus Community
dbaplus Community
Mar 28, 2019 · Backend Development

How Distributed Locks Keep High‑Traffic Red‑Packet Systems Consistent

This article explains why traditional in‑process locks fail under massive concurrency, how distributed locks using Redis or Zookeeper ensure atomic updates across many servers, and details practical implementations, pitfalls like deadlocks, and strategies such as key expiration and ephemeral sequential nodes.

Concurrency ControlZooKeeperbackend-development
0 likes · 14 min read
How Distributed Locks Keep High‑Traffic Red‑Packet Systems Consistent
Didi Tech
Didi Tech
Mar 28, 2019 · Backend Development

Distributed Locks: Concepts, Evolution, and Implementation Strategies

Distributed locks provide mutual exclusion across multiple nodes in scalable, reliable systems, and can be implemented via simple Redis SETNX/EX patterns, ZooKeeper’s EPHEMERAL_SEQUENTIAL znodes with watches, or Redisson’s advanced Java‑centric primitives, each offering distinct trade‑offs in simplicity, consistency, and feature richness.

System DesignZooKeeperconcurrency
0 likes · 21 min read
Distributed Locks: Concepts, Evolution, and Implementation Strategies
Java Architecture Diary
Java Architecture Diary
Mar 24, 2019 · Backend Development

How to Extend Spring Cache for Multi‑Tenant Isolation and TTL

This article explains Spring's annotation‑based caching, analyzes why the default cache key collides in multi‑tenant scenarios, shows how to embed tenant identifiers into keys, and provides a custom CacheManager implementation that parses TTL from the cache name and applies it to Redis entries.

CacheManagerSpring BootSpring Cache
0 likes · 5 min read
How to Extend Spring Cache for Multi‑Tenant Isolation and TTL
NetEase Game Operations Platform
NetEase Game Operations Platform
Mar 23, 2019 · Backend Development

Implementing a Redis‑Based Distributed Lock to Ensure Data Consistency in a CMDB System

This article analyzes data‑inconsistency problems caused by concurrent multithreaded updates in a CMDB system and presents a step‑by‑step exploration of synchronization solutions, ultimately implementing a robust Redis‑backed distributed lock in Python to guarantee atomic reads and writes while handling edge cases such as crashes and lock expiration.

CMDBData ConsistencyPython
0 likes · 17 min read
Implementing a Redis‑Based Distributed Lock to Ensure Data Consistency in a CMDB System
JD Tech Talk
JD Tech Talk
Mar 19, 2019 · Backend Development

Design and Implementation of JD Finance’s LEGO Backend System for Dynamic Page Configuration

The article describes the motivation, analysis, architecture, performance optimizations, development challenges, and future plans of JD Finance’s LEGO backend platform, which uses Spring Boot, SpEL, Redis, and reactive programming to enable dynamic, high‑performance page configuration for a high‑traffic mobile app.

Backend ArchitectureSpELSpring Boot
0 likes · 10 min read
Design and Implementation of JD Finance’s LEGO Backend System for Dynamic Page Configuration
MaGe Linux Operations
MaGe Linux Operations
Mar 10, 2019 · Backend Development

Unlocking Redis Memory: Deep Dive into Its Internal Model and Optimization

This article explains Redis's memory model—including memory statistics, allocation, internal data structures like redisObject and SDS, object type encodings, and practical techniques for estimating usage, reducing fragmentation, and optimizing memory consumption—providing developers with actionable insights for high‑performance backend systems.

Memory Managementbackend-developmentredis
0 likes · 31 min read
Unlocking Redis Memory: Deep Dive into Its Internal Model and Optimization
Efficient Ops
Efficient Ops
Mar 5, 2019 · Operations

Why Your Redis and MySQL Connections Time Out on Alibaba Cloud—and How to Fix Them

This article explains how idle TCP connections are silently dropped by Alibaba Cloud security groups, causing Redis client timeouts and MySQL JDBC CommunicationsExceptions, and provides step‑by‑step diagnostics and configuration changes—including TCP keepalive and wait_timeout tweaks—to prevent the failures.

Alibaba CloudHikariCPconnection timeout
0 likes · 20 min read
Why Your Redis and MySQL Connections Time Out on Alibaba Cloud—and How to Fix Them
Java Captain
Java Captain
Mar 3, 2019 · Databases

Redis Overview: Architecture, Persistence, High Availability, and Client Features

This article explains Redis as an in‑memory data store used for caching, database, and messaging, walks through its evolution from simple HTTP caching to dedicated servers, and details server‑side features like persistence, Sentinel, replication, clustering, as well as client‑side capabilities such as rich data types, transactions, Lua scripting, pipelining, and distributed locks.

ClusterDistributed SystemsPersistence
0 likes · 11 min read
Redis Overview: Architecture, Persistence, High Availability, and Client Features
Tencent Cloud Developer
Tencent Cloud Developer
Feb 27, 2019 · Operations

Operational Challenges and Strategies for Tencent Cloud Redis

Facing metadata inconsistency, ten‑thousand‑device scale, and the need for intelligent, event‑driven automation, Tencent Cloud Redis’s sole operations lead built a unified DB‑CMDB, a job‑platform for reusable workflows, and AI‑assisted scheduling, transforming DBAs into developer‑operators and driving 300% efficiency gains.

Database operationsDevOpsIntelligent Scheduling
0 likes · 9 min read
Operational Challenges and Strategies for Tencent Cloud Redis
Programmer DD
Programmer DD
Feb 27, 2019 · Backend Development

Mastering Redis Distributed Locks with Redisson: From Simple Locks to Redlock

This article explains how to implement ordinary Redis distributed locks and the advanced Redlock algorithm using Redisson across single‑node, sentinel, and cluster architectures, provides complete Java code examples, and addresses common questions about expiration, high availability, and comparisons with Zookeeper.

Redlockdistributed-lockjava
0 likes · 11 min read
Mastering Redis Distributed Locks with Redisson: From Simple Locks to Redlock
Java Backend Technology
Java Backend Technology
Feb 24, 2019 · Backend Development

Top Java Backend Interview Questions: Microservices, Redis, MySQL & More

This article compiles a comprehensive set of interview questions encountered across four technical rounds and an HR session for a major Chinese tech company, covering Java backend architecture, microservices design, RocketMQ, Redis internals, database consistency, networking, algorithms, and practical troubleshooting tips.

RocketMQinterviewjava
0 likes · 7 min read
Top Java Backend Interview Questions: Microservices, Redis, MySQL & More
Java Captain
Java Captain
Feb 23, 2019 · Databases

Redis Internal Data Structures and Object Implementations

This article provides a comprehensive overview of Redis, covering its core concepts, common use cases, and detailed explanations of internal objects such as redisObject, dictEntry, SDS, and the underlying data structures for String, List, Hash, Set, and ZSet, including code snippets and performance characteristics.

C ProgrammingIn-Memory DatabaseMemory Management
0 likes · 16 min read
Redis Internal Data Structures and Object Implementations
Java Backend Technology
Java Backend Technology
Feb 22, 2019 · Databases

Mastering Redis Cluster: Evolution, Architecture, and Interview Secrets

This article walks through the evolution of Redis clustering—from early Replication+Sentinel setups, through Proxy‑based solutions, to modern Redis Cluster—detailing their architectures, advantages, drawbacks, and provides practical interview tips and high‑impact answers for candidates.

Clusterbackend-developmentdatabase
0 likes · 11 min read
Mastering Redis Cluster: Evolution, Architecture, and Interview Secrets
360 Tech Engineering
360 Tech Engineering
Feb 20, 2019 · Databases

Pika Best Practices: 30 Tips for Optimizing the RocksDB‑Based Redis‑Compatible Storage

This article presents thirty practical recommendations for deploying, configuring, and maintaining Pika—a high‑capacity, RocksDB‑backed Redis‑compatible storage system—covering version selection, thread settings, hardware choices, key design, memory management, replication, backup, compaction, security, and monitoring to achieve reliable and high‑performance operation.

Database TuningOperationsPika
0 likes · 16 min read
Pika Best Practices: 30 Tips for Optimizing the RocksDB‑Based Redis‑Compatible Storage
360 Tech Engineering
360 Tech Engineering
Feb 20, 2019 · Databases

Pika 3.0 New Features Overview

Pika 3.0, the open‑source C++ Redis‑compatible storage built on RocksDB, introduces a new Blackwidow engine, enhanced binlog, and optimized server layer, delivering higher interface performance, reduced disk usage, extended key length, full ZSET compatibility, and improved overall efficiency.

PikaRocksDBStorage Engine
0 likes · 3 min read
Pika 3.0 New Features Overview
Programmer DD
Programmer DD
Feb 20, 2019 · Fundamentals

Mastering Redis Redlock: A Deep Dive into Distributed Lock Implementation

This article explains the classic Redis distributed lock using SETNX and Lua, highlights its pitfalls, introduces the advanced Redlock algorithm with step‑by‑step acquisition and release procedures, and provides concrete Java Redisson code examples, illustrating how to implement reliable distributed locks across multiple Redis nodes.

Redlockdistributed-lockjava
0 likes · 12 min read
Mastering Redis Redlock: A Deep Dive into Distributed Lock Implementation
Efficient Ops
Efficient Ops
Feb 11, 2019 · Databases

Best Redis Cluster Options: Client Sharding, Proxy, Codis, Official

Redis, a high‑performance NoSQL database, offers multiple clustering approaches—including client‑side sharding, proxy‑based solutions like Twemproxy and Codis, and the native Redis Cluster—each with distinct trade‑offs in scalability, availability, operational complexity, and performance, guiding engineers to select the optimal architecture for their workloads.

CodisProxyclustering
0 likes · 15 min read
Best Redis Cluster Options: Client Sharding, Proxy, Codis, Official
Java Captain
Java Captain
Feb 9, 2019 · Databases

Evolution of Redis Cluster Architecture and Interview Tips

This article reviews the progression of Redis high‑availability solutions—from simple replication with Sentinel, through proxy‑based setups, to native Redis Cluster—explains their advantages and drawbacks, and provides practical interview Q&A tips for candidates.

ClusterProxydatabase
0 likes · 9 min read
Evolution of Redis Cluster Architecture and Interview Tips
Java Captain
Java Captain
Jan 29, 2019 · Backend Development

Implementing a Simple Seckill (Flash Sale) Using Redis Distributed Locks in Java

This article explains the business background of a flash‑sale (seckill) scenario, analyzes naive locking approaches, introduces Redis‑based distributed locks, and provides a complete Java demo with custom annotations, dynamic proxies, and a multithreaded test to ensure correct inventory decrement under high concurrency.

Seckillannotationdistributed-lock
0 likes · 15 min read
Implementing a Simple Seckill (Flash Sale) Using Redis Distributed Locks in Java
ITPUB
ITPUB
Jan 28, 2019 · Databases

How to Prevent Redis Single‑Point Failures with Sentinel and Master‑Slave Replication

This article explains Redis’s key features and common use cases, highlights the risks of single‑node deployments, compares two master‑slave replication architectures, and outlines their pros and cons, and details how Redis Sentinel provides automated monitoring, failover, and configuration to achieve high availability.

databasedisaster recoveryhigh availability
0 likes · 10 min read
How to Prevent Redis Single‑Point Failures with Sentinel and Master‑Slave Replication
dbaplus Community
dbaplus Community
Jan 27, 2019 · Databases

How to Build a Highly Available Redis Service with Sentinel and Virtual IP

This article walks through the design of a highly available Redis deployment, explains common failure scenarios, compares single‑node, master‑slave, and multi‑Sentinel architectures, and shows how adding a virtual IP and three Sentinel instances can provide robust HA while keeping client usage simple.

databasehigh availabilityredis
0 likes · 13 min read
How to Build a Highly Available Redis Service with Sentinel and Virtual IP
Java High-Performance Architecture
Java High-Performance Architecture
Jan 22, 2019 · Backend Development

How to Prevent Inventory Over‑Selling in High‑Concurrency Systems

Learn why inventory over‑selling occurs under high concurrency, and explore three practical solutions—pessimistic locking, optimistic locking with version control, and Redis‑Lua scripting—detailing their implementation steps, advantages, and drawbacks to help you choose the best approach for reliable stock management.

Luainventorypessimistic-lock
0 likes · 7 min read
How to Prevent Inventory Over‑Selling in High‑Concurrency Systems
Programmer DD
Programmer DD
Jan 21, 2019 · Fundamentals

Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown? A Deep Dive

This article explains the principles behind TCP's three‑way handshake and four‑way teardown, covering connection establishment, data transfer, termination, header fields, state diagrams, sequence‑number wraparound, SYN‑flood attacks, mitigation techniques, and a practical Redis packet‑capture analysis, all illustrated with diagrams and code snippets.

Four‑Way TeardownLinuxSYN Flood
0 likes · 23 min read
Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown? A Deep Dive
NetEase Game Operations Platform
NetEase Game Operations Platform
Jan 19, 2019 · Databases

Design and Implementation of Redis Application Layer Protocol (RESP) and Its Python Clients

This article explains the RESP protocol used by Redis, details its five data types, demonstrates pipeline handling with raw sockets, examines the parsing and command‑packing logic of the redis‑py client, analyzes the pipeline implementation and limitations of redis‑py‑cluster, and speculates on upcoming RESP3 features.

PipelinePythonRESP
0 likes · 20 min read
Design and Implementation of Redis Application Layer Protocol (RESP) and Its Python Clients
Zhuanzhuan Tech
Zhuanzhuan Tech
Jan 17, 2019 · Backend Development

Design and Refactoring of the Book Outbound Service with SN Allocation and Concurrency Management

The article describes the challenges of handling book outbound operations—matching SN codes, ensuring data consistency, and avoiding lock contention—and outlines a comprehensive refactor that separates business logic, standardizes APIs, adopts asynchronous processing, and leverages Redis sets to achieve high‑performance, reliable SN allocation.

Backendconcurrencydistributed-systems
0 likes · 10 min read
Design and Refactoring of the Book Outbound Service with SN Allocation and Concurrency Management
21CTO
21CTO
Jan 14, 2019 · Backend Development

How SuNing Financial Scaled Its Red Envelope System for Billion-User Peaks

This article details SuNing Financial’s red‑envelope platform architecture and evolution, covering high‑concurrency challenges, traffic shaping, asynchronous processing, multi‑level caching, Redis‑based distributed locks, task scheduling, payment‑chain isolation, high‑availability deployment, multi‑layer flow control, monitoring, and future scalability directions.

Distributed LocksMicroservicescaching
0 likes · 14 min read
How SuNing Financial Scaled Its Red Envelope System for Billion-User Peaks
dbaplus Community
dbaplus Community
Jan 6, 2019 · Databases

Inside Redis: How Memory Structures and Encoding Power Its 5 Data Types

This article explains how Redis stores and encodes its five data types by using various in‑memory data structures such as SDS strings, linked lists, quicklists, hash tables, skip‑lists, intsets and zip‑lists, and it also covers object mapping, expiration policies, LRU eviction, and the RDB/AOF persistence mechanisms.

Data StructuresMemory ManagementPersistence
0 likes · 25 min read
Inside Redis: How Memory Structures and Encoding Power Its 5 Data Types
ITPUB
ITPUB
Jan 5, 2019 · Databases

Why PostgreSQL Captured the 2018 DB-Engines DBMS of the Year Award

The 2018 DB-Engines ranking crowned PostgreSQL as the top DBMS, highlighting its 30‑year evolution, strong community, and expanding features, while MongoDB and Redis secured the runner‑up and third places respectively, and the January 2019 popularity scores showed continued shifts among major database systems.

DB-EnginesDatabase RankingsMongoDB
0 likes · 5 min read
Why PostgreSQL Captured the 2018 DB-Engines DBMS of the Year Award
Sohu Tech Products
Sohu Tech Products
Jan 2, 2019 · Databases

Comprehensive Redis Guide: Overview, Use Cases, Performance, Data Structures, Commands, Configuration, and Best Practices

This article provides a detailed overview of Redis as an open‑source, in‑memory data store, covering its core features, common use cases such as caching and leaderboards, high‑performance characteristics, essential data structures and commands, configuration options, and practical recommendations for production deployment.

ConfigurationData StructuresIn-Memory Database
0 likes · 11 min read
Comprehensive Redis Guide: Overview, Use Cases, Performance, Data Structures, Commands, Configuration, and Best Practices
MaGe Linux Operations
MaGe Linux Operations
Dec 25, 2018 · Databases

Unlocking Redis: How Its Memory Model Impacts Performance and Cost

This article explains Redis's memory model—including memory statistics, allocation strategies, object types, internal encodings, and practical optimization techniques—so developers can accurately estimate memory usage, reduce fragmentation, and improve overall system efficiency.

Memory ModelSDSjemalloc
0 likes · 31 min read
Unlocking Redis: How Its Memory Model Impacts Performance and Cost
vivo Internet Technology
vivo Internet Technology
Dec 18, 2018 · Databases

2018 3306π 深圳站年会 - Database Technologies and Practices

The 2018 3306π Shenzhen annual conference, co‑hosted by the 3306π community, Zhishu Hall and vivo, attracted over 150 attendees and featured expert talks on MySQL 8.0, open‑source data‑transfer middleware, TDSQL for finance, RadonDB, InnoDB enhancements, large‑scale Redis clusters, and Youzan database operations, with presentation materials available online.

Database ArchitectureDatabase OptimizationMongoDB
0 likes · 3 min read
2018 3306π 深圳站年会 - Database Technologies and Practices
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 17, 2018 · Databases

Resolving Data Inconsistency Between Redis Cache and MySQL Database

In high‑concurrency scenarios, using Redis as a buffer can improve performance, but without proper strategies such as delayed double‑delete, cache expiration, or asynchronous binlog‑driven updates, inconsistencies between Redis and MySQL may arise, so this article explains the causes and presents four practical solutions.

Cache Consistencybackend-developmentdata synchronization
0 likes · 6 min read
Resolving Data Inconsistency Between Redis Cache and MySQL Database
Efficient Ops
Efficient Ops
Dec 16, 2018 · Databases

Understanding Redis Data Structures, Persistence, Transactions, and Replication

This article explains Redis's core data types—String, Hash, List, Set, and Sorted Set—its internal object model, persistence options (RDB and AOF) with their pros and cons, transaction characteristics, master‑slave replication mechanisms, and common caching scenarios and design considerations.

Data StructuresPersistenceReplication
0 likes · 10 min read
Understanding Redis Data Structures, Persistence, Transactions, and Replication
MaGe Linux Operations
MaGe Linux Operations
Dec 15, 2018 · Databases

Mastering Redis: Core Data Structures, Commands, and Performance Tuning

This comprehensive guide explains Redis fundamentals, its rich data structures and common commands, then dives into performance optimization, replication, and clustering, offering practical examples and best‑practice recommendations for building reliable, high‑performance Redis deployments.

ClusterData StructuresReplication
0 likes · 32 min read
Mastering Redis: Core Data Structures, Commands, and Performance Tuning