- Using distributed transaction to processing match-orders
- Optimize order queues using skip lists
- Support token revocation and token renewal
- Optimize order data with reading and writing separation
The trade-engine module implements an efficient matching system, focused on order matching and order book management.
The external system calls via gRPC, only needing to pass in the required fields for matching. Once matching is complete, trade tickets are sent to Kafka, where downstream services subscribe to relevant topics for further processing.
Feature:
- High cohesion and low coupling, with a focus on internal trade matching and order book management
- Supports gRPC calls
- Use a skip list to implement bid and ask queues
Improvements that can be added:
- Ability to cancel an order
- Monitoring
- Back up the order book in persistent storage
- Add payment module
- Add front-end page