ArjunVachhani / order-matcher

simple, fast and feature rich order matching engine supports limit, market, stop-loss, iceberg, IOC, FOK, GTD orders
MIT License
137 stars 70 forks source link

Support for distributed deployment #12

Closed Vachhani248 closed 4 years ago

Vachhani248 commented 4 years ago

Support for distributed deployment ?

ArjunVachhani commented 4 years ago

Can you please elaborate more? What you are looking for High Availability? or having few markets in machine A and rest of the markets in machine B?

ArjunVachhani commented 4 years ago

@wunaigong please re-open this issue if you need any info.

ArjunVachhani commented 1 year ago

@wunaigong I think correct way to do it is integrating order-matcher with any raft consensus implementation. Raft consensus algorithm takes care of distributed, high available and fault tolerant aspects. The only requirement for raft state machine is that state machine must be deterministic. order-matcher is a deterministic state machine.

Aeron cluster is implementation of raft.