Serialization Trade-Offs in Distributed Systems: A Comparative Analysis of JSON, Protocol Buffers, and FlatBuffers Under Varying Width and Nesting Depth
| dc.contributor.author | Haberlah, Johannes | |
| dc.contributor.author | Linke, Knut | |
| dc.date.accessioned | 2026-08-12T10:44:06Z | |
| dc.date.available | 2026-08-12T10:44:06Z | |
| dc.date.issued | 2026-08-12 | |
| dc.description.abstract | Serialization is a core operation in distributed systems, yet existing studies often compare individual formats without systematically controlling structural properties of the transmitted data. This paper presents a controlled comparison of three serialization paradigms: textual encoding represented by JSON, binary schema-based encoding represented by Protocol Buffers, and zero-copy representation represented by FlatBuffers. Using a Rust-based benchmark suite, the study systematically varies record width and nesting depth across four datasets and measures serialization latency, data-access latency, throughput, and serialized message size. Quantitative measurements are complemented by CPU profiling to identify low-level performance drivers. The results show that no format dominates across all dimensions. Protocol Buffers achieves the lowest serialization latency and the smallest message sizes across all datasets, supporting its suitability for write- and bandwidth-sensitive workloads. FlatBuffers provides substantially faster data access than both Protocol Buffers and JSON due to its zero-copy design, making it advantageous for read-dominated scenarios. JSON exhibits the highest access latency and generally larger payloads, but remains relevant where human readability, flexibility, and ecosystem compatibility are prioritized. Profiling attributes these differences to format-specific mechanisms: textual conversion and key emission in JSON, varint and field-wise byte encoding in Protocol Buffers, and offset/vtable resolution in FlatBuffers. The findings demonstrate that serialization format choice is a consequential architectural decision whose optimality depends on workload structure and read/write characteristics. | |
| dc.description.tableofcontents | 1. Motivation, Research Questions and Hypotheses 1.1 Main Research Question (RQ) 1.2 Sub-questions (SQ1–SQ4) and Hypotheses (H1–H5) 2. Theoretical Background 2.1 Fundamentals of Serialization 2.2 Text-Based Serialization: JSON 2.3 Binary Schema-Based Serialization: Protocol Buffers 2.4 Zero-Copy Serialization: FlatBuffers 3. Methodology 3.1 Benchmark Environment Implementation 3.2 Definition of Test Datasets 3.3 Quantitative Runtime Analysis 3.4 Qualitative Profiling Analysis 3.5 Test Environment Specification 4. Results 4.1 Serialization Runtime 4.2 Deserialization Runtime / Data Access 4.3 Message Size 4.4 Profiling Results / CPU Hotspots 5. Discussion 5.1 Serialization Runtime 5.2 Deserialization Runtime / Data Access 5.3 Message Size 5.4 Overall Research Question and Practical Recommendations 5.5 Limitations and Directions for Future Research 6. Conclusion 7. References | |
| dc.identifier.issn | 2750-073X | |
| dc.identifier.orcid | https://orcid.org/0000-0001-5088-5546 | |
| dc.identifier.uri | https://doi.org/10.56250/4143 | |
| dc.identifier.uri | https://repository.iu.org/handle/123456789/4266 | |
| dc.language.iso | en | |
| dc.publisher | IU International University of Applied Sciences | |
| dc.subject | Serialization | |
| dc.subject | Deserialization | |
| dc.subject | Distributed Systems | |
| dc.subject | Data Interchange Formats | |
| dc.subject | Protocol Buffers | |
| dc.subject | FlatBuffers | |
| dc.subject | Zero-Copy Access | |
| dc.subject | Systems Performance Evaluation | |
| dc.title | Serialization Trade-Offs in Distributed Systems: A Comparative Analysis of JSON, Protocol Buffers, and FlatBuffers Under Varying Width and Nesting Depth | |
| dc.type | Discussion Paper | |
| dcterms.BibliographicCitation.issue | 3 | |
| dcterms.BibliographicCitation.journaltitle | IU Discussion Papers IT und Engineering | |
| dcterms.BibliographicCitation.volume | 7 | |
| dcterms.extent | 20 Pages | |
| iu.department | IT und Technik |