Tagged articles
3248 articles
Page 33 of 33
Architect
Architect
Dec 11, 2015 · Backend Development

Implementing Distributed Locks with Redis: The RedLock Algorithm

This article explains how to build reliable distributed locks using Redis, introduces the official RedLock algorithm, discusses safety properties, compares it with simple failover approaches, and provides implementation details, performance considerations, and lock‑extension techniques.

RedisRedlockconcurrency
0 likes · 16 min read
Implementing Distributed Locks with Redis: The RedLock Algorithm
21CTO
21CTO
Dec 11, 2015 · Backend Development

From Simple Polling to Scalable Microservices: JD’s Dongdong IM Evolution

This article chronicles the architectural journey of JD’s Dongdong instant‑messaging platform, detailing its early simple polling design, subsequent performance and scalability challenges, and the progressive shifts toward service‑oriented, micro‑service, and cloud‑native architectures that support massive user growth.

Backend ArchitectureIM SystemMicroservices
0 likes · 11 min read
From Simple Polling to Scalable Microservices: JD’s Dongdong IM Evolution
Architect
Architect
Dec 10, 2015 · Databases

Understanding Redis maxmemory Configuration and Approximate LRU Eviction Policies

Redis provides a configurable maxmemory setting to limit memory usage, and offers several eviction policies—including allkeys‑lru, volatile‑lru, and random strategies—implemented via an approximate LRU algorithm whose behavior can be tuned with maxmemory‑samples, allowing administrators to balance performance and memory reclamation.

LRUMemory ManagementRedis
0 likes · 11 min read
Understanding Redis maxmemory Configuration and Approximate LRU Eviction Policies
21CTO
21CTO
Dec 9, 2015 · Backend Development

How Worktile Built a Scalable MEAN Stack with Real‑Time Messaging

This article explains how Worktile’s team collaboration platform combines a single‑page AngularJS front‑end with Node.js, Redis, MongoDB, and ejabberd XMPP services to achieve cross‑platform access, native‑like interactions, and high‑performance real‑time updates for over 100,000 teams.

AngularJSMEAN stackNode.js
0 likes · 10 min read
How Worktile Built a Scalable MEAN Stack with Real‑Time Messaging
ITPUB
ITPUB
Dec 4, 2015 · Backend Development

How to Measure and Optimize System Load Capacity for High‑Concurrency Backends

This guide explains key metrics, influencing factors, and practical tuning steps—including bandwidth, hardware, OS limits, TCP parameters, and server configurations—to assess and improve a backend system's maximum request handling capacity under high concurrency.

Linux TuningRedisTCP parameters
0 likes · 19 min read
How to Measure and Optimize System Load Capacity for High‑Concurrency Backends
Java High-Performance Architecture
Java High-Performance Architecture
Dec 3, 2015 · Backend Development

Unlock Real-Time Messaging: How Redis Pub/Sub Works and When to Use It

The article explains the publish‑subscribe (pub/sub) messaging model, its time, space, and synchronization decoupling features, typical real‑time scenarios such as chat and log processing, and details how Redis implements pub/sub through channels and pattern subscriptions, including command syntax and internal data structures.

AsynchronousMessagingRedis
0 likes · 4 min read
Unlock Real-Time Messaging: How Redis Pub/Sub Works and When to Use It
Architect
Architect
Dec 2, 2015 · Databases

Redis vs Memcached: Clarifications and Comparative Analysis

This article critically examines common claims that Memcached is superior for caching by comparing its design, threading, disk I/O, memory efficiency, LRU behavior, smart caching features, persistence, replication, observability, and Lua scripting capabilities against Redis, concluding that the two systems have distinct trade‑offs depending on use case.

Lua scriptingMemcachedPerformance
0 likes · 9 min read
Redis vs Memcached: Clarifications and Comparative Analysis
Architect
Architect
Nov 22, 2015 · Backend Development

Implementing Rails Fragment Cache with Redis and Session Storage

This article explains how to enable Rails fragment caching, use HTML fragment cache helpers, understand cache digests, observe read/write fragment logs, and migrate the cache store from file system to Redis by adding redis-namespace and redis-rails gems, configuring cache_store, and handling cache invalidation on data changes.

