Case study · Algorithmic Trading Systems
Low-Latency Execution Engine
A low-latency, event-driven trading engine built in C++ for latency-sensitive arbitrage. Utilizes Solarflare OpenOnload kernel bypass, lock-free queues, and hardware-level network optimizations to reduce execution latency.
- Primary Tech
- C++ (Solarflare)
- API Protocol
- FIX / FAST
- Target Platform
- Linux Kernel
Client work under NDA. Client names, trading data, performance figures and live screens are not shown. This page describes the problem, what we built and the technology used.
The client
A professional trading desk running latency-sensitive arbitrage.
The problem
A professional trading desk was losing latency-sensitive arbitrage opportunities due to slow execution times.
- Time was lost in the operating system's network stack on every message in and out.
- Threads handed work to each other through locks, which added waits and context switches.
- Market data decoding and order sending went through extra hops before reaching the venue.
- The desk could not see which stage of the path was costing the most time.
Our approach
We rebuilt the trading path as a single event-driven C++ engine on Linux: networking that bypasses the kernel, lock-free hand-offs between threads, and a direct FIX/FAST connection to the venue.
How we built it
- 1
Kernel bypass networking
Solarflare network cards with OpenOnload deliver packets straight to the application, skipping the operating system's network stack.
- 2
Lock-free ring buffers
Market data, strategy and order threads are pinned to their own CPU cores and pass messages through lock-free ring buffers instead of locks.
- 3
Direct FIX/FAST routing
Market data arrives over FAST and is decoded in the engine. Orders go out over a direct FIX session, with no extra gateway in between.
- 4
Linux and hardware tuning
CPU cores are isolated for the engine, interrupts are moved away from them, and power-saving states that add delay are turned off.
- 5
Latency measurement
Every stage records a timestamp, so the desk sees exactly where time is spent on each message.
How we tested it
- Replay of recorded market data through the full engine.
- Latency measured stage by stage under load.
- Long-running stability tests and FIX session recovery tests.
What we delivered
- The engine deployed on the desk's servers.
- Documentation of the system configuration and tuning.
- Support after launch.
The result
The desk runs its arbitrage on a dedicated low-latency path and can see the time spent at every stage of it.
Features
- Solarflare kernel bypass
- Lock-free ring buffers
- Hardware network optimization
- Direct FIX/FAST routing
Technology
- C++
- Solarflare
- FIX Protocol
- Linux
Start here