Twelve Seconds to the Open
Easy · system design problem
The market opens in 12 seconds and order flow will double. The risk engine cannot scale in time, and the gateway’s p99 budget is 45 ms.
order-gw forwards 20,000 orders/s to the risk engine synchronously. At T+12s the market opens and order flow doubles for a minute. Risk instances take 30 s to start. The firm accepts asynchronous risk checks (orders are acknowledged, then checked within a minute), but the gateway’s p99 latency must stay under 45 ms — every millisecond is money.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.