Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redis Essentials

You're reading from   Redis Essentials Harness the power of Redis to integrate and manage your projects efficiently

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781784392451
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Automatic sharding with twemproxy


A few techniques of implementing partitioning in Redis were previously presented, such as range partitioning, hash partitioning, presharding, and consistent hashing. This section will introduce a production-ready tool called twemproxy (pronounced "two-em-proxy"), which is also known as nutcracker. It was created by Twitter, released in 2012, and licensed under Apache License Version 2.0.

twemproxy is a fast and lightweight proxy for Redis and memcached protocols that implements sharding with support for multiple hashing modes, including consistent hashing. It also enables pipelining of requests and responses, and maintains persistent server connections to shard your data automatically across multiple servers. It works on Linux, *BSD, and Smart OS (Solaris). twemproxy is a great tool, and it will help us easily scale Redis horizontally. It has been used in production by companies such as Pinterest, Tumblr, Twitter, Vine, Wikimedia, Digg, and Snapchat.

This...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image