IDEAS home Printed from https://ideas.repec.org/p/zbw/iubhit/343093.html

Serialization trade-offs in distributed systems: A comparative analysis of JSON, Protocol Buffers, and FlatBuffers under varying width and nesting depth

Author

Listed:
  • Haberlah, Johannes
  • Linke, Knut

Abstract

This discussion paper compares three common serialization paradigms - JSON, Protocol Buffers, and FlatBuffers - with respect to latency and space efficiency. Although serialization is central to modern distributed systems, controlled, paradigm-level comparisons remain limited. To address this, the study benchmarks all three formats in Rust while systematically varying record width and nesting depth. Quantitative measurements are complemented by CPU profiling to identify dominant cost drivers. Results show clear patterns: Protocol Buffers achieves the lowest serialization latency and smallest message sizes, FlatBuffers offers the fastest data access due to its zero-copy design, and JSON incurs the highest access costs and largest payloads. Each format therefore excels under different conditions: Protobuf in write-and bandwidth-sensitive scenarios, FlatBuffers in read-dominated contexts, and JSON where readability and flexibility matter.

Suggested Citation

  • Haberlah, Johannes & Linke, Knut, 2026. "Serialization trade-offs in distributed systems: A comparative analysis of JSON, Protocol Buffers, and FlatBuffers under varying width and nesting depth," IU Discussion Papers - IT & Engineering 3 (August 2026), IU International University of Applied Sciences.
  • Handle: RePEc:zbw:iubhit:343093
    DOI: 10.56250/4143
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/343093/1/1981783016.pdf
    Download Restriction: no

    File URL: https://libkey.io/10.56250/4143?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C80 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - General
    • C88 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Other Computer Software
    • L86 - Industrial Organization - - Industry Studies: Services - - - Information and Internet Services; Computer Software

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:zbw:iubhit:343093. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://www.iu.de/forschung/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.