CacheFragmentCacheRails
0 likes · 9 min read
Implementing Rails Fragment Cache with Redis and Session Storage
21CTO
21CTO
Nov 19, 2015 · Cloud Computing

How Mango TV Built a Hybrid Cloud Platform to Scale Video Services

The article examines how Mango TV leveraged its broadcast assets and a hybrid cloud architecture—combining private and public cloud services, Docker‑based scheduling, Redis‑Cluster, and a custom PaaS called ProjectEru—to support IPTV, OTT, and web content at massive scale while maintaining stability and low operational cost.

Cloud NativeDockerRedis
0 likes · 12 min read
How Mango TV Built a Hybrid Cloud Platform to Scale Video Services
21CTO
21CTO
Nov 18, 2015 · Backend Development

How Xiaomi Engineered a High‑Performance Flash‑Sale System for the 2014 Mi Fan Festival

This article details Xiaomi's step‑by‑step design and evolution of its flash‑sale platform, covering the initial PHP‑Redis solution, the challenges of extreme concurrency, and the later Go‑based architecture that enabled millions of users to purchase smartphones reliably during the 2014 Mi Fan Festival.

Backend ArchitectureDistributed SystemsGo
0 likes · 15 min read
How Xiaomi Engineered a High‑Performance Flash‑Sale System for the 2014 Mi Fan Festival
Efficient Ops
Efficient Ops
Nov 11, 2015 · Information Security

Why Redis Unauthorized Access Is a Critical Threat and How to Fix It

This article explains a high‑severity Redis unauthorized‑access vulnerability that can let attackers write SSH keys to the host, highlights the risk of exposing Redis to the Internet without authentication, and provides guidance on remediation and network protection.

Network ExposureRedisVulnerability
0 likes · 4 min read
Why Redis Unauthorized Access Is a Critical Threat and How to Fix It
dbaplus Community
dbaplus Community
Nov 11, 2015 · Backend Development

Designing Scalable Flash‑Sale Architecture to Survive Traffic Surges

This article explains how to design a high‑availability flash‑sale system by separating business and data layers, using Redis queues for pressure isolation, ensuring inventory consistency, handling transaction reconciliation, and addressing anti‑fraud measures to cope with massive concurrent traffic.

Backend ArchitectureRedisScalability
0 likes · 16 min read
Designing Scalable Flash‑Sale Architecture to Survive Traffic Surges
Java High-Performance Architecture
Java High-Performance Architecture
Oct 27, 2015 · Backend Development

How Consistent Hashing Powers Scalable Memcached Clusters

Caching dramatically improves website performance by storing data in memory for faster responses and reducing database load, with Memcached and Redis as popular solutions; proper routing algorithms like consistent hashing are essential to scale clusters without causing cache misses or service disruption.

Backend PerformanceCachingMemcached
0 likes · 2 min read
How Consistent Hashing Powers Scalable Memcached Clusters
Architect
Architect
Oct 24, 2015 · Backend Development

Designing a Complete Distributed Server Cluster Architecture for Large Websites

This article outlines a comprehensive distributed server cluster architecture for large‑scale websites, covering the evolution from simple three‑tier setups to high‑availability load‑balancing with HAProxy/Keepalived, Redis caching, NoSQL storage, and future distributed MySQL considerations.

Distributed SystemsHAProxyRedis
0 likes · 8 min read
Designing a Complete Distributed Server Cluster Architecture for Large Websites
Architect
Architect
Oct 23, 2015 · Databases

Designing KV Schemas with Redis: Login System and Tag System Examples

The article explains how Redis's rich data structures enable flexible key‑value schema designs for a user login system and a tag system, contrasting them with traditional relational database approaches and demonstrating practical commands and Python code for common operations.

Key-Value DesignListRedis
0 likes · 9 min read
Designing KV Schemas with Redis: Login System and Tag System Examples
21CTO
21CTO
Oct 20, 2015 · Backend Development

Scaling a Web System to 100M Daily Visits: Load Balancing, Caching, and Architecture

This article explains how a web system can grow from 100,000 to 100 million daily visits by introducing multi‑level caching, various load‑balancing strategies, MySQL performance tuning, distributed database setups, and geographic deployment to maintain stability and performance under massive traffic.

