Skip to main content
Log in

A performance evaluation of modular functions and state databases for Hyperledger Fabric blockchain systems

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

The performance of blockchains is a critical issue in various applications, such as digital currency transactions and balance checking. Blockchain system architectures such as the Hyperledger Fabric blockchain system (HFBS) have decentralized modular functions, where each module runs on an independent set of hosts. This study conducts a series of experiments to understand the performance limitations of each modular operation in a blockchain system architecture. Three studies involving software programs installed on cloud computing platforms are conducted to evaluate the transaction processing bottleneck. We present an improved modular configuration to enhance the cost efficiency of consortium blockchain systems. Although the CLI module consumes the largest processing resource, the scaled features make the traffic load distributed. The endorsing module is actually bottleneck due to inextensibility and state database. Experimental results obtained from the state database and system performance evaluation indicate that the performance of the state database is highly related to the read-type transactions of the HFBS but not to the write-type transactions. We argue that the performance bottleneck of read operations can be attributed to the fact that CouchDB cannot achieve high system performance under a large number of query operations. When querying the internal text in CouchDB, the system scans the entire data table. Thus, performance and scalability bottlenecks occur for CouchDB. Accordingly, we propose the adoption of MySQL Document Store, which uses a binary storage format similar to that of the state database of HFBS. The experimental results confirm that MySQL Document Store outperforms CouchDB and native state database. The consequent increase in the operational efficiency of the state database enhanced the operational performance of the HFBS. The practical contribution of this study is that its findings can serve as a reference for system structure design for developers and indicate suitable strategies that can be deployed by developers in blockchain systems.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14

Similar content being viewed by others

Availability of data and materials

The datasets generated and analyzed during the current study are available in the cloud storage https://drive.google.com/drive/folders/19AIEig6gl_2DnufX0NqCEVSgsfR-bIvc?usp=sharing.

