Microexchange
Microexchange is a monolith exchange implementation. It is composed of 4 major components:
orderserver
, orderload
, and the dispatcher
.
Components
- orderserver: takes in orders and records clients in a subcomponent
clientManager
- orderload: receives orders from the
orderserver
sorts them by time and the submits them to theorderbook
– changes the state on the orderbook. - orderbook: provides api to manage the orderbook state.
- dispatcher: dispatches state changes on the orderbook to the given clients.
Future improvements
. complete clientManager . tie dispatcher to clientManager . provide main function – tie the components together . provide fault tolerance through etcd, or 2 phase commits for completed trades. i.e . snapshot the database