Ensure Scalability and Replication

Lesson 36 of 25610 min readPremium lesson preview
In this lesson1 sections

Ensure Scalability and Replication

Add scalability

Scalability requires distributing data across multiple storage nodes. As demand changes, we must dynamically add or remove nodes. To achieve this, we partition data to balance the load across the system.

A simple placement rule hashes a key and takes its remainder modulo m, the number of nodes. The result x selects a node. With four nodes and a suitable hash, this can distribute key counts roughly evenly; it does not imply that each node receives exactly 25% of requests.

The following slides explain this process:

We get the hash of the key and take modulus with the number of nodes to find the node that should process the request
We get the hash of the key and take modulus with the number of nodes to find the node that should process the request

The rest of this lesson is for Premium members

Premium opens every lesson in this course, along with all questions and solutions on PracHub.