References

  1. Roy C, Misra S, Pal S (2020) Blockchain-enabled safety-as-a-service for industrial IoT applications. IEEE Internet Things Mag 3(2):19–23. https://doi.org/10.1109/IOTM.0001.1900080

    Article  Google Scholar 

  2. Nakamoto S (2008) Bitcoin: a peer-to-peer electronic cash system. Bitcoin Whitepap. https://doi.org/10.2139/ssrn.3440802

    Article  Google Scholar 

  3. Wen YF, Huang CY (2022) Exploration of mined block temporarily holding and enforce fork attacks by selfish mining pool in proof-of-work blockchain systems. IEEE Access 10:61159–61174. https://doi.org/10.1109/ACCESS.2022.3181186

    Article  Google Scholar 

  4. Niu J, Wang Z, Gai F, Feng C (2020) Incentive analysis of Bitcoin-NG, revisited. Perform Evaluat 144:102144

    Article  Google Scholar 

  5. Hyperledger, A blockchain platform for the enterprise. From https://hyperledger-fabric.readthedocs.io/en/release-1.4/index.html, [Accessed: April 25th, 2020].

  6. Xu X, Sun G, Luo L, Cao H, Yu H, Vasilakos AV (2021) Latency performance modeling and analysis for Hyperledger Fabric blockchain network. Inf Process Manag 58(1):102436. https://doi.org/10.1016/j.ipm.2020.102436

    Article  Google Scholar 

  7. Hyperledger Fabric, State database cache for improved performance on CouchDB. From https://hyperledger-fabric.readthedocs.io/en/release-2.2/whatsnew.html#state-database-cache-for-improved-performance-on-couchdb, [Accessed: May 25th, 2021].

  8. Bhushan B, Sinha P, Sagayam KM, Andrew J (2021) Untangling blockchain technology: a survey on state of the art, security threats, privacy services, applications and future research directions. Comput Electr Eng 90:106897. https://doi.org/10.1016/j.compeleceng.2020.106897

    Article  Google Scholar 

  9. Khan KM, Arshad J, Khan MM (2020) Investigating performance constraints for blockchain based secure e-voting system. Future Gener Comput Syst 105:13–26. https://doi.org/10.1016/j.future.2019.11.005

    Article  Google Scholar 

  10. Gimenez-Aguilar M, Maria de Fuentes J, Gonzalez-Manzano L, Arroyo D (2021) Achieving cybersecurity in blockchain-based systems: a survey. Future Gener Comput Syst 124:91–118. https://doi.org/10.1016/j.future.2021.05.007

    Article  Google Scholar 

  11. Xiong W, Xiong L (2021) Data trading certification based on consortium blockchain and smart contracts. IEEE Access 9:3482–3496. https://doi.org/10.1109/ACCESS.2020.3047398

    Article  Google Scholar 

  12. Myung S, Lee JH (2020) Ethereum smart contract-based automated power trading algorithm in a microgrid environment. J Supercomput 76:4904–4914. https://doi.org/10.1007/s11227-018-2697-7

    Article  Google Scholar 

  13. Mendiboure L, Chalouf MA, Krief F (2020) Survey on blockchain-based applications in internet of vehicles. Comput Electr Eng 84:106646. https://doi.org/10.1016/j.compeleceng.2020.106646

    Article  Google Scholar 

  14. Chen X, Zhao S, Qi J, Jiang J, Song H, Wang C, Li TO, Chan THH, Zhang F, Luo X, Wang S, Zhang G, Cui H (2022) Efficient and DoS-resistant consensus for permissioned blockchains. Perform Evaluation 153:102244. https://doi.org/10.1016/j.peva.2021.102244

    Article  Google Scholar 

  15. Androulaki E, Barger A, Bortnikov V, Cachin C, Christidis K, Caro AD, Enyeart D, Ferris C, Laventman G, Manevich Y, Muralidharan S, Murthy C, Nguyen B, Sethi M, Singh G, Smith K, Sorniotti A, Stathakopoulou C, Vukolic M, Cocco SW, Yellick J (2018) Hyperledger Fabric: a distributed operating system for permissioned blockchains. In: Proceedings of the 13th ACM SIGOPS European Conference on Computer Systems, pp 1–15, https://doi.org/10.1145/3190508.3190538.

  16. Javaid H, Hu C, Brebner, G (2019) Optimizing validation phase of Hyperledger Fabric. In: Proceedings of the IEEE 27th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), pp 269–275, https://doi.org/10.1109/MASCOTS.2019.00038.

  17. Dinh TTA, Wang J, Chen G, Liu R, Ooi BC, Tan KL (2017) BLOCKBENCH: a framework for analyzing private blockchains. In: Proceedings of the ACM International Conference on Management of Data (SIGMOD’17), pp 1085–1100, https://doi.org/10.1145/3035918.3064033.

  18. Aldweesh A, Alharby M, Mehrnezhad M, Moorsel A (2021) The OpBench Ethereum opcode benchmark framework: design, implementation, validation and experiments. Perform Evaluat 146:102168. https://doi.org/10.1016/j.peva.2020.102168

    Article  Google Scholar 

  19. Melo C, Oliveira F, Dantas J, Araujo J, Pereira P, Maciel R, Maciel P (2022) Performance and availability evaluation of the blockchain platform Hyperledger Fabric. J Supercomput. https://doi.org/10.1007/s11227-022-04361-2

    Article  Google Scholar 

  20. Melo C, Dantas J, Pereira P, Maciel P (2021) Distributed application provisioning over Ethereum-based private and permissioned blockchain: availability modeling, capacity, and costs planning. J Supercomput 77(9):9615–9641. https://doi.org/10.1007/s11227-020-03617-z

    Article  Google Scholar 

  21. Fan C, Ghaemi S, Khazaei H, Musilek P (2020) Performance evaluation of blockchain systems: a systematic survey. IEEE Access 8:126927–126950. https://doi.org/10.1109/ACCESS.2020.3006078

    Article  Google Scholar 

  22. Gorenflo C, Lee S, Golab L, Keshav S (2019) Fastfabric: Scaling Hyperledger Fabric to 20 000 transactions per second. In: Proceedings of the IEEE International Conference of Blockchain Cryptocurrency, pp 455–463, https://doi.org/10.1002/nem.2099.

  23. Kuzlu M, Pipattanasomporn M, Gurses L, Rahman S (2019) Performance analysis of a Hyperledger Fabric blockchain framework: throughput, latency and scalability. In: Proceedings of the IEEE International Conference of Blockchain, pp 536–540, https://doi.org/10.1109/Blockchain.2019.00003.

  24. Zheng P, Zheng Z, Luo X, Chen X, Liu X (2018) A detailed and real-time performance monitoring framework for blockchain systems. In: Proceedings of the IEEE/ACM 40th International Conference on Software Engineering: Software Engineering in Practice Track (ICSE-SEIP), pp 134–143, https://doi.org/10.1145/3183519.3183546.

  25. Anderson JL, Chris J, Slate N (2010) CouchDB: the definitive guide. Tech. Rep.

  26. Thakkar P, Nathan S, Vishwanathan B (2018) Performance benchmarking and optimizing Hyperledger Fabric blockchain platform. In: Proceedings of the IEEE 26th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS) pp 264–276, https://doi.org/10.1109/MASCOTS.2018.00034.

  27. Dinh TTA, Liu R, Zhang M, Chen G, Ooi BC, Wang J (2018) Untangling blockchain: a data processing view of blockchain systems. IEEE Trans Knowl Data Eng 30(7):1366–1385. https://doi.org/10.1109/TKDE.2017.2781227

    Article  Google Scholar 

  28. Győrödi CA, Dumşe-Burescu DV, Zmaranda DR, Győrödi RŞ, Gabor GA, Pecherle GD (2020) Performance analysis of NoSQL and relational databases with CouchDB and MySQL for application’s data storage. Appl Sci 10(23):8524. https://doi.org/10.3390/app10238524

    Article  Google Scholar 

  29. Xu L, Chen L, Gao Z, Carranco L, Fan X, Shah N, Diallo N, Shi W (2020) Supporting blockchain-based cryptocurrency mobile payment with smart devices. IEEE Consum Electron Mag 9(2):26–33. https://doi.org/10.1109/MCE.2019.2953734

    Article  Google Scholar 

  30. Li K, Li H, Hou H, Li K, Chen Y (2017) Proof of vote: A high-performance consensus protocol based on vote mechanism & consortium blockchain. In: Proceedings of the High Performance Computing and Communications, pp 466–473, https://doi.org/10.1109/HPCC-SmartCity-DSS.2017.61.

  31. Khan D, Jung LT, Hashmani MA, Cheong MK (2022) Empirical performance analysis of hyperledger LTS for small and medium enterprises. Sensors 22(3):915. https://doi.org/10.3390/s22030915

    Article  Google Scholar 

  32. Nguyen MQ, Loghin D, Dinh TTA (2019) Understanding the scalability of Hyperledger Fabric. In: Proceedings of the First Workshop on Blockchain and Distributed Ledger, BCDL VLDB, https://doi.org/10.48550/arXiv.2107.09886.

  33. Nguyen TSL, Jourjon G, Potop-Butucaru M, Thai KL (2019) Impact of network delays on Hyperledger Fabric. In: Proceedings of the IEEE Conference Computer on Communications Workshops (INFOCOM WKSHPS’19), pp 222–227, https://doi.org/10.48550/arXiv.1903.08856.

  34. Yuan P, Zheng K, Xiong X, Zhang K, Lei L (2020) Performance modeling and analysis of a hyperledger-based system using GSPN. Comput Commun 153:117–124. https://doi.org/10.1016/j.comcom.2020.01.073

    Article  Google Scholar 

  35. Shalaby S, Abdellatif AA, Al-Ali A, Mohamed A, Erbad A, Guizani M (2020) Performance evaluation of Hyperledger Fabric. In: Proceedings of the IEEE International Conference on Informatics, IoT, and Enabling Technologies (ICIoT’20), pp 608–613, https://doi.org/10.1109/ICIoT48696.2020.9089614.

  36. Apache, Configuration Quick Reference—Apache CouchDB. From Configuration Quick Reference — Apache CouchDB® 3.1 Documentation, [Accessed May 19th, 2021].

  37. Oracle, MySQL 8.0 Release Notes. From https://dev.mysql.com/doc/relnotes/mysql/8.0/en/, [Accessed May 17th, 2021].

Download references

Funding

This work was supported in part by the Ministry of Science and Technology (MOST), Taiwan, under Grant MOST 111-2410-H-305-023- and National Taipei University, Taiwan, under Grant 2022-NTPU-ORDA-02.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yean-Fu Wen.

Ethics declarations

Conflict of interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Ethical approval

No participation of humans takes place in this implementation process.

Human and animal rights

No violation of human and animal rights is involved.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Wen, YF., Hsu, CM. A performance evaluation of modular functions and state databases for Hyperledger Fabric blockchain systems. J Supercomput 79, 2654–2690 (2023). https://doi.org/10.1007/s11227-022-04762-3

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11227-022-04762-3

Keywords

Navigation