Multi-strategy AJAX and event-driven state management for responsive web applications
DOI:
https://doi.org/10.20535/2786-8729.7.2025.341787Keywords:
Server-Side Processing, AJAX integration, Django framework, JavaScript, dynamic data visualization, DataTables, single-page application, RESTful API, software architecture, performance optimizationAbstract
Research addresses engineering high-performance, responsive web apps for complex data and real-time user interaction. The study focuses on the client-server integration in a monolithic Django pattern/architecture, specifically the orchestration of asynchronous client technologies, for instance, AJAX, JavaScript, and server logic, for instance, Python/Django. The goal is to design, implement, and validate a Unified AJAX Integration Framework. This framework enables seamless real-time data exchange, dynamic updates, and complex state management for diverse components: interactive tables, multi-dimensional charts, multi-step forms, and the Checkout Session Container. Django framework, jQuery for AJAX, and JavaScript libraries (Chart.js, DataTables) are included as materials. Methods applied involve systematic software architecture design, asynchronous programming analysis, RESTful API development, and empirical performance benchmarking of data-loading and state management strategies. Scientific contribution is twofold. Firstly, Multi-Strategy AJAX Integration Model is formalized as a decision framework that dynamically selects between server-side rendering (django-tables2), client-side rendering (vanilla jQuery/DataTables), and a hybrid AJAX-Datatable approach based on data complexity, volume, and interaction. Secondly, Event-Driven State Management System as a robust design for distributed, session-based UI components using a centralized AJAX action dispatcher and a universal state synchronization function. This ensures data consistency across independent page components and eliminates race conditions in concurrent operations. As a result, the framework achieved a significant reduction in server load and perceived latency. The benchmarked components consistently showed sub-200ms response times for datasets over 10,000 records. The cart system handled over 1,000 consecutive operations without any state desynchronization.
References
Gat, M. Jamil, I. Wingdes, T. Widayanti, T. Wijaya, and Kusrini, "Using Server-side Processing Techniques to Optimize Data Presentation Responsiveness," 2024 6th International Conference on Cybernetics and Intelligent System, ICORIS 2024, pp. 1–6, 2024, https://doi.org/10.1109/ICORIS63540.2024.10903755.
R. Siregar, H. Lubis, and I. Lubis, "Adaptive Categorical Dictionary Implementation for Payload Reduction in AJAX Server-side DataTables Communication," J. Comput.Sci., Inf. Technol. Telecommun. Eng., vol. 6, no. 2, pp. 908-915, 2025.
R. Vyas, "Comparative Analysis on Front-End Frameworks for Web Applications," Int. J. Res. Appl. Sci. Eng. Technol. (IJRASET), vol. 10, no. VII, pp. 298-307, 2022, https://doi.org/10.22214/ijraset.2022.45260.
F. Fuior, "Introduction in Python frameworks for web development," Rom. J. Inf.Technol. Autom. Control, vol. 31, no. 3, pp. 97-108, 2021, https://doi.org/10.33436/v31i3y202108.
M. Leithner and D. E. Simos, "XIEv: dynamic analysis for crawling and modeling of web applications," in Proc. 35th Annu. ACM Symp. Appl. Comput. (SAC ‘20), 2020, pp.2201-2210, https://doi.org/10.1145/3341105.3373885.
D. R. Anekar, S. Suryavanshi, D. Auti, P. Lokhande, and A. Deshmukh, "Farmer’s Assistant using AI Voice Bot," Int. J. Adv. Res. Sci., Commun. Technol. (IJARSCT), vol. 3, no. 2, pp. 224-230, 2023, https://doi.org/10.48175/IJARSCT-9121.
V. Gagliardi, "Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends," 2021, Berkeley, CA: Apress PDF e-Book. ISBN 978-1-4842-7144-5, https://doi.org/10.1007/978-1-4842-7144-5.
S. Gokhale, A. Turcotte, and F. Tip, "Automatic migration from synchronous to asynchronous JavaScript APIs (Artifact)," Proc. ACM Program. Lang., vol. 5, no. OOPSLA, pp. 1-27, 2021, Art. no. 160, https://doi.org/10.5281/zenodo.5502210.
E. Arteca, F. Tip, and M. Schäfer, "Enabling Additional Parallelism in Asynchronous JavaScript Applications," in 35th Eur. Conf. Object-Oriented Program. (ECOOP 2021), vol. 194, Dagstuhl, Germany: Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021, pp. 7:1-7:28, https://doi.org/10.4230/LIPIcs.ECOOP.2021.7.
A. Shukla, "Modern JavaScript Frameworks and JavaScript’s Future as a Full-Stack Programming Language," J. Artif. Intell. Cloud Comput., vol. 2, pp. 1-9, 2023, https://doi.org/10.47363/JAICC/2023(2)144.
A. Gómez, M. Iglesias-Urkia, L. Belategi, et al., "Model-driven development of asynchronous message-driven architectures with AsyncAPI," Softw. Syst. Model., vol. 21, pp. 1583-1611, 2022, https://doi.org/10.1007/s10270-021-00945-3.
A. Chandiramani and P. Singh, "Management of Django Web Development in Python," J. Manag. Serv. Sci., vol. 1, no. 2, pp. 1-17, 2021, https://doi.org/10.54060/JMSS/001.02.005.
J. Du, "The Research of User Behavior Analysis System Based on Collaborative Filtering Algorithm," in Proc. 2nd Int. Conf. Artif. Intell., Syst. Netw. Secur. (AISNS’24), 2025, pp. 197-200, https://doi.org/10.1145/3714334.3714368.
A. Tarnovetskyi and V. Demidov, "Using modern web technologies to construct web portals of educational and scientific organization," in Geoinformatics: Theoretical and Applied Aspects 2020, May 2020, Volume 2020, pp. 1-5, https://doi.org/10.3997/2214-4609.2020geo140.
R. Praveen, S. Gowtham, M. Parthiban, P. Sai Charan, N. Seenu, and RM. Kuppan Chetty, "DYNAMIC DASHBOARD AND MAIL UPDATE FOR ROBOTIC SYSTEM IN INDUSTRY 4.0," in 3rd International Conference on Robotics Automation and Non-Destructive Evaluation, Chennai, India, 23 April 2022, https://doi.org/10.13180/RANE.2022.23.04.06.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Information, Computing and Intelligent systems

This work is licensed under a Creative Commons Attribution 4.0 International License.