1/7 Problem: How to scale trading/liquidation engines up to 500k/1M/10M users? 100k users are manageable, but eventually single threaded architecture will bottleneck growing number of users.https://twitter.com/paoloardoino/status/1238965074427088903 …
-
-
4/7 * Each LE sorts users by risk (probability of getting liquidated). * Improvement: a single shared sorted map can be generated across the threads
Show this thread -
5/7 * Depending on the size of the position to be liquidated, LEO can be run into the book or positions can be acquired by the system and sold via more complex algos. We call it liquidation stages (LS).
Show this thread -
6/7 * When a LEO gets processed, the OB thread evaluates (querying UD) if the user should still be liquidated and using which LS. * We tested this system with 100sK users + apocalyptic cascading liquidations and ended up always in ensuring the 0-sum game
Show this thread -
7/7 * Complexity of this solution relies in write tests (we have more than 1000 automated simulations running) * Happy to elaborate if not really clear. * These are the types of solutions used in huge brokers with M of customers. No much way around it.
Show this thread
End of conversation
New conversation -
-
-
This Tweet is unavailable.
-
That would be too inefficient. Too much locking / net etc.. involved.
- Show replies
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.