Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Redis

You're reading from  Learning Redis

Product type Book
Published in Jun 2015
Publisher
ISBN-13 9781783980123
Pages 318 pages
Edition 1st Edition
Languages
Author (1):
Vinoo Das Vinoo Das
Profile icon Vinoo Das
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 ₹800/month. Cancel anytime}