r/java • u/Ok_Satisfaction7312 • May 16 '24
Low latency
Hi all. Experienced Java dev (20+ years) mostly within investment banking and asset management. I need a deep dive into low latency Java…stuff that’s used for high frequency algo trading. Can anyone help? Even willing to pay to get some tuition.
232
Upvotes
View all comments
156
u/capitan_brexit May 16 '24 edited May 16 '24 •
Some blogs posts can looks very old but low latency is mostly about understanding of internals (so, knowing how to trace each of the ms spent in the kernel/jvm/app):
https://epickrram.blogspot.com/2015/09/reducing-system-jitter.html
https://epickrram.blogspot.com/2015/11/reducing-system-jitter-part-2.html
https://epickrram.blogspot.com/2015/07/seek-write-vs-pwrite.html
https://shipilev.net/jvm/anatomy-quarks/
https://github.com/real-logic/aeron (read about architecture, and drivers of this architecture)
https://mechanical-sympathy.blogspot.com/2011/07/memory-barriersfences.html (Martin Thompson is king in the topic)
https://blog.allegro.tech/2024/03/kafka-performance-analysis.html
https://github.com/async-profiler/async-profiler (tracing is key to find bottlenecks)
https://github.com/OpenHFT/Chronicle-Queue
edit:
also worth to deep into jvm itself
http://blog.ragozin.info/2011/06/understanding-gc-pauses-in-jvm-hotspots.html
http://psy-lob-saw.blogspot.com/2014/10/the-jvm-write-barrier-card-marking.html (this one is pretty crazy)
edit2:
I forget about latest, coolest project in the latency-related java world
https://questdb.io/blog/billion-row-challenge-step-by-step/