A fast, light-weight proxy for memcached and redis, by Twitter

What is twemproxy?

twemproxy (pronounced "two-em-proxy"), aka nutcracker is a fast and lightweight proxy for memcached and redis protocol. It was built primarily to reduce the number of connections to the caching servers on the backend. This, together with protocol pipelining and sharding enables you to horizontally scale your distributed caching architecture.

twemproxy is a tool in the Memcached Tools category of a tech stack.

twemproxy is an open source tool with 8.95K Github Stars and 1.64K Github Forks. Here’s a link to twemproxy's open source repository on Github

Who Uses twemproxy?

3 companies use twemproxy including Twitter, trivago, and Avito.

twemproxy integrates with

Why people like twemproxy

Here’s a list of reasons why companies and developers use twemproxy.

Add a one-liner

twemproxy's Features

  • Fast.
  • Lightweight.
  • Maintains persistent server connections.
  • Keeps connection count on the backend caching servers low.
  • Enables pipelining of requests and responses.
  • Supports proxying to multiple servers.
  • Supports multiple server pools simultaneously.
  • Shard data automatically across multiple servers.
  • Implements the complete memcached ascii and redis protocol.
  • Easy configuration of server pools through a YAML file.
  • Supports multiple hashing modes including consistent hashing and distribution.
  • Can be configured to disable nodes on failures.
  • Observability via stats exposed on the stats monitoring port.
  • Works with Linux, *BSD, OS X and SmartOS (Solaris)

twemproxy's alternative

  • McRouter - A memcached protocol router for scaling memcached deployments, by Facebook

See all alternatives to twemproxy