

Low-Latency C++ for High-Frequency Trading (HFT)
Suppose your C++ code works and, most of the time, it’s fast enough. Every so often, though, a request takes longer than you can afford. What would you measure first? And if a change lets you process more requests per second, how would you tell whether it helped the slowest ones?
In Low-Latency C++ for High-Frequency Trading (HFT), we’ll explore those questions through three anonymized case studies from credit card processing. Kevin Carpenter will introduce each project and explain what mattered in practice. Was the goal to reduce the time taken by a single operation, handle more transactions, or make response times more predictable?
Patrice Roy will then start with a simplified, working C++ implementation. We’ll measure its behavior, change the code, and see what we gain and what it costs. The examples emphasize portable C++, drawing on C++20 and C++23 where they help. You can take the same approach back to a trading system, a payment service, or another application with tight latency constraints.
What You’ll Learn
Choose what to measure when the goal is lower latency, higher throughput, or more predictable response times.
Distinguish low-latency requirements from real-time deadlines and understand what your measurements can tell you about worst-case execution time.
Move suitable work to compile time and evaluate the runtime cost of C++ features in the code paths that matter.
Recognize when a standard container or algorithm meets your needs and when its behavior deserves a closer look.
Identify where blocking and synchronization introduce delays in concurrent code.
Evaluate how allocation choices and the use of data and instruction caches affect performance.
Why Learn from Patrice Roy?
Patrice Roy is the author of C++ Memory Management and a long-standing member of the ISO C++ Standards Committee (WG21). This workshop builds on his CppCon class on low-latency C++, bringing his knowledge of the language to three problems drawn from production systems.
You’ll get to see how Patrice decides whether a change is worth making. Before replacing a standard container, for example, what would you measure? What would convince you to keep it? Following that reasoning in live code gives you a way to make similar decisions in your own projects.
Who Should Attend?
Intermediate C++ programmers who want to build faster, more predictable systems.
Engineers working in HFT, payments, or other domains where latency and throughput matter.
Developers maintaining performance-sensitive C++ code who want to make better use of modern language and standard library features.
You should be comfortable reading and writing C++. No prior experience in trading or finance is required.
Workshop Format
Two-day live virtual workshop on Airmeet
Instructor-led sessions with extensive live coding
Interactive Q&A throughout both days
Practical demonstrations based on three real-world payment-processing projects
Downloadable reference materials and code samples
Session recordings provided after the event
By signing up for this event, you agree to receive updates and communications from Packt, including the Deep Engineering newsletter. You can unsubscribe at any time.