McRouter vs twemproxy: What are the differences?
What is McRouter? A memcached protocol router for scaling memcached deployments, by Facebook. Mcrouter is a memcached protocol router for scaling memcached deployments. It's a core component of cache infrastructure at Facebook and Instagram where mcrouter handles almost 5 billion requests per second at peak.
What is twemproxy? A fast, light-weight proxy for memcached and redis, by Twitter. 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.
McRouter and twemproxy belong to "Memcached Tools" category of the tech stack.
Some of the features offered by McRouter are:
- Memcached ASCII protocol
- Connection pooling
- Multiple hashing schemes
On the other hand, twemproxy provides the following key features:
- Maintains persistent server connections.
McRouter and twemproxy are both open source tools. It seems that twemproxy with 9.1K GitHub stars and 1.66K forks on GitHub has more adoption than McRouter with 2.48K GitHub stars and 435 GitHub forks.