SOFTWARE METHODS ANALYSIS OF OPTIMIZING THE LOCAL STATE OF DATA WEB APPLICATIONS MANAGEMENT
DOI:
https://doi.org/10.20535/kpisn.2022.1-2.260552Keywords:
web application, optimization, local state of data, Redux, MobXState-Tree, RecoilAbstract
Background. The use of various libraries often leads to a decrease in the speed of the web application and the complexity of the execution of the program code. The object of this study is the process of storing and managing the data of the client part of the web application, the subject of the research is the software methods of managing the local state of the data of the web application.
Objective. The goal of the article is the reduction in the data processing time of web applications relative to existing software methods.
Methods. The main idea of the proposed method is to use an atomic approach to the state of the web application data. Having an arbitrary entity, in the general state of the web application, a state fragment is created that is responsible only for this entity. Such a fragment is independent of other state fragments and can only work with the encapsulated entity. Using encapsulation, the configuration of an entity is passed to the React Context API as an object containing data and functions that modify it.
Results. The developed framework method was compared with popular state management libraries Redux, MobXState-Tree and Recoil. Comparing each of the test scenarios in a percentage ratio, an average decrease in program execution time by 17% was obtained.
Conclusions. The Redux, MobXState-Tree, and Recoil libraries were selected for the research of existing software methods. The analysis of methods was performed using the SonarQube utility. To evaluate the results of the software methods, the Google Chrome browser utility DevTools was used. The proposed optimized software method allows to reduce the data processing time and optimize the state management of web applications.
Keywords: web application, optimization, local state of data, Redux, MobXState-Tree, Recoil.
References
L.Оleshchenko, P. Burchak, “Аnalysis and optimization of methods for storing and processing data of web applications”, Прикладна математика та комп’ютинг. ПМК – 2021. Збірник тез доповідей XІV наукової конференції магістрантів та аспірантів, м. Київ, 17-19 листопада, 2021, с. 59-63.
M.Tajima, K. Goto, M. Toyama, “Non-procedural generation of web pages with nested infinite-scrolls in superSQL”, Proceedings of the 19th International Conference on Information Integration and Web-based Applications & Services, 2017, pp. 289-295. doi:10.1145/3151759.3151806.
T.M. Ahmed, C.P. Bezemer, T.H. Chen, A.E. Hassan, W. Shang, “Studying the effectiveness of application performance management (APM) tools for detecting performance regressions for web applications: an experience report”, IEEE/ACM 13th International Conference on Mining Software Repositories (MSR), 2016, pp. 1-12. IEEE.
S. Elbaum, S. Karre, G. Rothermel, “Improving web application testing with user session data”, 25th International Conference on Software Engineering IEEE Computer Society, 2003, pp. 49-59. doi:10.1109/ICSE.2003.1201187
R. Atterer, A.Schmidt, “Tracking the interaction of users with AJAX applications for usability testing”, Proceedings of the SIGCHI conference on Human factors in computing systems, 2007, рр.1347-1350.
Q. Zhongsheng, “Test case generation and optimization for user session-based web application testing”, Journal of Computers, 5(11), 2010, pp.1655-1662.
S. Souders, “High-performance web sites”, Communications of the ACM, 51(12), 2008, pp. 36-41.
Shailesh Shivakumar, P.V Suresh, “A Survey and Analysis of Techniques and Tools for Web Performance Optimization”, Journal of Information Organization, 2018, Vol. 8, № 2, pp. 31-57.
Chi, Xiaoni, Liu, Bichuan, Niu, Qi, Wu, Qiuxuan, “Web Load Balance and Cache Optimization Design Based Nginx under High-Concurrency Environment”, Third International Conference on Digital Manufacturing & Automation, 2012, рр.1029-1032.
Hui B.W., Chen M.R. and Yang D.P., “Research and application of performance test on Web application system”, Journal of Computer Applications, 31, 7 Nov. 2011, рр.1769-1772.
Downloads
Published
Issue
Section
License
Copyright (c) 2022 Любов Михайлівна Олещенко
This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under CC BY 4.0 that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work