Java serialization for clearing house systems

Clearing houses play a critical role in the infrastructure of financial trad-ing, ensuring reliability. These systems handle millions of transactionevery day. Given the immense volume of messages, an efficient seri-alizer is essential to improve system throughput. This thesis evaluatedMsgCodec, a serializer used in Nasdaq’s clearing house systems. De-veloped by Cinnober, MsgCodec remains relatively undocumented inthe public domain. This thesis was divided into two parts, first partconsisted of analyzing MsgCodec’s serialization process and potentialfactors that can limit throughput. The second part, evaluated MsgCodecperformance relative to alternative high-performant serializers.To analyze MsgCodec, a static analysis was conducted that revealedMsgCodec employs runtime code generation by utilizing Java Reflec-tion in conjunction with the ASM bytecode manipulation framework.Decompilation of the generated code revealed potential performance is-sues. It revealed that MsgCodec relies on Reflection for private fields,which will impact performance. Furthermore, it was revealed that usingOutputStream as the buffer instead of ByteArrayBuf or ByteBufferBufintroduces recursion and deep copying in the serialization process, re-sulting in unnecessary processing.In the second part of the thesis, FlatBuffers and Apache Fury wereselected as suitable alternatives. MsgCodec was benchmarked againstthem using the JMH library. The primary focus was on throughput mea-surements. The results show trade-offs in performance characteristics.However, Apache Fury ultimately emerged as the most promising seri-alizer for Clearing house systems, offering the highest throughput in the scenarios tested.

Publication Details

Journal
DiVA at Umeå University (Umeå University)
Published
2025-01-01
Primary Topic
Fusion materials and technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Java serialization for clearing house systems

DiVA at Umeå University (Umeå University)
Fusion materials and technologies
article

Java serialization for clearing house systems

article en

Abstract

Clearing houses play a critical role in the infrastructure of financial trad-ing, ensuring reliability. These systems handle millions of transactionevery day. Given the immense volume of messages, an efficient seri-alizer is essential to improve system throughput. This thesis evaluatedMsgCodec, a serializer used in Nasdaq’s clearing house systems. De-veloped by Cinnober, MsgCodec remains relatively undocumented inthe public domain. This thesis was divided into two parts, first partconsisted of analyzing MsgCodec’s serialization process and potentialfactors that can limit throughput. The second part, evaluated MsgCodecperformance relative to alternative high-performant serializers.To analyze MsgCodec, a static analysis was conducted that revealedMsgCodec employs runtime code generation by utilizing Java Reflec-tion in conjunction with the ASM bytecode manipulation framework.Decompilation of the generated code revealed potential performance is-sues. It revealed that MsgCodec relies on Reflection for private fields,which will impact performance. Furthermore, it was revealed that usingOutputStream as the buffer instead of ByteArrayBuf or ByteBufferBufintroduces recursion and deep copying in the serialization process, re-sulting in unnecessary processing.In the second part of the thesis, FlatBuffers and Apache Fury wereselected as suitable alternatives. MsgCodec was benchmarked againstthem using the JMH library. The primary focus was on throughput mea-surements. The results show trade-offs in performance characteristics.However, Apache Fury ultimately emerged as the most promising seri-alizer for Clearing house systems, offering the highest throughput in the scenarios tested.

DiVA at Umeå University (Umeå University)
Industry, innovation and infrastructure
Openalex Percentile: Top 59%
Fusion materials and technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.