Skip to content

malam84/executor-resttemplate-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

executor-resttemplate-microservice

This application describes in detail to call microservices rest api parallelly using executorservice

Please follow below steps to recreate this demo in your own system

Clone the code using $git clone git@github.com:malam84/executor-resttemplate-microservice.git

account-info Services:

Step1: Please access account-info folder and provide correct mysql root, password and database name inside application.properties file and also repeat for flyway.

Step2: Run below maven command
$ mvn -DskipTests clean install
$ mvn spring-boot:run

Step3: Test these two api in postman
1. accinfobyaccno
2. accinfobycustid

test1



customer-info Services:

Step1: Please go inside customer-info folder

Step2: Run below maven command
$ mvn -DskipTests clean install
$ mvn spring-boot:run

Step3: Test these api in postman
1. accountexecutorsev
accountexecutorsev api calling account-info multipe time parallelly without blocking other task and catch error if exception occur

test2

  1. customerdetail api fetch account infomration synchronously
    http://localhost:8080/api/customerdetail?custId=cust102

About

This application describes in detail to call microservices rest api in parallel using executorservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages