Skip to content

Job scheduling service that can streamline credit card statement generation.

Notifications You must be signed in to change notification settings

k2kuldeep/SchedulerApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SchedulerApp

Job scheduling service that can streamline credit card statement generation.

Download kafka and extract it.

Run Kafka By using CLI Commands

  • Step 1. Run Zookeeper Server
$ bin/zookeeper-server-start.sh config/zookeeper.properties
on windows:
kafka-3.7.1>bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
  • Step 2. Run Kafka Server
$ bin/kafka-server-start.sh config/server.properties
on windows:
kafka-3.7.1>bin\windows\kafka-server-start.bat .\config\server.properties
  • Step 3. Run the producer server. In this app, a scheduler will fetch the transaction details of users whose statements are to be generated today and send them to the Kafka server for further processing.
producer>mvn spring-boot:run
  • Step 4. Run the consumer server. Receives the transaction details of users from the Kafka server and generates the card statement document for each user.
consumer>mvn spring-boot:run

Demo

Insert 5 users: http://localhost:8080/insertUsers/5
Check users in h2 database: http://localhost:8080/h2-console
password=sa

img_1.png

Add transaction for each user: http://localhost:8080/doTransaction?userId=10001
Send : http://localhost:8080/sendCardStatementRequestToKafka

Check the generated documents at location

consumer\credit-card-statements

Generated Card Statement image: img.png

About

Job scheduling service that can streamline credit card statement generation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages