Skip to main content

Data Consistency Properties of Document Store as a Service (DSaaS): Using MongoDB Atlas as an Example

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 11135))

Abstract

Document-oriented database systems, also known as document stores, are attractive for building modern web applications where the speed of development and deployment are critical, especially due to the prevalence of data in document-structured formats such as JSON and XML. MongoDB Atlas is a hosted offering of MongoDB as a Service, which is easy to set up, operate, and scale in the cloud. Like many NoSQL stores, MongoDB Atlas allows users to accept possible temporary inconsistency among the replicas, as a trade-off for lower latency and higher availability during partitions. In this work, we describe an empirical study to quantify the amount of inconsistency observed in data that is held in MongoDB Atlas.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://www.mongodb.com/cloud/atlas/.

  2. 2.

    https://aws.amazon.com/ec2/.

  3. 3.

    https://aws.amazon.com/simpledb/.

  4. 4.

    https://aws.amazon.com/s3.

  5. 5.

    https://azure.microsoft.com/en-au/services/storage/tables/.

  6. 6.

    https://azure.microsoft.com/en-au/services/storage/blobs/.

  7. 7.

    https://cloud.google.com/appengine/.

References

  1. Read preference - mongodb manual. https://docs.mongodb.com/manual/core/read-preference/. Accessed 02 June 2018

  2. Write concern - mongodb manual. https://docs.mongodb.com/manual/reference/write-concern/. Accessed 02 June 2018

  3. Write concern for replica sets - mongodb manual. https://docs.mongodb.com/manual/core/replica-set-write-concern/. Accessed 02 June 2018

  4. Abadi, D.: Consistency tradeoffs in modern distributed database system design: cap is only part of the story. Computer 45(2), 37–42 (2012)

    Article  Google Scholar 

  5. Alabdulkarim, Y., Almaymoni, M., Ghandeharizadeh, S.: Polygraph. Technical report 2017-02, Database Laboratory, Computer Science Department, University of Southern California (2017)

    Google Scholar 

  6. Bailis, P., Venkataraman, S., Franklin, M.J., Hellerstein, J.M., Stoica, I.: Probabilistically bounded staleness for practical partial quorums. Proc. VLDB Endow. 5(8), 776–787 (2012)

    Article  Google Scholar 

  7. Bailis, P., Venkataraman, S., Franklin, M.J., Hellerstein, J.M., Stoica, I.: Quantifying eventual consistency with PBS. VLDB J. 23(2), 279–302 (2014)

    Article  Google Scholar 

  8. Bermbach, D.: Benchmarking eventually consistent distributed storage systems (2014)

    Google Scholar 

  9. Bermbach, D., Tai, S.: Eventual consistency: how soon is eventual? An evaluation of Amazon S3’s consistency behavior. In: Proceedings of the 6th Workshop on Middleware for Service Oriented Computing, p. 1. ACM (2011)

    Google Scholar 

  10. Bermbach, D., Tai, S.: Benchmarking eventual consistency: lessons learned from long-term experimental studies. In: 2014 IEEE International Conference on Cloud Engineering (IC2E), pp. 47–56. IEEE (2014)

    Google Scholar 

  11. Bermbach, D., Wittern, E., Tai, S.: Cloud Service Benchmarking. Springer, Heidelberg (2017). https://doi.org/10.1007/978-3-319-55483-9

    Book  Google Scholar 

  12. Brewer, E.A.: Towards robust distributed systems. In: PODC, vol. 7 (2000)

    Google Scholar 

  13. DeCandia, G., et al.: Dynamo: Amazon’s highly available key-value store. In: ACM SIGOPS Operating Systems Review, vol. 41, pp. 205–220. ACM (2007)

    Google Scholar 

  14. Fekete, A.: Consumer-view of consistency properties: definition, measurement, and exploitation. https://www2.ucsc.edu/papoc-2016/Fekete-PaPoC-London.pdf. Accessed 03 June 2018

  15. Golab, W., Rahman, M.R., AuYoung, A., Keeton, K., Li, X.S.: Eventually consistent: not what you were expecting? Queue 12(1), 30 (2014)

    Google Scholar 

  16. Golab, W., Rahman, M.R., AuYoung, A., Keeton, K., Gupta, I.: Client-centric benchmarking of eventual consistency for cloud storage systems. In: 2014 IEEE 34th International Conference on Distributed Computing Systems (ICDCS), pp. 493–502. IEEE (2014)

    Google Scholar 

  17. Lu, H., et al.: Existential consistency: measuring and understanding consistency at Facebook. In: Proceedings of the 25th Symposium on Operating Systems Principles, pp. 295–310. ACM (2015)

    Google Scholar 

  18. Shukla, D., et al.: Schema-agnostic indexing with Azure DocumentDB. Proc. VLDB Endow. 8(12), 1668–1679 (2015)

    Article  Google Scholar 

  19. Wada, H., Fekete, A., Zhao, L., Lee, K., Liu, A.: Data consistency properties and the trade-offs in commercial cloud storage: the consumers’ perspective. In: CIDR, vol. 11, pp. 134–143 (2011)

    Google Scholar 

Download references

Acknowledgments

This research forms part of the Australian Research Council (ARC) Linkage Project LP160100883. We thank Gary Little, Shahram Ghandeharizadeh, and Raghunath Nambiar for their comments on this paper. We also thank AWS Cloud Research Credits for their support.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chenhao Huang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Huang, C., Cahill, M., Fekete, A., Röhm, U. (2019). Data Consistency Properties of Document Store as a Service (DSaaS): Using MongoDB Atlas as an Example. In: Nambiar, R., Poess, M. (eds) Performance Evaluation and Benchmarking for the Era of Artificial Intelligence. TPCTC 2018. Lecture Notes in Computer Science(), vol 11135. Springer, Cham. https://doi.org/10.1007/978-3-030-11404-6_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-11404-6_10

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-11403-9

  • Online ISBN: 978-3-030-11404-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics