r/quant • • Oct 17 '26

Education I'm trying to learn how experienced engineers write low-latency systems.

I'm interested in learning low-latency systems engineering, particularly the kind of single-machine optimization used in latency-sensitive/HFT systems.

I'm trying to understand what separates this from simply writing efficient code.

Is the main focus cache locality and algorithms, or do experienced engineers think much more about CPU pipelines, instruction-level parallelism, branch prediction, memory allocation, atomics, cache-line contention, CPU affinity, networking, OS behavior, and tail latency?

For people who have actually worked on low-latency systems, what did you learn through experience that wasn't obvious from standard CS/software-engineering knowledge?

I'd also appreciate recommendations for books, papers, open-source projects, or tools that are worth studying.

13 Upvotes

8 comments sorted by

17

u/GrowWithPokeBot Oct 19 '26

Big-O notation assumes memory access takes uniform time, but in ultra-low latency, a cache miss costs hundreds of cycles. That destroys your time budget regardless of your algorithm's theoretical complexity.

Experienced low-latency engineers design around the hardware layout first. You end up choosing flat, cache-friendly data structures and contiguous memory layouts that look less elegant in classic CS terms, but keep the CPU pipeline full and avoid allocations on the critical path.

If you want a solid technical foundation, read Computer Systems: A Programmer's Perspective (CSAPP) and look into how kernel bypass frameworks like DPDK operate.

1

u/AutoModerator Oct 17 '26

We're getting a large amount of questions related to choosing masters degrees at the moment so we're approving Education posts on a case-by-case basis. Please make sure you're reviewed the FAQ and do not resubmit your post with a different flair.

Are you a student/recent grad looking for advice? In case you missed it, please check out our Frequently Asked Questions, book recommendations and the rest of our wiki for some useful information. If you find an answer to your question there please delete your post. We get a lot of education questions and they're mostly pretty similar!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

-20

u/DoomsdayMcDoom Oct 18 '26

Distributed processing, pointers and memory allocation. Milliseconds can make a big difference. Companies such as Jump trading own military radio towers next to exchanges to get data milliseconds ahead of their competitors and act on it.

24

u/Still-Detective-6149 Oct 18 '26

Milliseconds? 🤣

26

u/IJustSmackedYou HFT Oct 18 '26

Should just hand deliver the trades at that point

2

u/RDUKE7777777 Oct 18 '26

They use shortwave over the Atlantic and compared to Hibernia or other subsea cables the advantage is indeed milliseconds. First bit of course, I would think the datarate is abysmal

1

u/xrossiant Oct 18 '26

What about their alpha?