Here's How I Scaled A Cryptocurrency Exchange's Trading Engine to 1 Million TPSby@siddharth
640 reads
640 reads

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

by siddharth4mJuly 31st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Here's How I Scaled A Cryptocurrency Exchange's Trading Engine to 1 Million TPS
siddharth HackerNoon profile picture
siddharth

siddharth

@siddharth

I imagine, design and build interesting ideas.

About @siddharth
LEARN MORE ABOUT @SIDDHARTH'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

siddharth HackerNoon profile picture
siddharth@siddharth
I imagine, design and build interesting ideas.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!