Leibniz Transactions on Embedded Systems (Feb 2017)

Quantitative Analysis of Consistency in NoSQL Key-Value Stores

  • Liu, Si,
  • Ganhotra, Jatin,
  • Rahman, Muntasir Raihan,
  • Nguyen, Son,
  • Gupta, Indranil,
  • Meseguer, José

DOI
https://doi.org/10.4230/LITES-v004-i001-a003
Journal volume & issue
Vol. 4, no. 1
pp. 03:1 – 03:26

Abstract

Read online

The promise of high scalability and availability has prompted many companies to replace traditional relational database management systems (RDBMS) with NoSQL key-value stores. This comes at the cost of relaxed consistency guarantees: key-value stores only guarantee eventual consistency in principle. In practice, however, many key-value stores seem to offer stronger consistency. Quantifying how well consistency properties are met is a non-trivial problem. We address this problem by formally modeling key-value stores as probabilistic systems and quantitatively analyzing their consistency properties by both statistical model checking and implementation evaluation. We present for the first time a formal probabilistic model of Apache Cassandra, a popular NoSQL key-value store, and quantify how much Cassandra achieves various consistency guarantees under various conditions. To validate our model, we evaluate multiple consistency properties using two methods and compare them against each other. The two methods are: (1) an implementation-based evaluation of the source code; and (2) a statistical model checking analysis of our probabilistic model.

Keywords