Sharding users among multiple threads in the matching engine allows running concurrent liquidation engines, one per shard. Can't scale unless you go parallel.
#bitfinex
-
-
Replying to @paoloardoino
What do you do if liquidations in one thread move the price, causing or canceling liquidations in another thread? And I guess in general how do you handle users in different shards sending orders that would potentially change placability for users in other shards?
1 reply 0 retweets 16 likes -
It's always been my understanding that this is the biggest challenge. Sequential processing vs. multi-threading is difficult.
1 reply 0 retweets 4 likes -
exactly multi threading users on different threads wont let the matching engine match orders on FIFO, which can be achieved through concurrency but not through parallel processing. It is one of the major problems in Computer science which cant be horizontally scaled.
0 replies 0 retweets 2 likes -
This Tweet is unavailable.
-
Replying to @crypto_disaster @lowstrife and
If a big market order is coming in from one queue and a limit order is coming in from Another the market order takes the liquidity at which the limit order was going to add liquidity to the book then what?
2 replies 0 retweets 1 like
Paolo Ardoino Retweeted Paolo Ardoino
I replied on a RT because I am too lazy to split manually a long reply in different comments. Sorry.https://twitter.com/paoloardoino/status/1239125038755917824 …
Paolo Ardoino added,
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.