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. Fast and 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.

Features

  • Observability via stats exposed on the stats monitoring port
  • Works with Linux, BSD, OS X and SmartOS (Solaris)
  • In twemproxy, all the memory for incoming requests and outgoing responses is allocated in mbuf
  • Twemproxy can be configured through a YAML file specified by the -c or --conf-file command-line argument on process start
  • The configuration file is used to specify the server pools and the servers within each pool that twemproxy manages
  • Twemproxy exposes stats at the granularity of server pool and servers per pool through the stats monitoring port

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow twemproxy

twemproxy Web Site

Other Useful Business Software
Build on Google Cloud with $300 in Free Credit Icon
Build on Google Cloud with $300 in Free Credit

New to Google Cloud? Get $300 in free credit to explore Compute Engine, BigQuery, Cloud Run, Vertex AI, and 150+ other products.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query exabytes in BigQuery, or build AI apps with Vertex AI and Gemini. Once your credits are used, keep building with 20+ products with free monthly usage, including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. Sign up to start building right away.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of twemproxy!

Additional Project Details

Operating Systems

BSD, Linux, Mac

Programming Language

C

Related Categories

C HTTP Servers, C Web Services Software, C Observability Tool

Registered

2021-05-28