Solve complex business problems using simple event sourcing implementation and CQRS pattern with Kafka Streams
-
Monitor and measure expected daily gross liquidity in-flows and outflows.
-
Monitor and alert intraday liquidity exposures against the available liquidity sources.
-
Manage and mobilize sufficient liquidity funding sources to meet the liquidity de-mands and avoid shortfalls.
References:
-
http://www.riskpro.in/blog/admin/intra-day-liquidity-risk-management
-
https://www.confluent.io/blog/event-sourcing-cqrs-stream-processing-apache-kafka-whats-connection/
- JDK 11 or 8
- Maven 3.8.x
- Java
- Kafka 2.6
- Kafka Streaming API
mvn clean install
Use the following link to install and run Kafka in few minutes
https://kafka.apache.org/quickstart
- Participant Intraday liquidity Managment Program (participant-payment-collateral)
- Various Simulators
java -cp target/participant-payment-collateral-1.0-SNAPSHOT-jar-with-dependencies.jar work.exampledemo.streaming.ea.kafka.streams.PaymentTransactionsProducer
Run this to create CQRS process to stream the data to Ktable. The final log is stream of Participant Payment Collateral running Balance (Main Program)
java -cp target/participant-payment-collateral-1.0-SNAPSHOT-jar-with-dependencies.jar work.exampledemo.streaming.ea.kafka.streams.PartPayCollate
java -cp target/participant-payment-collateral-1.0-SNAPSHOT-jar-with-dependencies.jar work.exampledemo.streaming.ea.kafka.streams.SettleTransProducer
java -cp target/participant-payment-collateral-1.0-SNAPSHOT-jar-with-dependencies.jar work.exampledemo.streaming.ea.kafka.streams.FundingDefunding
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --from-beginning --topic participant-collate-log