This book covers the use of Redis, an in-memory database/data structure server.

open all | close all

10.4 Summary

In this chapter, we revisited a variety of problems to look at what it’d take to scale
them to higher read volume, higher write volume, and more memory. We’ve used
read-only slaves, writable query slaves, and sharding combined with shard-aware
classes and functions. Though these methods may not cover all potential use cases for
scaling your particular problem, each of these examples was chosen to offer a set of
techniques that can be used generally in other situations.

If there’s one concept that you should take away from this chapter, it’s that scaling
any system can be a challenge. But with Redis, you can use a variety of methods to
scale your platform (hopefully as far as you need it to scale).

Coming up in the next and final chapter, we’ll cover Redis scripting with Lua.
We’ll revisit a few past problems to show how our solutions can be simplified and performance
improved with features available in Redis 2.6 and later.