Tagged articles
Twemproxy
13 articles · Page 1 of 1
This article analyzes the limitations of native Twemproxy, describes how Nginx's master‑worker multi‑process model and related Linux kernel features were integrated to create a high‑performance, highly available cache proxy, and presents extensive online and benchmark results showing significant latency and QPS improvements.
Twemproxymulti-processnetwork optimization
0 likes · 17 min read

The project re‑engineers Twemproxy by adopting Nginx’s master‑worker multi‑process model, adding non‑blocking accept locks, reuseport load balancing, CPU affinity and crash isolation, which transforms the single‑threaded proxy into a scalable, low‑latency, high‑QPS solution suitable for public‑cloud high‑concurrency workloads.
Cache ProxyLinuxTwemproxy
0 likes · 18 min read

This article details Meitu's engineering of a Redis/Memcached proxy platform, describing why twemproxy was chosen, the limitations of its upstream version, the multi‑process redesign with live configuration reload, added latency metrics, reuse‑port handling, Redis master‑slave support, performance testing, and remaining challenges.
MemcachedProxyRedis
0 likes · 12 min read

The article details Meitu's adaptation of Twitter's twemproxy into a multi‑process, hot‑reloading, high‑availability Redis/Memcached proxy, describing its architecture, custom features, performance testing, remaining challenges, and open‑source resources for other engineering teams.
MemcachedProxyRedis
0 likes · 16 min read

The team rescued a crashing Redis cache handling 100K‑120K QPS by shrinking Nginx Lua timeouts, trimming connection pools, adding four Redis nodes behind Twemproxy, and splitting keys to raise cardinality, which eliminated connection spikes, balanced shard load, and restored stable performance.
RedisTwemproxyconnection pool
0 likes · 10 min read

This guide explains what Twemproxy is, its features and limitations, and provides step‑by‑step instructions for installing, configuring, and testing the proxy with two Redis instances, plus high‑availability strategies using HAProxy and Sentinel.
ConfigurationHigh AvailabilityProxy
0 likes · 7 min read

This article reviews Redis's native limitations, explains three clustering approaches—client‑side sharding, proxy sharding (e.g., Twemproxy), and the official Redis Cluster—then compares Twemproxy's drawbacks and introduces Codis as a modern, open‑source alternative with practical deployment tips.
CodisRedisSharding
0 likes · 9 min read

This article reviews three open‑source Redis cache clustering approaches—Netflix's Dynomite, Twitter's Twemproxy, and Wandoujia's Codis—explaining their architectures, advantages, licensing, and suitability for production environments as alternatives to the native Redis cluster feature.
CodisDynomiteRedis
0 likes · 5 min read

This article examines Redis clustering techniques, compares client‑side sharding, proxy sharding, and Redis Cluster, critiques Twemproxy's limitations, and presents Codis's architecture, performance benchmarks, and practical tips for seamless migration and high‑availability in modern operations.
CodisDatabase ClusteringRedis
0 likes · 11 min read


21CTOJan 9, 2016 · Backend Development
This article details the design and implementation of a high‑concurrency, easily extensible proxy built in Go for Weibo's recommendation system, covering background, challenges with twemproxy, technical research, architecture, configuration, logging, monitoring, module breakdown, business logic, performance testing, and future improvements.
CacheProxyTwemproxy
0 likes · 20 min read

This article explains the concept, benefits, methods, and practical considerations of partitioning data across multiple Redis instances, covering range and hash partitioning, consistent hashing, implementation options, drawbacks, and recommended tools such as Redis Cluster and Twemproxy.
Consistent HashingPartitioningRedis
0 likes · 11 min read

Due to the memory limits of single Redis servers, many companies adopt proxy‑based Redis clustering solutions such as Netflix’s Dynomite, Twitter’s Twemproxy, and the open‑source Codis from Wandoujia, which provide distributed caching, cross‑data‑center replication, and improved performance and availability.
Cache ClusterCodisDynomite
0 likes · 4 min read

This article explains how Twemproxy (nutcracker) works as a high‑performance proxy for Redis and Memcached, outlines its key features and limitations, and provides step‑by‑step installation and configuration instructions for building a reliable, scalable caching layer.
ProxyTwemproxy
0 likes · 7 min read
