Please use this identifier to cite or link to this item: https://er.chdtu.edu.ua/handle/ChSTU/9023
Title: Reactive tracing of behavioural scenarios in single-page applications by integrating Bun-based WebSocket channels and OpenTelemetry
Other Titles: Реактивне трасування поведінкових сценаріївв односторінкових додатках через інтеграцію Bun-базованих WebSocket-каналів та OpenTelemetry
Authors: Ananchenko, Vladyslav
Lotyuk, Yuriy
Ананченко, Владислав
Лотюк, юрій
Keywords: time delays;asynchrony;binary serialisation;event processing;HTTP-JSON;telemetry architecture;часові затримки;асинхронність;бінарна серіалізація;обробка подій;телеметрична архітектура
Issue Date: 2025
Publisher: Вісник Черкаського державного технологічного університету
Abstract: The purpose of this study was to evaluate the time efficiency of reactive tracing of user behaviour in single-page applications by integrating Bun-based WebSocket channels with OpenTelemetry. The methodology included creating a prototype application in React, high-frequency monitoring and aggregation of SCADA data, building and optimising a 64-32-16 neural network in TensorFlow, simulations in MATLAB/Simscape, and statistical analysis using Theil-Sen regression, Seasonal and Trend decomposition, Brown-Forsyth test, two-factor analysis of variance, bootstrap permutation, Dickey-Fuller test, and Kaplan-Meier survival curves. The findings revealed that the combination of Hypertext Transfer Protocol with binary serialisation in Protocol Buffers format provided the lowest event detection latency, which averaged 45.09 milliseconds, and the lowest transmission latency, which reached only 62.83 milliseconds in the form-filling scenario. At the same time, the combination of websockets with JavaScript Object Notation text format demonstrated the highest latency, with an average event detection rate of 69.99 milliseconds and transmission latency of up to 88.1 milliseconds, as well as the highest variability in response time. Statistical analysis confirmed the substantial differences between all configurations: the results of the analysis of variance revealed extremely high F-statistics for both indicators with a p-value of less than 0.000001, indicating that both the protocol and the serialisation format have a real impact on the time efficiency. Additionally, the study found that the event detection delay and the transmission delay were independent variables, as the correlation coefficients stayed close to zero in all cases. Thus, the most suitable configuration for high-frequency telemetry systems was a hypertext protocol with a binary Protocol Buffers format, which ensures not only minimal time delays but also stability in loaded environments. The practical significance of the findings lies in the possibility of using them by performance engineers, front-end architects, and developers of monitoring systems to create efficient and scalable solutions focused on analysing user behaviour in real time.
Метою дослідження було оцінити часову ефективність реактивного трасування поведінки користувача в односторінкових додатках через інтеграцію WebSocket-каналів на базі Bun з OpenTelemetry. Методологія включала створення прототипу додатка на React, високочастотний моніторинг і агрегування SCADA-даних, побудову та оптимізацію нейромережі 64-32-16 у TensorFlow, симуляції в MATLAB/Simscape, а також статистичний аналіз із використанням регресії Theil-Sen, Seasonal and Trend-декомпозиції, тесту Брауна-Форсайта, двофакторного аналізу варіантів, бутстреп-перестановки, критерія Дікі-Фуллера та кривих виживання Каплана-Мейєра. Результати показали, що комбінація протоколу гіпертекстової передачі із бінарною серіалізацією у форматі Protocol Buffers забезпечила найнижчу затримку виявлення подій, яка становила в середньому 45,09 мілісекунди, та найнижчу затримку передачі, що сягала лише 62,83 мілісекунди у сценарії заповнення форм. У той же час комбінація вебсокетів із текстовим форматом JavaScript Object Notation продемонструвала найвищі показники затримки, із середнім значенням виявлення подій 69,99 мілісекунди та затримкою передачі до 88,1 мілісекунди, а також найбільшу варіативність у часі реакції. Статистичний аналіз підтвердив суттєві відмінності між усіма конфігураціями: результати дисперсійного аналізу виявили надзвичайно високі значення F-статистики для обох показників із рівнем значущості p меншим за 0,000001, що свідчить про реальний вплив як протоколу, так і формату серіалізації на часову ефективність. Додатково встановлено, що затримка виявлення подій та затримка передачі були незалежними величинами, оскільки коефіцієнти кореляції в усіх випадках залишалися близькими до нуля. Таким чином, оптимальною конфігурацією для високочастотних телеметричних систем був гіпертекстовий протокол із бінарним форматом Protocol Buffers, що забезпечує не лише мінімальні часові затримки, але й стабільність у навантажених середовищах. Практична значимість результатів полягає в можливості використання їх інженерами з продуктивності, архітекторами фронтенду та розробниками моніторингових систем для створення ефективних та масштабованих рішень, орієнтованих на аналіз поведінки користувачів у режимі реального часу.
URI: https://er.chdtu.edu.ua/handle/ChSTU/9023
ISSN: 2306-4412 (print)
2708-6070 (online)
DOI: https://doi.org/10.62660/bcstu/4.2025.143
Volume: 30
Issue: 4
First Page: 143
End Page: 154
Appears in Collections:том 30, №4/2025

Files in This Item:
File Description SizeFormat 
13.pdf409.78 kBAdobe PDFThumbnail
View/Open
зміст.pdf143.09 kBAdobe PDFThumbnail
View/Open
титул.pdf202.08 kBAdobe PDFThumbnail
View/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.