CachingDatabase OptimizationDistributed Systems
0 likes · 21 min read
Scaling a Web System to 100M Daily Visits: Load Balancing, Caching, and Architecture
Efficient Ops
Efficient Ops
Oct 12, 2015 · Operations

Redis Cluster Migration Lessons: Real‑World Failures and Practical Solutions

This article recounts a series of July Redis incidents—including network‑card saturation, connection‑limit exhaustion, suspected split‑brain, Bgsave‑induced OOM, and master‑restart data loss—detailing the migration to Redis Cluster with a Smart Proxy, the challenges faced, and actionable remediation strategies.

ClusterMigrationOperations
0 likes · 13 min read
Redis Cluster Migration Lessons: Real‑World Failures and Practical Solutions
21CTO
21CTO
Oct 1, 2015 · Backend Development

How to Scrape 1.1 Million Zhihu Users with PHP cURL, Multi‑Threading, and Redis

This tutorial walks through collecting over a million Zhihu user profiles using PHP on Ubuntu, handling cookies, bypassing image hot‑link protection, scaling requests with curl_multi, de‑duplicating MySQL inserts, and coordinating work with Redis and multi‑process pcntl for efficient large‑scale web scraping.

LinuxMulti‑processingPHP
0 likes · 15 min read
How to Scrape 1.1 Million Zhihu Users with PHP cURL, Multi‑Threading, and Redis
Architect
Architect
Sep 26, 2015 · Databases

Architectural Challenges and Optimization Strategies for Redis Cluster

The article analyzes the inherent drawbacks of Redis Cluster—such as its decentralized P2P design, gossip overhead, upgrade difficulty, lack of hot‑cold data separation, client protocol challenges, and implementation limits—and proposes architectural enhancements like proxy, dashboard, and agent components to improve scalability, manageability, and performance.

ClusterRedisScalability
0 likes · 17 min read
Architectural Challenges and Optimization Strategies for Redis Cluster
21CTO
21CTO
Sep 23, 2015 · Backend Development

How to Tackle 50k QPS Flash Sales: Backend Strategies for Extreme Concurrency

This article explores the challenges of handling tens of thousands of requests per second in flash‑sale systems, covering interface design, QPS calculations, overload protection, anti‑cheat measures, and data‑safety techniques such as pessimistic, optimistic, and queue‑based locking.

Optimistic LockRedisbackend optimization
0 likes · 16 min read
How to Tackle 50k QPS Flash Sales: Backend Strategies for Extreme Concurrency
Architect
Architect
Jul 30, 2015 · Backend Development

Technical Architecture of Worktile: SPA Design, Service Stack, and Real-time Messaging

Worktile’s architecture combines a single‑page AngularJS front‑end with a Node.js/Express backend, leveraging MongoDB, Redis, and ejabberd for real‑time messaging, illustrating how SPA design, modular services, and long‑connection techniques enable a stable, high‑performance team collaboration platform.

AngularJSMongoDBNode.js
0 likes · 11 min read
Technical Architecture of Worktile: SPA Design, Service Stack, and Real-time Messaging
Architect
Architect
Jul 30, 2015 · Backend Development

Redis‑Backed Timeline Implementation with MongoDB for a Subscription Feed

This article explains how to implement a scalable timeline for a subscription feed by combining MongoDB storage with a Redis list cache, detailing the data model, query challenges, Redis operations for pushing and trimming statuses, rebuilding strategies, and handling data integrity trade‑offs.

CacheMongoDBQueue
0 likes · 7 min read
Redis‑Backed Timeline Implementation with MongoDB for a Subscription Feed
Qunar Tech Salon
Qunar Tech Salon
Jul 6, 2015 · Databases

Design, Deployment, and Lessons Learned from Codis and RebornDB: A Proxy‑Based Distributed Redis Solution

This article presents an in‑depth overview of Codis and its next‑generation project RebornDB, covering Redis, Redis Cluster, the proxy‑based architecture, consistency trade‑offs, production deployment experiences, operational pitfalls, and broader perspectives on distributed databases and architectures.

