awesome-redis-optimizations
awesome-redis-optimizations copied to clipboard
A curated list of awesome optimizations that you can do to improve your redis deployment (both client side and server side).
Awesome Redis Optimizations 
A curated list of awesome guides, case studies, tutorials and tools for optimizing your redis deployment
Contents
- Guides/Tools/Case Studies
- Memory Optimization with Hashes
- Pipelining in Redis
- Reduce Reads Techniques
- Low Memory, Fast Computation, the Bitsets
- Lua Scripting, Kill Latency with Server Side Computation
- Tools/Repositories
Memory Optimization With Hashes
- RedisLabs' Advice - Advice from the home of Redis
- Instagram's Key-Value pairs - How Instagram team stored 300 million key value pairs in redis with least memory
- Redis hash-max-ziplist-entries configuration - How hash-max-ziplist-entries configuration affects storage space for hashes
Pipelining in Redis
- Concept of Pipelining - Get the most out of your single redis call
Reduce Reads Techniques
- Avoids duplicate reads in case of Cache Stampede (by DoorDash) - Reduce load on redis by maintaing application level cache and how to avoid duplicate reads in case of Cache Stampede.
Low Memory, Fast Computation, the Bitsets
- Realtime Metrics with low memory footprint - How to organize data in bitsets to achieve computation of some simple realtime metrics
Lua Scripting, Kill Latency with Server Side Computation
- Lua's Guide for Redis Users - Achieve server side computation in Redis
- Example Lua Scripts - Basic small Lua scripts for starters
Tools/Repositories
- rdbtools - Memory profiling for redis data and a parser for dump.rdb files
- twemproxy - A fast, light-weight proxy for memcached and redis, helps to reduce 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.