Alexandria Engineering Journal (Dec 2022)

Multidirectional Replication for Supporting Strong Consistency, Low Latency, and High Throughput

  • Furat F. Altukhaim,
  • Almetwally M. Mostafa,
  • Ahmed E. Youssef

Journal volume & issue
Vol. 61, no. 12
pp. 11485 – 11510

Abstract

Read online

Many replication protocols, which can be used in various distributed applications such as distributed databases, collaborative applications, and distributed agenda, sacrifice strong consistency to achieve lower latency and higher throughput. This paper describes the design, specification, implementation, and evaluation of Unidirectional and Multidirectional Replication, which challenge this inflexible tradeoff. By propagating the resulting states parallelly, as in Primary-Backup Replication, but with fewer messages, while having a head that processes write requests and a tail that processes read requests, as in Chain Replication, Unidirectional Replication improves the latency and throughput of the two protocols without compromising strong consistency. To improve the utilization of computing and communication resources of Unidirectional Replication, Multidirectional Replication divides objects into several logical shards and runs an instance of Unidirectional Replication on each logical shard. We have accomplished the proposed protocols in three steps: (1) merging Primary-Backup Replication and Chain Replication into Unidirectional Replication; (2) merging Unidirectional Replication and logical sharding into Multidirectional Replication; and (3) implementation and evaluation. Empirical results show that, compared to Primary-Backup Replication, when handling read requests with write-read conflicts, Unidirectional Replication shows an improvement of roughly 66% in latency; compared to Chain Replication, when handling write requests with basic settings, Unidirectional Replication shows an improvement of roughly 59% in throughput; and compared to Unidirectional Replication, Multidirectional Replication shows an improvement of 150% in the number of clients that it can handle.

Keywords