This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: w57NkOJlRLZAlMHDv8DyyXRcRKeBPq6PyQLOcd16LRY
Cover

Here's How I Scaled A Cryptocurrency Exchange's Trading Engine to 1 Million TPS

Written by @siddharth | Published on 2020/7/31

TL;DR
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.

[story continues]


Written by
@siddharth
I imagine, design and build interesting ideas.

Topics and
tags
cryptocurrency|golang|concurrency|scaling|crypto-exchange|cryptoexchange|cryptocurrency-exchange|crypto-exchange-architecture|web-monetization
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: w57NkOJlRLZAlMHDv8DyyXRcRKeBPq6PyQLOcd16LRY