Quick revision
The short answer
I would weigh consistent latency and fair arrival order above raw speed, check the regulatory expectations for the asset class in each jurisdiction before choosing, and treat selling low-latency access as a fairness decision as much as a revenue one. Colocation with equal-length connections gives predictable latency at a higher fixed cost, while public cloud networks can show variable latency, so a common answer is a hybrid: core matching in colocation, with market data distribution, client portals, analytics and disaster recovery in the cloud. The decision rests on total cost, latency percentiles measured under load, regulatory advice and the trading community's expectations, and I would keep the engine portable so the choice can change later.
What to remember
In this answer, we saw that a venue's latency matters most as consistency and fair arrival order, which colocation provides at a high fixed cost and shared cloud networks find harder to guarantee. Regulation for the asset class and each jurisdiction should be checked before choosing, and selling speed brings revenue but can harm fairness, which speed bumps or frequent batch auctions can offset. A hybrid with core matching in colocation and everything else in the cloud is often the balance, decided with total cost, measured latency percentiles, regulatory advice and community input, and with the engine kept portable.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would weigh consistent latency and fair arrival order above raw speed, check the regulatory expectations for the asset class in each jurisdiction before choosing, and treat selling low-latency access as a fairness decision as much as a revenue one. Colocation with equal-length connections gives predictable latency at a higher fixed cost, while public cloud networks can show variable latency, so a common answer is a hybrid: core matching in colocation, with market data distribution, client portals, analytics and disaster recovery in the cloud. The decision rests on total cost, latency percentiles measured under load, regulatory advice and the trading community's expectations, and I would keep the engine portable so the choice can change later.
Why this question is asked
Choosing where a matching engine runs looks like an infrastructure question, but it decides the market's fairness, its regulatory standing and its business model. A venue for a newer asset class has more freedom than an established exchange, and also more risk: its rules and reputation are not yet set. Interviewers ask this to see whether a senior leader can balance engineering, commercial and regulatory forces and explain the trade-offs to people who care about different ones. In this answer, we will look at what latency really means for a venue, the regulatory constraints, the tension between selling speed and keeping the market fair, the hybrid option, and how I would make and keep the decision.
1What Latency Means for a Venue
For traders, the venue's latency matters less than its consistency and its fairness. If the engine always acknowledges in 50 microseconds, participants can plan around it. If it usually answers in 50 microseconds but sometimes in 5 milliseconds, the slow cases are what they remember, because that is when their orders were stuck while prices moved. And participants care deeply that messages are processed in the order they arrived, and that no one gets a systematic head start except through access that is offered openly to everyone.
Public cloud networks are shared, so latency between instances varies with other tenants' traffic, and the path from different clients to the engine can differ in ways the venue does not control. Cloud providers offer features that reduce this, such as placement groups that put machines close together, but tail latency at the 99.9th percentile is still harder to bound. A colocation data center, where the venue runs its own hardware and clients rent racks in the same building, can give every client connection the same cable length and switching path, so latency is low and, more importantly, equal. The cost is a large fixed investment in space, hardware and specialist staff.
2Regulation Comes Before Architecture
Regulators of trading venues generally expect operational resilience with tested recovery, complete audit trails with accurate timestamps, fair and non-discriminatory access, and controls that keep markets orderly, such as price bands and circuit breakers. The details differ by asset class and jurisdiction, and a newer asset class may be regulated under different regimes in different countries, or be in the middle of new rules being written.
So I would get regulatory advice early, before the infrastructure choice, and ask specific questions: are there requirements on where data and systems are located, on clock synchronisation accuracy, on outsourcing critical functions to a cloud provider, on disaster recovery time, and on how co-location services must be priced and offered? Some regimes treat cloud hosting of a critical function as outsourcing that needs extra oversight. Those answers can rule out options before engineering preference enters the discussion.
3Selling Speed Versus Keeping the Market Fair
Colocation space, faster connections and premium market data feeds are real revenue for exchanges. But every speed product widens the gap between the fastest firms and everyone else, and a venue known as a place where slower participants are always picked off will struggle to attract the ordinary order flow that makes it valuable. For a new venue that needs liquidity from many kinds of participants, this matters more than for an incumbent.
Market design can reduce the value of tiny latency differences. A speed bump delays all incoming orders by a fixed amount, as IEX does with its 350-microsecond delay, which removes the advantage of being marginally faster at reacting to other markets. Frequent batch auctions collect orders over a short interval, for example 100 milliseconds, and match them together at one price, so arriving a microsecond earlier within the batch does not matter. Whichever we choose, the access products must be offered on published, equal terms.
| Option | Latency | Cost | Fairness and control |
|---|---|---|---|
| Colocation, own hardware | low, equal paths, tight tails | high fixed cost, specialist staff | full control of paths |
| Public cloud | variable, harder tail bounds | low start, pay as used | shared network, less control |
| Hybrid: core in colocation | core predictable | moderate | core controlled, edges flexible |
| Any, plus speed bump or batches | small fixed delay added | little | tiny speed gaps stop mattering |
4The Hybrid Option
Not every part of a venue needs microseconds. Only the path from client gateways through the sequencer and matching engine to execution reports is latency-critical. Market data distribution to the wider public, client portals, reference data, surveillance and analytics, regulatory reporting and the disaster recovery site can all run in the cloud, where they gain elasticity and lower cost. A common design puts the core in a colocation facility and the rest in the cloud, connected by dedicated links.
- Client gateways (colocation)equal-length connections, rate limits
- Sequencer and matching engine (colocation)deterministic core, journal replicated
- Primary market data feed (colocation)low-latency, published terms
- Dedicated linksjournal and data copied out
- Cloud servicespublic data, portals, surveillance, reporting, analytics
- Cloud disaster recoverywarm engine replica, tested recovery time
6 layers, from the top down. Step through them one at a time.
Only the core needs colocation; everything else gains from the cloud.
Disaster recovery in the cloud deserves care: it must meet the regulator's recovery time, and its latency profile will differ from the primary, which participants need to know in advance.
5Making the Decision and Keeping It Reversible
I would bring four kinds of evidence. Total cost over five years, including hardware refreshes, data center contracts, network, and the specialists colocation needs. Latency percentiles measured under realistic load, including the 99.9th percentile, from a prototype engine in both environments, not vendor figures. Regulatory advice for each target jurisdiction. And the expectations of the trading community, gathered by talking to prospective members, market makers and brokers about what would make them trade on the venue.
Whatever we choose, I keep the engine portable: no dependence on one cloud provider's proprietary services in the core, infrastructure described as code, and the same deterministic engine and journal design in every environment. That way we can start in one place and move as the asset class, its regulation and the venue's volumes mature.
6Follow-up questions
Could a new venue start entirely in the cloud?
Yes, if the asset class's participants accept millisecond-level latency and the regulator allows it, and some newer venues have done so. Combining cloud hosting with batch auctions or a speed bump makes variable network latency matter much less, because tiny timing differences no longer decide who trades.
How do you guarantee fair arrival order in practice?
By giving every client the same path length to the gateways, timestamping messages at the edge with synchronised clocks, sequencing at a single point, and publishing the access options and their latencies. Regular latency reports per connection type help show participants that the rules are applied equally.
Who should make this decision?
The technical leader owns the architecture and the evidence, but the decision is shared with the business owner of the venue, compliance and legal for the regulatory side, and market structure experts for the fairness questions. Presenting it as a set of trade-offs with numbers lets each group weigh in on the part they understand best.
7Conclusion
In this answer, we saw that a venue's latency matters most as consistency and fair arrival order, which colocation provides at a high fixed cost and shared cloud networks find harder to guarantee. Regulation for the asset class and each jurisdiction should be checked before choosing, and selling speed brings revenue but can harm fairness, which speed bumps or frequent batch auctions can offset. A hybrid with core matching in colocation and everything else in the cloud is often the balance, decided with total cost, measured latency percentiles, regulatory advice and community input, and with the engine kept portable.
Open with
I would start from what participants value: consistent latency and fair arrival order matter more than the lowest possible number. Colocation with equal-length connections gives tight, equal latency but at a high fixed cost; public cloud is cheaper to start but its shared network makes tail latency harder to bound.
Then, if they want more
Before choosing, I would get regulatory advice for the asset class in each jurisdiction, on resilience, audit trails, clock accuracy, outsourcing to cloud providers and how access must be offered.
On selling speed, colocation and premium feeds are revenue, but a new venue needs broad order flow, so I would offer access on equal published terms and consider a speed bump or frequent batch auctions so tiny latency differences stop mattering.
The likely design is a hybrid: gateways, sequencer and matching in colocation, and market data distribution to the public, portals, surveillance, analytics and disaster recovery in the cloud.
I would decide with five-year total cost, latency percentiles measured from a prototype under load in both environments, regulatory advice and conversations with prospective members, and keep the engine portable, with no proprietary cloud services in the core, so we can move as the market matures.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "As the senior technical leader, how do you weigh latency, fairness, cost and regulation...": https://scrivio-interview-library.netlify.app/architecture/system-design-problems/9b497595ed/