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:

Cluster pattern – master-master

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 ...

Get Learning Redis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.