Too Long; Didn't Read
The matching engine takes in multiple orders at once, maintains them, does the computations and pushes out trades. The server crashed consuming 100% CPU capacity, messaging queues started getting stuck. A single failure or any wrong calculation could put the exchange at risk, mostly at the financial end breaking the user's trust. Go-routines have minimal context overhead. They do context switching only in well-defined situations, go-routine becomes co-operative, very likely to become very likely.
Share Your Thoughts