Quantitative Assessment of Overhead in GraphQL Subscriptions Compared to WebSocket Protocol under Load
Programmnaya Ingeneria · 18.05.2026 · 17 (5) · 253-260
DOI: 10.17587/prin.17.253-260 ↗Kurz gefasst
Studienprotokoll in der Zeitschrift Programmnaya Ingeneria, erschienen am 18.05.2026. Verfasst von S. N. Kondaurov und 1 weiteren Autor:innen.
Abstract (Originalsprache)
The study focuses on an empirical comparison of the performance between the low-level WebSocket transport and the high-level GraphQL Subscriptions abstraction. The paper details the testbed architecture deployed in a cloud environment (2 vCPU, 4 GB RAM) and a load testing methodology involving scenarios with up to 10,000 virtual users. A comprehensive analysis of metrics such as round-trip time (RTT), handshake duration, and server resource consumption was conducted. The experimental results demonstrate a significant performance gap between the technologies under peak loads. It was found that WebSocket provides twice the message delivery speed (≈ 216 ms vs ≈ 409 ms) while consuming 4.3 times less CPU time. A key finding of the study is the identification of a technological saturation threshold for GraphQL Subscriptions. Under high load, the GraphQL server reached its resource limit, resulting in a marginal connection growth of less than 0.05 %, whereas WebSocket connections scaled by 791 %. This saturation is further evidenced by a critical degradation of the socket wait time (ws_connecting) for GraphQL, reaching ≈ 17.3 s compared to ≈ 0.54 s for WebSocket. The paper concludes that there is a fundamental architectural trade-off between low-level performance and development convenience, caused by the computational complexity of the application-level logic in GraphQL.
Zitieren
APA
Kondaurov, S. N., & Gosudarev, I. B. (2026). Quantitative Assessment of Overhead in GraphQL Subscriptions Compared to WebSocket Protocol under Load. Programmnaya Ingeneria, 17(5), 253-260. https://doi.org/10.17587/prin.17.253-260
Vancouver
Kondaurov SN, Gosudarev IB. Quantitative Assessment of Overhead in GraphQL Subscriptions Compared to WebSocket Protocol under Load. Programmnaya Ingeneria. 2026;17(5):253-260. doi:10.17587/prin.17.253-260
BibTeX
@article{Kondaurov2026,
author = {Kondaurov, S. N. and Gosudarev, I. B.},
title = {Quantitative Assessment of Overhead in GraphQL Subscriptions Compared to WebSocket Protocol under Load},
journal = {Programmnaya Ingeneria},
year = {2026},
volume = {17},
number = {5},
pages = {253--260},
doi = {10.17587/prin.17.253-260}
}
EUVIMED