TS project to simulate trading sub-system activity. The simulation is based on the following interaction diagram:
The scope was to create a generic representation of the trading sub-system and confirm its ability to support 200 users averaging 5 TPS for a 1h
NOTE: The projects required node and npm install and available.
- Run
npm install
thennpx tsc
to compile the resources - Run the simulation
node dist/simulate.js
, let the system run for some time and then interup withCTRL + C
- As part of the simulation, logs will be produced. Create a
report
folder inside the project, then run the log processornode dist/log-parser/transactionsProcessor.js
- A CSV file will be produced which need to be processed (I used Excel)