Microexchange is a monolith exchange implementation. It is composed of 4 major components:
orderload, and the
- orderserver: takes in orders and records clients in a subcomponent
- orderload: receives orders from the
orderserversorts them by time and the submits them to the
orderbook– 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.
. 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