In this technique, the system’s nodes work together to process and store data, and decisions are made based on the agreement of a majority of these nodes

Assumptions

- Number of replicas - Write quorum. For a write operation to be considered as successful, write operation must be acknowledged from replicas. - Read quorum. A read operation is considered successful if atleast replicas respond to the read request.

In the following figure, if , it means that the coordinator must receive at least one acknowledgement for the write operation to be considered as successful.

ACK=acknowledgement. Coordinator acts as proxy between the client and the nodes

The configuration of , and determines the tradeoff between consistency and latency. For instance, if or , the operation is performed quickly since the coordinator only needs to wait for a response from only one of the replicas, but the consistency of the system will take a hit.

Different quorum configurations

  • If and , the system is optimized for a fast write
  • If and , the system is optimized for a fast read
  • If , strong consistency is guaranteed because there must be at least one overlapping node that has the latest data to ensure consistency
  • If , strong consistency is not guaranteed

Sources