Proof of Concept for Scalability Architecture Stream
TBD
Ensure you have the following Pre-requisite tools installed:
If you are running on MacOS, you may need to export the following environmental variables to build node-rdkafka (required by ml-api-adapter & central-services-stream):
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
This project uses Lerna to manage packages and their respective dependencies. All individual modules (i.e. packages in Lerna speak) are their own respective micro-service/library which uses standard NPM for management, lerna will inject the dependencies when running NPM install at the root-level of the project.
Note: Lerna will manage project dependencies and build order based on each package's package.json
.
npm install
You can build all the packages by running
npm run build
Add the following line to your /etc/hosts
file:
127.0.0.1 simulator
npm run docker:kafka:start
npm run docker:kafka:start
npm run start:participants
- Add Validation to Events - (don't need it for now)
- Add Validation to Commands - #1435
- Add support for
thresholdAlarmPercentage
to limits, and implementation on position changes forreserve
(prepare) andcommit
(fulfil) - Parallelize Validations for FSP-checks
- ...
- Unhappy Paths Scenarios
- Validation failures on incoming Events/Commands
- un-reserve position for PayerFSP on Rejection/Abort from PayeeFSP
- un-reserve position for PayerFSP on timeouts
- ...
npm run start:transfers
- Add Validation to Events - (don't need it for now)
- Add Validation to Commands - #1435
- Optional config flag to support disabling On-Us transfers (currently support both On-Us and Off-Us unlike the As-Is switch implementation)
- ...
- Unhappy Paths Scenarios
- Validation failures on incoming Events/Commands
- Validation of expiration date on fulfils
- Duplicate Checks for Prepare leg (support GET operations?)
- Duplicate Checks for Fulfil leg (support GET operations?)
- Rejection/Abort from PayeeFSP
- Rejection/Abort on timeouts
- ...
Handle currencies with something that can handle arbitrary precision (or at a minimum big numbers, etc)Prometheus Metric Instrumentation & Dashboards - #1417Tracing Support - #1417Helm charts for deployment #1434- Add support for currency specific ISO precision validations (validation as part of transfer handler or perhaps commands/events?)
- Non-inflight Long-term Persistent Storage for Reporting (contains full history of transfers, transfer-state-changes, position-state-changes, participants, etc)
- Assign completed transfers to a Settlement Window
- Make sure all interfaces start with an 'I' and types start with 'T'
- Maybe?? Move the aggregate load logic to the base class (not throwing), so the higher level implementation can start by verifying if the rootEntity exists and checking for consistency
Implement log guards on methods, to avoid parameter expansion (that respects LOG_LEVEL)
@typescript-eslint/no-misused-promises
lint issue disabled on several places, e.g. kafka_generic_producer.ts