Skip to main content

Analysis of Node.js Application Performance Using MongoDB Drivers

  • Conference paper
  • First Online:
Information Technology and Systems (ICITS 2020)

Abstract

At the last few years, the usage of NoSQL databases has increased, and consequently, the need for integrating with different programming languages. In that way, database drivers provide an API to perform database operations, which may impact on the performance of applications. In this article, we present a comparative study between two main drivers solutions to MongoDB in Node.js, through the evaluation of CRUD tests based on quantitative metrics (time execution, memory consumption, and CPU usage). Our results show which, under quantitative analysis, the MongoClient driver has presented a better performance than Mongoose driver in the considered scenarios, which may imply as the best alternative in the development of Node.js applications.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 259.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 329.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

Institutional subscriptions

Notes

  1. 1.

    https://mongodb.github.io/node-mongodb-native/.

  2. 2.

    https://mongoosejs.com/.

  3. 3.

    https://www.mongodb.com/.

  4. 4.

    http://bsonspec.org/.

  5. 5.

    https://mongodb.github.io/node-mongodb-native/index.html.

  6. 6.

    https://mongoosejs.com/.

  7. 7.

    https://github.com/wahengchang/js-meter.

References

  1. Ward, J.S., Barker, A.: Undefined by data: a survey of big data definitions. arXiv preprint arXiv:1309.5821 (2013)

  2. González-Aparicio, M.T., Younas, M., Tuya, J., Casado, R.: A new model for testing CRUD operations in a NoSQl database. In: 2016 IEEE 30th International Conference on Advanced Information Networking and Applications (AINA), pp. 79–86 (2016)

    Google Scholar 

  3. Han, J., Haihong, E., Le, G., Du, J.: Survey on NoSQL database. In: 2011 6th International Conference on Pervasive Computing and Applications, pp. 363–366. IEEE (2011)

    Google Scholar 

  4. Rafique, A., Van Landuyt, D., Lagaisse, B., Joosen, W.: On the performance impact of data access middleware for NoSQL data stores a study of the trade-off between performance and migration cost. IEEE Trans. Cloud Comput. 6(3), 843–856 (2018)

    Article  Google Scholar 

  5. Jung, M., Youn, S., Bae, J., Choi, Y.: A study on data input and output performance comparison of MongoDB and PostgreSQL in the big data environment. In: 2015 8th International Conference on Database Theory and Application (DTA), pp. 14–17 (2015)

    Google Scholar 

  6. Patil, M.M., Hanni, A., Tejeshwar, C.H., Patil, P.: A qualitative analysis of the performance of MongoDB vs MySQL database based on insertion and retriewal operations using a web/android application to explore load balancing—sharding in MongoDB and its advantages. In: 2017 International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), pp. 325–330 (2017)

    Google Scholar 

  7. Ongo, G., Kusuma, G.P.: Hybrid database system of MySQL and MongoDB in web application development. In: 2018 International Conference on Information Management and Technology (ICIMTech), pp. 256–260 (2018)

    Google Scholar 

  8. Kanade, A., Gopal, A., Kanade, S.: A study of normalization and embedding in MongoDB. In: 2014 IEEE International Advance Computing Conference (IACC), pp. 416–421. IEEE (2014)

    Google Scholar 

  9. Mohamed, M., Altrafi, O.G., Ismail, M.O.: Relational vs. NoSQL databases: a survey. Int. J. Comput. Inf. Technol. (IJCIT) 3, 598 (2014)

    Google Scholar 

  10. Ramesh, D., Khosla, E., Bhukya, S.N.: Inclusion of e-commerce workflow with NoSQL DBMS: Mongodb document store. In: 2016 IEEE International Conference on Computational Intelligence and Computing Research (ICCIC), pp. 1–5 (2016)

    Google Scholar 

  11. Membrey, P., Plugge, E., Hawkins, D.: The Definitive Guide to MongoDB: The NoSQL Database for Cloud and Desktop Computing. A press, New York (2011)

    Google Scholar 

  12. Lutu, P.: Big data and NoSQL databases: new opportunities for database systems curricula. In: Proceedings of the 44th Annual Southern African Computer Lecturers’ Association (SACLA), pp. 204–209 (2015)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Leandro Ungari Cayres .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Cayres, L.U., de Lima, B.S., Garcia, R.E., Correia, R.C.M. (2020). Analysis of Node.js Application Performance Using MongoDB Drivers. In: Rocha, Á., Ferrás, C., Montenegro Marin, C., Medina García, V. (eds) Information Technology and Systems. ICITS 2020. Advances in Intelligent Systems and Computing, vol 1137. Springer, Cham. https://doi.org/10.1007/978-3-030-40690-5_21

Download citation

Publish with us

Policies and ethics