Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Redis

You're reading from   Learning Redis Design efficient web and business solutions with Redis

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781783980123
Length 318 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vinoo Das Vinoo Das
Author Profile Icon Vinoo Das
Vinoo Das
Arrow right icon
View More author details
Toc

Cluster pattern – master-slave


This pattern of cluster is created for applications where reads are very frequent and writes are less frequent. Another condition necessary for this pattern to work is to have a limited size of data, or in other words, data capacity that can fit into the hardware provisioned for the master (the same hardware configuration is needed for the slaves too). Since the requirement is to cater to frequent reads, this pattern also has the capability to scale horizontally. Another point we have to keep in mind is that replication in slaves can have a time delay which can result in stale data getting served. The business requirement should be okay with that scenario.

The solution for this pattern would be to have all the writes done to the master, and have the slave cater to all the reads. The reads to slaves need to be load balanced so that performance can be met.

Redis provides an in-built capability to have master-slave configuration wherein the writes can be done to...

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 €18.99/month. Cancel anytime