Detailed Design of Chubby: Part II

Let’s understand the locking service, how to handle the problems that occur in it, and how to perform operations in Chubby.

Data consistency and concurrency problems

Let’s assume that thousands of clients are trying to access the nodes in the primary replica and constantly reading data from them and also writing data into them. In such a scenario, Chubby will face the following data consistency and concurrency issues.

  • How will it ensure that only one client can write a file at a time?

  • What happens when clients are reading from a file, and a write request comes in and updates the data?

This lesson addresses the above-mentioned concerns in Chubby's design. The table below summarizes the goals of this lesson.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.