Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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-master


This pattern of cluster is created for applications where read and writes are very frequent and the state across the nodes needs to be the same at any given point in time.

From a nonfunctional requirement perspective, following behaviors can be seen in a master-master setup:

Getters and setters in master–master cluster pattern

Performance

The performance for reads and writes are very high in this kind of setup. Since the requests are load balanced across the master nodes, the individual load on a master reduces, thus resulting in better performance. As Redis inherently does not have this capability, this has to be provided outside the box. A write replicator and read load balancer kept in front of the master-master cluster will do the trick. What we are doing here is that, if there is a write request, the data will be written to all the masters, and all the read requests can be split among any of the master nodes, since the data in all the master nodes is in a...

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