Trading at light speed: designing low latency systems in C++ – David Gross – Meeting C++ 2022

Trading at light speed: designing low latency systems in C++ - David Gross - Meeting C++ 2022

[vc_row full_width=”stretch_row”][vc_column][vc_column_text]

Making a trading system “fast” cannot be an afterthought. While low latency programming is sometimes seen under the umbrella of “code optimization”, the truth is that most of the work needed to achieve such latency is done upfront, at the design phase. How to translate our knowledge about the CPU and hardware into C++? How to use multiple CPU cores, handle concurrency issues and cost, and stay fast?

[/vc_column_text][vc_video link=”https://youtu.be/8uAW5FQtcvE” el_width=”90″ align=”center”][/vc_column][/vc_row][vc_row][vc_column][vc_column_text]

Key takeaways:

  1. Importance of Low Latency in Trading Systems: Low latency is crucial in automated trading due to the high volume of trades and the need to respond quickly to market changes. For instance, if a significant market event occurs, it’s necessary to cancel buy orders immediately to avoid losses.

  2. Designing for Performance: Performance should be a primary consideration from the beginning of the system design process. While premature optimization can lead to unnecessary complexity, considering performance from the outset is essential in the overall design strategy.

  3. Strategy vs Tactics in System Design: Strategy refers to the overall approach to meet a goal, such as handling a million events per second or reacting to a certain event within a specific latency distribution. Tactics, on the other hand, refer to individual actions or implementation details. While premature optimization (tactics) can be detrimental, considering performance from the beginning (strategy) is essential.

  4. Building Blocks of Low Latency Systems: Four main topics are crucial in building low latency systems: data model access, system tuning, eventuality, and performance measurement. These topics provide a roadmap for designing and implementing a low latency trading system.

  5. Evolution of Exchange Speeds: Exchange speeds in financial markets have evolved, with the current focus on achieving microsecond-level latencies. This highlights the increasing demand for speed in financial markets and the need for trading systems to keep up with this trend.

  6. Trigger to Target Latency: “Trigger to target latency” is a concept used to measure the speed of trading systems. It refers to the time from when the exchange sends an event to market participants (the trigger) to when any market participant sends an order back (the target). This is a key performance indicator in the world of automated trading.

[/vc_column_text][/vc_column][/vc_row]

One thought on “Trading at light speed: designing low latency systems in C++ – David Gross – Meeting C++ 2022

  1. This is a great article about low latency systems in C++, which is essential for automated trading. The article does a good job of explaining the importance of low latency in trading systems, as well as the key design principles for achieving low latency. I particularly liked the discussion of the four building blocks of low latency systems: data model access, system tuning, eventuality, and performance measurement. This provides a clear roadmap for designing and implementing a low latency trading system.

Leave a Reply

Your email address will not be published. Required fields are marked *