Order routing latency: where each millisecond is added

Operations engineer checking an order routing latency dashboard
Photo by Rafael Minguet Delgado on Pexels

At 17:40 on Friday, an operations lead is looking at a dashboard that shows order acknowledgements slowing during the busiest sessions of the week. The median looks acceptable.

The 99th percentile does not. Before changing the router, the team needs to know whether the delay sits in its own code, a network hop, a venue queue or the measurement.

That distinction matters. An order can take tens of microseconds to pass through a well-tuned process and several milliseconds to cross a congested link or wait behind queued work. End-to-end latency is the sum of different components, and each routing design shifts the balance between control, reach, cost and predictability.

Locate the delay before changing the route

Measure comparable timestamps

Define the path first. For a client order, useful points include gateway receipt, completion of validation, risk approval, router dispatch, network send, venue acknowledgement and the client-facing acknowledgement. Track order-to-acknowledgement separately from order-to-fill: the latter also depends on venue matching and available liquidity.

Use monotonic clocks for intervals inside a host and synchronise machines with PTP where the hardware and network support it. NTP may be adequate for broad operational views, but its accuracy can obscure differences measured in microseconds. Record clock offset and uncertainty alongside the latency series. Without that, subtracting timestamps from separate systems can produce plausible-looking but misleading results.

Separate typical performance from tail events

Keep median, p95 and p99 measurements for each stage, split by venue, session, order type and gateway. A median can hide the queueing spikes that matter during a volatility burst. Compare busy and quiet periods, and correlate latency with CPU run queues, garbage collection, packet loss, retransmissions, risk-service calls and venue throttles.

The table gives indicative component ranges seen in common broker and prop firm architectures. These are typical market ranges, not service-level guarantees. The columns describe individual contributions, not an end-to-end promise, and the values depend on hardware, geography, protocol and load.

Path componentTypical range, low loadTypical range, busy or non-colocated
Gateway ingress, same metro0.1-1 ms1-5 ms
Decode and protocol normalisation10-80 µs30-250 µs
Pre-trade risk and credit checks20-150 µs50-500 µs
Internal queue and dispatch5-100 µs0.2-5 ms
Router decision10-100 µs20-300 µs
Colocated link to venue gateway5-50 µs10-100 µs
Venue acknowledgement path50-500 µs0.2-5 ms

Compare routing designs

Direct connections and colocated routers

A direct connection to a venue removes an intermediary decision point. With the broker's gateway in the same data centre, a cross-connect can contribute tens of microseconds or less, depending on the physical path and equipment. This suits firms that need predictable access to a small set of venues and can manage each protocol, session and failover themselves.

The trade-off is operational overhead. Each connection brings certification, session management, market data handling, throttles and venue-specific recovery behaviour. A direct route also does not remove time spent in local risk checks, software queues or the venue's own gateway. Co-location adds rack, connectivity and support costs, while leaving the firm responsible for observability and recovery.

Smart order routers

A smart order router can compare venues, prices, available size and routing rules before sending an order. Its decision may take tens to hundreds of microseconds in a streamlined implementation. More complex logic, synchronous lookups or contention for shared services can add substantially more, especially at the tail.

Smart routing can improve venue choice and reduce manual route management, but it is not automatically faster than a direct route. The decision is only as useful as the market data it sees, and stale data or an overloaded router can turn optimisation into delay. Ask whether the router runs locally, how it handles unavailable venues, and whether route selection waits on a remote service. Trading Technology's infrastructure coverage examines the wider platform and connectivity choices behind these designs.

Choose where to spend latency budget

For each order class, set a latency budget from gateway receipt to venue send, then assign limits to validation, risk, routing and queueing. A budget makes trade-offs visible. Removing 40 microseconds from router logic has little value if a shared risk service occasionally adds 3 milliseconds.

  • Keep synchronous work on the critical path limited to checks required before market entry. Move logging, analytics and non-essential notifications to asynchronous paths.
  • Use bounded queues and expose queue depth, oldest-message age and drops. An unbounded queue can turn overload into a slow, misleading drain rather than a clear failure.
  • Benchmark with realistic bursts, cancel activity, multiple sessions and venue disconnects. A steady stream of small test orders will not expose all tail-latency problems.
  • Compare direct and smart routes using the same instrument, venue, order type and measurement points. Include rejects, partial fills and recovery behaviour, not just successful acknowledgements.

For many broker stacks, the practical choice is hybrid: direct, colocated paths for latency-sensitive flow, with a managed or smart route for broader venue access and resilience. Put risk controls close to the gateway, but avoid duplicating checks in ways that add serial service calls.

Use hardware acceleration or kernel-bypass networking only after profiles show that the operating system or network stack is a material bottleneck. Those tools add specialist maintenance and do not fix a slow venue response.

Make the operational trade-off explicit

Compare the designs on more than their best-case number. Include p99 and p99.9 latency, throughput at peak bursts, failure detection, route recovery, market-data freshness and the effort needed to operate each connection. Track rejects and fills alongside acknowledgement time: a fast route that sends stale prices or loses orders during failover is not a sound improvement.

Re-test after changes to risk rules, protocol libraries, CPU placement, network paths or venue sessions. Keep per-stage telemetry and a rollback path so a deployment can be judged against the same workload. The right choice depends on order type, venue mix, operating model and the firm's measured bottleneck. This advice does not apply where the broker uses a purely internalised or request-for-quote flow with no external venue route; there, the dominant delays sit in pricing, dealer response and client communication, not market connectivity.

Frequently Asked Questions

What causes latency in order routing?

Latency can come from gateway networking, protocol decoding, pre-trade risk checks, internal queues, router decisions and the venue path. Load, packet loss and venue response times often explain tail spikes that are absent from median measurements.

How much latency does a smart order router add?

A streamlined router decision commonly takes tens to hundreds of microseconds. Complex rules, synchronous service calls and contention can push the tail higher, so measure it within the full order path.

Is direct market access faster than smart routing?

A direct route can avoid the smart router's decision time, particularly when colocated with the venue. It may still be slower overall if its network path, local checks or venue response is worse.

How should brokers measure order routing latency?

Capture timestamps at gateway receipt, risk approval, dispatch, venue acknowledgement and client acknowledgement. Report median and tail percentiles by venue and order type, and monitor clock accuracy when comparing systems.

Does co-location remove order routing latency?

No. Co-location can reduce network transit to a venue, but it does not remove processing, queueing, risk checks or venue-side delay. It also adds connectivity and operational costs.