CodisDistributed CacheProxy
0 likes · 20 min read
Design, Deployment, and Lessons Learned from Codis and RebornDB: A Proxy‑Based Distributed Redis Solution
Efficient Ops
Efficient Ops
Jun 17, 2015 · Cloud Native

Project Eru: Scaling a Custom Docker Orchestration Platform to 10k Nodes

Project Eru, a homegrown Docker‑based orchestration system developed at Mango TV, replaces earlier PaaS attempts with a stateless, scalable core and agent architecture, leveraging Redis clusters, MacVLAN networking, and fine‑grained CPU allocation to achieve rapid, automated scaling across thousands of containers.

MacvlanRediscontainer orchestration
0 likes · 22 min read
Project Eru: Scaling a Custom Docker Orchestration Platform to 10k Nodes

Designing a High‑Availability, Auto‑Scaling KV Storage System Based on Memcached and Redis

This article examines common NoSQL key‑value stores such as Memcached and Redis, compares their strengths and limitations, and proposes a distributed architecture with routing, storage, management, and migration nodes that achieves high availability, automatic fault‑tolerance, load balancing, and elastic scaling.

KV StoreMemcachedRedis
0 likes · 15 min read
Designing a High‑Availability, Auto‑Scaling KV Storage System Based on Memcached and Redis
MaGe Linux Operations
MaGe Linux Operations
Jan 19, 2015 · Databases

Why Merging Redis Requests Can Still Slow Your System – A Real‑World Debugging Tale

The author recounts a real‑world incident where consolidating many Redis GET calls into a single MGET reduced network latency but unexpectedly increased overall response time, leading to timeout errors; they detail the investigation using Redis slowlog, code analysis, and proper pagination techniques to resolve the hidden performance bottleneck.

DebuggingMGETRedis
0 likes · 9 min read
Why Merging Redis Requests Can Still Slow Your System – A Real‑World Debugging Tale
MaGe Linux Operations
MaGe Linux Operations
Dec 17, 2014 · Databases

Mastering Redis Configuration: Essential Settings for Performance & Security

This guide presents a comprehensive collection of Redis configuration directives, covering daemonization, networking, persistence, replication, security, memory management, AOF, Lua scripting, slow log, event notifications, and advanced tuning options, enabling administrators to optimize performance, reliability, and safety of their Redis deployments.

DatabaseRedis
0 likes · 23 min read
Mastering Redis Configuration: Essential Settings for Performance & Security
MaGe Linux Operations
MaGe Linux Operations
Oct 28, 2014 · Databases

Redis vs MySQL & Memcached: Key Differences, Use‑Cases, and HA Design

This article compares Redis with MySQL, outlines their similarities and differences, examines Redis alongside Memcached, EhCache, and OSCache, and proposes a simple high‑availability architecture for Redis, highlighting performance, data model, scalability, and operational considerations.

Redisdatabase comparisonhigh availability
0 likes · 6 min read
Redis vs MySQL & Memcached: Key Differences, Use‑Cases, and HA Design
MaGe Linux Operations
MaGe Linux Operations
Sep 11, 2014 · Databases

When to Use Each Redis Data Structure: Real‑World Scenarios Explained

This article reviews the five core Redis data structures—String, Hash, List, Set, and Sorted Set—detailing practical use‑cases such as caching, user profile storage, timelines, message queues, social graphs, and weighted rankings, plus a look at Pub/Sub and transaction features.

CachingData StructuresIn-Memory Database
0 likes · 7 min read
When to Use Each Redis Data Structure: Real‑World Scenarios Explained
Baidu Tech Salon
Baidu Tech Salon
Apr 22, 2014 · Operations

Baidu's Optimization of MooseFS and Redis: Architecture Improvements and Performance Enhancement

At Baidu’s 49th Technical Salon, Cheng Yishi explained how the company revamped its MooseFS and Redis systems by adding a Shadow Master to split reads from writes, introducing Slave nodes for failover, and deploying a Redis proxy middleware, thereby dramatically improving performance, scalability, and high‑availability for critical services.

BaiduMooseFSRedis
0 likes · 6 min read
Baidu's Optimization of MooseFS and Redis: Architecture Improvements and Performance Enhancement