Metraipolis › archive › dc_99ad6b53963c

Adapting the Actor Model of Concurrency for High-Frequency Trading: Synchronous Message Delivery (fast_send) and a Tick-to-Book Latency Study — arXiv:2609.21173

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.21173
License (as archived)
CC0-1.0
Archived
2026-10-10T01:40:09.485Z
SHA-256 of the archived text
ad5167aa01ffb159571e1124fbb37bc2d2078c430a9a7021589205be6ee35398
Stable URL of this page
https://metraipolis.com/documento/dc_99ad6b53963c

How to cite

Adapting the Actor Model of Concurrency for High-Frequency Trading: Synchronous Message Delivery (fast_send) and a Tick-to-Book Latency Study — arXiv:2609.21173 — arXiv (en), https://arxiv.org/abs/2609.21173 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_99ad6b53963c (Metraipolis archive dc_99ad6b53963c, sha256 ad5167aa01ffb159571e1124fbb37bc2d2078c430a9a7021589205be6ee35398)
BibTeX
@misc{dc99ad6b53963c,
  title = {Adapting the Actor Model of Concurrency for High-Frequency Trading: Synchronous Message Delivery (fast_send) and a Tick-to-Book Latency Study — arXiv:2609.21173},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.21173},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_99ad6b53963c; sha256 ad5167aa01ffb159571e1124fbb37bc2d2078c430a9a7021589205be6ee35398},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.21173. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The actor model - state isolation, data-race freedom, and sequential single-message reasoning - has long been dismissed as unsuitable for high-frequency trading (HFT): actors seem to imply many threads, a mailbox per actor, and a heap-allocated message plus a context switch per interaction, overhead incompatible with a microsecond budget. This paper argues the dismissal is wrong for co-located actors, with a deployed, measured implementation: kaspar-hft, an open-source C++20 framework. Four extensions adapt the model for HFT: fast_send, a synchronous delivery mechanism in which the sending thread runs the receiver's handler inline and returns the reply as a value; actor groups, which co-schedule actors on one thread behind a shared mailbox; per-actor selectable mailbox queues; and a memory pool. fast_send has receiver transparency: the handler is written identically for synchronous and asynchronous delivery and does not depend on which was used or which thread runs it. A grouped synchronous chain runs on one thread, cutting scheduler context switches from O(N) to O(1); a thread-local call-chain test detects cyclic invocation on one thread before any lock is taken, while a cycle spread across threads deadlocks. Microbenchmarks put the synchronous round trip at tens of nanoseconds. On a live CME market-data feed (ES, NQ, ZN futures), when the socket-reader thread decodes each packet and updates the book itself, socket-to-book medians for book updates are 0.8-1.1 microseconds, and a fast_send hop is about 1% of that. The shared-queue group also yields a production/simulation duality: the same actor code runs unchanged in live trading and deterministic backtest.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-21 in cs.DC).
Categorie arXiv: Trading and Market Microstructure (q-fin.TR) ; Distributed, Parallel, and Cluster Computing (cs.DC).
Pagina del lavoro: https://arxiv.org/abs/2609.21173 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-10T01:05:30.977Z dalla pagina https://arxiv.org/catchup/cs.DC/2026-09-21?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).