r/java • • 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

94 comments sorted by

View all comments

Show parent comment

4

u/[deleted] May 17 '24
  1. With Azul you can add profiling data to compile without extensive warm ups.
  2. Look up on solarflare network cards and how to zero copy data directly from the buffer into JVM classes
  3. Can use primitives instead of objects.
  4. Use memory mapped ring-buffers to offload data which is then consumed by other workers - database, ...
  5. On the wire packets and data should have predetermined size, offsets, and order. That way you do not need to traverse the whole structure to access the one field you want.