# twitter/twemproxy

A fast, light-weight proxy for memcached and redis

Repository: https://github.com/twitter/twemproxy
Canonical: https://ross.abutalabs.com/products/twemproxy
Language: C
License: Apache-2.0
License Family: permissive
Last push: 2024-03-29T03:09:06+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5306, "days_push": 887, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12337, forks 2036 (observed 2026-08-28T04:10:52.406864+00:00)

## What it is
Twemproxy (nutcracker) is a fast, lightweight proxy for the memcached and Redis protocols, written in C. It reduces backend connection counts and enables horizontal scaling of caching tiers through sharding, pipelining, and consistent hashing.

## Use cases
- shard redis across multiple servers
- reduce connection count to memcached backends
- scale a distributed cache horizontally
- proxy redis requests with consistent hashing
- pipeline memcached requests through a single endpoint
- disable failing cache nodes automatically

## When to choose
- you need a battle-tested, lightweight C proxy for memcached or Redis protocols
- you want automatic sharding with consistent hashing across cache servers
- backend caching servers are overwhelmed by too many client connections

## When to avoid
- you need Redis Cluster features like multi-key operations across shards or replication-aware routing
- you want an actively developed proxy with modern Redis support (consider predixy or envoy instead)
- you need TLS termination or rich observability

## Facets
- artifact type: service
- maturity: maintenance
- function: proxy, caching, database, routing, middleware
- domain: databases, microservices, infrastructure-as-code, performance, backend
- platform: bsd, cli, self-hosted
- tags: memcached, redis, sharding, consistent-hashing, connection-pooling, c-proxy, linux, macos

## Member repositories
- twitter/twemproxy (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.406864+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:08.927227+00:00, confidence not recorded.
  - readme: https://github.com/twitter/twemproxy (fetched 2026-08-28T04:10:52.406864+00:00, sha c864ded79f58)
- Data as of 2026-08-30T08:39:29.467469+00:00.
