Distributed systems rely on efficient inter-service communication, heavily impacted by data transmission costs. This study investigates alternative serialization formats, like Avro and MessagePack, to reduce data size compared to the common JSON format. We utilize a custom model to comprehensively assess the space efficiency of serialization formats across various data types. Our findings demonstrate that adopting alternative formats achieves a median reduction in serialized data exceeding 30 %. Notably, Avro exhibits exceptional efficiency, leading to reductions exceeding 83 % in specific scenarios. These insights empower developers to select optimal formats, potentially leading to significant improvements in data transfer speed, reduced bandwidth consumption, and enhanced scalability for handling larger data volumes within distributed systems.1
- Marii B., Zholubak I., (2022). Features of Development and Analysis of REST Systems, Advances in Cyber- Physical Systems, vol. 7, no. 2, pp. 121–129, DOI: 10.23939/acps2022.02.121.
- Weerasinghe S., Perera I., (2024). Optimized Strategy in Cloud-Native Environment for Inter-Service Communica- tion in Microservices, International Journal of Online and Biomedical Engineering, vol. 20, no. 01, pp. 40–57, DOI: 10.3991/ijoe.v20i01.44021.
- Proos D. P., Carlsson N., (2020). Performance Comparison of Messaging Protocols and Serialization Formats for Digi- tal Twins in IoV, 2020 IFIP Networking Conference (Net- working), Paris, France, pp. 10–18, [Electronic resource]. – Available at: https://ieeexplore.ieee.org/document/9142787 (Accessed: 03/22/2024).
- Buono V., Petrovic P., (2021). Enhance Inter-service Communication in Supersonic K-Native REST-based Java Microservice Architectures (Dissertation). urn https://urn.kb.se/resolve?urn=urn:nbn:se:hkr:diva-22135
- Morschel L., (2020). dCache – Efficient Message Encod- ing For Inter-Service Communication in dCache: Evalua- tion of Existing Serialization Protocols as a Replacement for Java Object Serialization, EPJ Web Conf., vol. 245, p. 05017, DOI: 10.1051/epjconf/202024505017.
- Friesel D., Spinczyk O., (2021). Data Serialization Formats for the Internet of Things, Electronic Communications of the EASST, vol. 20, pp. 1–4, DOI:https://doi.org/10.14279/tuj.eceasst.80.1134.
- Luis Á., Casares P., Cuadrado-Gallego J. J., Patricio M. A., (2021). PSON: A Serialization Format for IoT SensorNetworks, Sensors, vol. 21, no. 13, p. 4559, DOI: 10.3390/s21134559.
- Viotti J. C., Kinderkhedia M., (2022). A Survey of JSON- compatible Binary Serialization Specifications, DOI: 10.48550/arXiv.2201.02089.
- Kumar P. K., Agarwal R., Shivaprasad R., Sitaram D., Kalambur S., (2021). Performance Characterization of Communication Protocols in Microservice Applications, in International Conference on Smart Applications, Commu- nications and Networking (SmartNets), pp. 1–5, DOI: 10.1109/SmartNets50376.2021.9555425.
- Viotti J. C., Kinderkhedia M., (2022). Benchmarking JSON BinPack, DOI: 10.48550/ARXIV.2211.12799.
- Huang B., Tang Y., (2021). Research on optimization of real-time efficient storage algorithm in data information se- rialization, PLoS ONE, vol. 16, no. 12, p. e0260697, DOI: 10.1371/journal.pone.0260697.
- Ahmad T., Ars Z. A., Hofstee H. P., (2022). Benchmarking Apache Arrow Flight - A wire-speed protocol for data transfer, querying and microservices. arXiv, DOI: 10.48550/arXiv.2204.03032.
- Dauda A. B., Adam M. S., Mustapha M. A., Mabu A. M., and Mustafa S., (2020). Soap serialization effect on com- munication nodes and protocols, DOI: 10.48550/ARXIV.2012.12578.
- Evans D., (2020). Energy-Efficient Transaction Serializa- tion for IoT Devices, Journal of Computer Science Re- search, vol. 2, no. 2, pp. 1–16, DOI: 10.30564/jcsr.v2i2.1620.
- Viotti J. C., Kinderkhedia M., (2022). A Benchmark of JSON-compatible Binary Serialization Specifications, DOI: 10.48550/ARXIV.2201.03051.
- Protocol Buffers Version 3 Language Specification. [Elec- tronic resource]. – Available at:https://protobuf.dev/reference/protobuf/proto3-spec/ (Ac- cessed: 03/22/2024).
- Hummert, C., & Pawlaszczyk, D. (Eds.). (2022). Mobile Forensics–The File Format Handbook: Common File Formats and File Systems Used in Mobile Devices. Springer Nature. pp. 223–260, DOI: 10.1007/978-3-030- 98467-0_9.
- Wang X. and Xie Z., (2020). The Case For Alternative Web Archival Formats To Expedite The Data-To-Insight Cycle, in Proceedings of the ACM/IEEE Joint Conference on Digital Libraries in 2020, in JCDL ’20. New York, NY, USA: Association for Computing Machinery, pp. 177– 186, DOI: 10.1145/3383583.3398542.
- Li T., Shi H., Lu X., (2021). HatRPC: hint-accelerated thrift RPC over RDMA, in Proceedings of the Interna- tional Conference for High Performance Computing, Net- working, Storage and Analysis, in SC ’21. New York, NY, USA: Association for Computing Machinery, pp. 1–14. DOI: 10.1145/3458817.3476191.
- Sorokin K., (2023). Benchmark comparing various data serialization libraries, [Electronic resource]. – Available at: https://github.com/thekvs/cpp-serializers. (Accessed: 03/22/2024).
- Hamerski J. C., Domingues R. P., Moraes F. G., Amory A., (2018). Evaluating Serialization for a Publish- Subscribe Based Middleware for MPSoCs, in 25th IEEE International Conference on Electronics, Circuits and Sys- tems (ICECS), Bordeaux, France, pp. 773–776, DOI: 10.1109/ICECS.2018.8618003.
- Peltenburg J., Hadnagy Á., Brobbel M., Morrow R., Al- Ars Z., (2021). Tens of gigabytes per second JSON-to- Arrow conversion with FPGA accelerators, in 2021 ICFPT, pp. 1–9. DOI: 10.1109/ICFPT52863.2021.9609833.