Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Fault-Tolerant HFT Architecture via Process Isolation
Linköping University, Department of Computer and Information Science.
Linköping University, Department of Computer and Information Science.
Linköping University, Department of Computer and Information Science.
Linköping University, Department of Computer and Information Science.
Show others and affiliations
2026 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [sv]

Rapporten beskriver kandidatprojektet Fault-Tolerant HFT Architecture via Process Iso-lation. Projektet utfördes på uppdrag från Alexandria Invest AB och innebar en över-gripande omstrukturering av en högfrekvenshandelsplattform som använde en monolitiskenkeltrådad struktur till att bli en felisolerad multiprocessarkitektur. Syftet med projek-tet är att skapa ett mer robust system som motsvarar det befintliga i exekveringshas-tighet samt att samla kunskap och erfarenheter till framtida projekt. Omstruktureringengjordes för att öka systemets robusthet. Under projektets gång användes C++23 i denetablerade kodbasen för att uppnå de strikta kraven kring latens som krävs för att va-ra konkurrenskraftig inom högfrekvenshandel. Under utvecklingens gång genom samrådmed kunden togs beslutet att nyttja stora språkmodeller som Codex och Gemini för attsnabbare komma igång med arbetet och för att producera ett resultat av tillräcklig kva-litet. De resultat som nåddes var att IPC-lagret introducerar ett latenspåslag jämförtmed in-process-körning, med en uppmätt median på 36 μs för out-of-process mot 0,69 μsin-process, men arkitekturen håller sig inom de latenskrav som definierats för feltolerantstrategikörning. Återhämtningstiden efter att en process kraschat uppmättes till 118 msvilket passerar målet på 1 s med god marginal. Rapporten lyfter de metoder, hjälpmedel,arbetsprocesser och nödvändig teori som använts under projektets gång. Ytterligare försen djupgående diskussion kring de fördelar och nackdelar som tillkommer i brukandetav stora språkmodeller och de konsekvenser för lärande, arbetsprocess och kvalitet dessabrukande får.

Abstract [en]

This report presents the bachelor thesis project Fault-Tolerant HFT Architecture via Process Isolation, conducted on behalf of Alexandria Invest AB. The project involved a comprehensive restructuring of a high-frequency trading platform, transitioning from a monolithic single-threaded architecture to a fault-isolated multi-process architecture, with the goal of increasing system robustness. Modern C++ was used throughout the established codebase to meet the strict latency requirements necessary to remain competitive in high-frequency trading. During development, the decision was made in consultation with the client to employ large language models such as Codex and Gemini to accelerate the initial stages of development without sacrificing result quality.The goal of the project was to create a more robust system that matches the existing one in execution speed, while also gathering knowledge and experience for future projects. The results show that the IPC layer introduces a latency overhead compared to in-process execution, with a measured median of 36 μs for out-of-process versus 0.69 μs in-process,but the architecture remains within the latency requirements defined for fault-tolerant strategy execution. Recovery time following a process crash was measured at 118 ms,passing the target of 1 s with considerable margin.The report describes the methods, tools, processes and theory applied throughout the project, and includes an in-depth discussion of the advantages and disadvantages of using large language models, and the consequences their use has on learning, workflow and quality.

Place, publisher, year, edition, pages
2026. , p. 40
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:liu:diva-225388ISRN: LIU-IDA/LITH-EX-G--26/012—SEOAI: oai:DiVA.org:liu-225388DiVA, id: diva2:2076447
External cooperation
Alexandria Invest AB
Subject / course
Computer Engineering
Supervisors
Examiners
Available from: 2026-06-29 Created: 2026-06-22 Last updated: 2026-06-29Bibliographically approved

Open Access in DiVA

Fault-Tolerant HFT Architecture via Process Isolation(1967 kB)23 downloads
File information
File name FULLTEXT01.pdfFile size 1967 kBChecksum SHA-512
84f00a896867f867816cb79e446191eaed6898bea3986cab252082f67c546c7176156d19116fe403dd62642639342f641a49dae4da9823d45c5bfd262b7e8041
Type fulltextMimetype application/pdf

By organisation
Department of Computer and Information Science
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 395 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf