Technology > Leveraging Aeron Open-Source Technology to Improve Latency of FX Execution System

TECH ARTICLE | 5 MIN

Leveraging Aeron Open-Source Technology to Improve Latency of FX Execution System

April 30, 2024

FX trading is fast-paced and complex, requiring low-latency trading systems to compete with the best.

Introduction and Key Points

Man Group embarked on a project to enhance its FX execution system, aiming to reduce latency and achieve high levels of system reliability under heavy data loads, therefore improving execution quality for its clients.

  • Technology used: Aeron Transport and Aeron Archive
  • Technical challenges:
    • Navigating the existing infrastructure & shifting the system to a new host.
    • Integrating Aeron, an open-source technology, within Man Group’s tech stack ensuring improved performance without service interruptions.
  • The roll-out: Starting with a trial, Aeron was initially deployed in a ‘production-like’ simulation environment to ensure its performance over a range of different traffic profiles.
  • The test criteria: Aeron needed to…
    • Demonstrate its ability to handle short-lived bursts of intense quoting activity across multiple providers.
    • Maintain minimal latency when quote streams were slow-moving and messages infrequent.
  • The outcome: Man Group deployed Aeron in production, fully replacing its legacy middleware solution. Aeron continues to provide high-performance messaging, outperforming the legacy solution by at least one order of magnitude across every percentile.

The Process

Industry challenge

In FX markets, speed is important. Liquidity conditions are dynamic and change in real-time, so orders must be sent promptly to minimise the risk of hitting stale quotes and being rejected.

Execution systems are the engines through which investment firms access and interact with markets, combining rich functionality with high performance. Hedge funds understand that having the right tools is beneficial – a system that lags peers is a strategic disadvantage.

The brief - from commercial to open source

FX execution systems are multi-layered, facilitating the entire FX trading lifecycle. Each element of the system communicates via Inter-Process Communication (IPC) to complete the trading flow. The bigger and more sophisticated the system, the greater the number of components and services to run simultaneously.

Figure 1: FX Algo Engine Architecture

Man Group’s use case centred around its multicast RFQ protocol. The system needed to be able to take orders from upstream and compare them in real time with the available liquidity streamed from multiple liquidity providers. The quotes are then aggregated and fed into an algorithm which decides when best to execute orders against which liquidity.

To achieve this, latency is key. The algo must be aware of the most up-to-date quote data in order to make informed trading decisions. Any delay between receiving data to execution can result in changes in price, impacting the cost of the trade or perhaps even missing out altogether.

Man Group was looking for fast and reliable technology to meet the following selection criteria:

  • Open-source tech to give the firm greater control of its functionality and roadmap.
  • Predictable, ultra-low latency.
  • Reliability under the highest data loads.
  • Proven industry use cases and references.

The goal was to build a fully fault-tolerant, low-latency messaging layer.

Technical challenges

When Man Group decided to move away from its legacy messaging tool and started to integrate Aeron, a key technical challenge was navigating the existing infrastructure and shifting the system to a new host. For example, the Linux kernel – which manages the interaction between software and hardware – caused issues with Aeron’s idle strategy holding back immediate performance improvements.

Figure 2: FX IPC Simulator

These issues were overcome by creating a virtual environment, simulating the execution system, to test the new software under multiple loads and ease implementation. Parameterising variables such as the number of quotes their rate of quoting, and idle strategy enabled the tech team to tune the deployment appropriately. The system showed how Aeron could support the low latency messaging needs and helped the development team to productionise the technology.

Migration to Aeron

Man Group’s technology team realised they would need to move the application to an alternative host to address the kernel idle strategy limitation. However, to avoid migrating the commercial IPC solution, Aeron had to be tuned to the existing host and rolled out there first. The simulator enabled them to do this with confidence.

The two-phase rollout strategy meant that the latency gains were achieved incrementally:

  1. Aeron deployed alongside the application and IPC migrated. At this point the latency testing saw:
    1. Small gains in lower percentiles, e.g. 10%
    2. A slightly more stable median in a similar latency range.
    3. Upper percentiles, e.g. 99%, remain similar due to the kernel idle strategy issue.
  2. Application migrated to an alternative host, resolving the kernel incompatibility issue. At this point, latency benefits were seen across all percentiles, particularly the upper ones.

Figure 3: Latency profiles during migration

Aeron Roll-out

Over the course of the year-long project, Aeron was used to build two key components.

  • A new, low-latency messaging layer: Aeron Transport became the vehicle for an updated IPC protocol capable of supporting multicast RFQ, trading instructions and system availability messages. As predicted, the new platform unlocked significant performance gains.
  • Message persistence: Man Group later began using Aeron Archive for the recording and replay of inbound FIX messaging streams. The persisted streams may be used for real-time monitoring, offline analysis, and counterparty simulation in lower (pre-production) environments. Use of Archive gives confidence that messages can be relayed from latency-sensitive trading processes without blocking or backpressure.

Benefits of Aeron - in a nutshell

Man Group replaced its legacy technology with a state-of-the-art, open-source solution. Leveraging Aeron Transport and Archive technology, the firm was able to:

  • Build a high-performance messaging layer.
  • Improve its latency statistics and predictability.
  • Ensure higher resilience to spikes of messages and instant recovery in case of failures.
  • Future-proof its FX execution system.
  • Build resiliency into the system so reporting processes do not interfere with trading activity.

The Future

Man Group has added Aeron to its toolkit of approved technologies for any projects with low-latency requirements. The firm’s technology team subsequently integrated it into an equities and futures trading platform for communicating signals to algo execution engines.

This information is communicated and/or distributed by the relevant Man entity identified below (collectively the "Company") subject to the following conditions and restriction in their respective jurisdictions.

Opinions expressed are those of the author and may not be shared by all personnel of Man Group plc (‘Man’). These opinions are subject to change without notice, are for information purposes only and do not constitute an offer or invitation to make an investment in any financial instrument or in any product to which the Company and/or its affiliates provides investment advisory or any other financial services. Any organisations, financial instrument or products described in this material are mentioned for reference purposes only which should not be considered a recommendation for their purchase or sale. Neither the Company nor the authors shall be liable to any person for any action taken on the basis of the information provided. Some statements contained in this material concerning goals, strategies, outlook or other non-historical matters may be forward-looking statements and are based on current indicators and expectations. These forward-looking statements speak only as of the date on which they are made, and the Company undertakes no obligation to update or revise any forward-looking statements. These forward-looking statements are subject to risks and uncertainties that may cause actual results to differ materially from those contained in the statements. The Company and/or its affiliates may or may not have a position in any financial instrument mentioned and may or may not be actively trading in any such securities. Unless stated otherwise all information is provided by the Company. Past performance is not indicative of future results.

Unless stated otherwise this information is communicated by the relevant entity listed below.

Australia: To the extent this material is distributed in Australia it is communicated by Man Investments Australia Limited ABN 47 002 747 480 AFSL 240581, which is regulated by the Australian Securities & Investments Commission ('ASIC'). This information has been prepared without taking into account anyone’s objectives, financial situation or needs.

Austria/Germany/Liechtenstein: To the extent this material is distributed in Austria, Germany and/or Liechtenstein it is communicated by Man (Europe) AG, which is authorised and regulated by the Liechtenstein Financial Market Authority (FMA). Man (Europe) AG is registered in the Principality of Liechtenstein no. FL-0002.420.371-2. Man (Europe) AG is an associated participant in the investor compensation scheme, which is operated by the Deposit Guarantee and Investor Compensation Foundation PCC (FL-0002.039.614-1) and corresponds with EU law. Further information is available on the Foundation's website under www.eas-liechtenstein.li.

European Economic Area: Unless indicated otherwise this material is communicated in the European Economic Area by Man Asset Management (Ireland) Limited (‘MAMIL’) which is registered in Ireland under company number 250493 and has its registered office at 70 Sir John Rogerson's Quay, Grand Canal Dock, Dublin 2, Ireland. MAMIL is authorised and regulated by the Central Bank of Ireland under number C22513.

Hong Kong SAR: To the extent this material is distributed in Hong Kong SAR, this material is communicated by Man Investments (Hong Kong) Limited and has not been reviewed by the Securities and Futures Commission in Hong Kong.

Japan: To the extent this material is distributed in Japan it is communicated by Man Group Japan Limited, Financial Instruments Business Operator, Director of Kanto Local Finance Bureau (Financial instruments firms) No. 624 for the purpose of providing information on investment strategies, investment services, etc. provided by Man Group, and is not a disclosure document based on laws and regulations. This material can only be communicated only to professional investors (i.e. specific investors or institutional investors as defined under Financial Instruments Exchange Law) who may have sufficient knowledge and experience of related risks.

Switzerland: To the extent this material is made available in Switzerland the communicating entity is:

  • For Clients (as such term is defined in the Swiss Financial Services Act): Man Investments (CH) AG, Huobstrasse 3, 8808 Pfäffikon SZ, Switzerland. Man Investment (CH) AG is regulated by the Swiss Financial Market Supervisory Authority (‘FINMA’); and
  • For Financial Service Providers (as defined in Art. 3 d. of FINSA, which are not Clients): Man Investments AG, Huobstrasse 3, 8808 Pfäffikon SZ, Switzerland, which is regulated by FINMA.

United Kingdom: Unless indicated otherwise this material is communicated in the United Kingdom by Man Solutions Limited ('MSL') which is a private limited company registered in England and Wales under number 3385362. MSL is authorised and regulated by the UK Financial Conduct Authority (the 'FCA') under number 185637 and has its registered office at Riverbank House, 2 Swan Lane, London, EC4R 3AD, United Kingdom.

United States: To the extent this material is distributed in the United States, it is communicated and distributed by Man Investments, Inc. (‘Man Investments’). Man Investments is registered as a broker-dealer with the SEC and is a member of the Financial Industry Regulatory Authority (‘FINRA’). Man Investments is also a member of the Securities Investor Protection Corporation (‘SIPC’). Man Investments is a wholly owned subsidiary of Man Group plc. The registration and memberships described above in no way imply a certain level of skill or expertise or that the SEC, FINRA or the SIPC have endorsed Man Investments. Man Investments Inc, 1345 Avenue of the Americas, 21st Floor, New York, NY 10105.

This material is proprietary information and may not be reproduced or otherwise disseminated in whole or in part without prior written consent. Any data services and information available from public sources used in the creation of this material are believed to be reliable. However accuracy is not warranted or guaranteed. © Man 2025