Work

Comparison of JSON and MessagePack Serialization Performance on End-to-end latency over HTTP Protocol

Year: 2026
Type: article
Abstract: The increasing use of HTTP-based communication in modern service-oriented systems requires efficient data serialization formats to reduce communication latency and transmission overhead. This study compares the performance of JSON and MessagePack serialization formats in HTTP communication using the Go programming language. Performance was evaluated using synthetic datasets containing 10, 100, 1000, and 5000 records. The measured parameters included payload size, encoding latency, decoding latency, and End-to-end latency. The results show that MessagePack consistently outperformed JSON across all evaluated metrics. For the largest dataset containing 5000 records, MessagePack reduced End-to-end latency from 13.269 ms to 3.894 ms and generated a smaller payload size (335.87 KB) than JSON (350.53 KB). The performance advantage became more pronounced as the dataset size increased, particularly in decoding and End-to-end latency processes. These findings indicate that MessagePack is an efficient alternative to JSON for HTTP-based communication systems requiring low latency, bandwidth efficiency, and high-performance data exchange.
Language: English
Open Access status: gold
Estimated APC paid: $19
OpenAlex ID: W7167897739
FWCI: 3.756
Cites: 11
Cited by: 1
Related to: 10