Trading

1 post in this section

Design a Stock Exchange

Every design in this series so far has scaled out. More partitions, more replicas, more nodes.

This one scales in.

The fastest exchanges in the world run almost everything — order manager, matching engine, market data publisher — on a single server, sometimes in a single process. Not because they can’t afford more machines, but because the network hop between two machines costs more than the machine does.

That inversion is what makes this chapter worth reading. Everything you’ve been taught about distributing work stops applying when a round trip costs more than your entire latency budget.

Continue reading »