parallel processing
Hi All,
we have below requirement which needs parallel processing or multi threading.
We have exposed a service rest to validate user account information in different Tables. like CreditCard, PersonalLoan and HomeLoan tables to send number of time user account holder failed to Pay bills/EMis ontime , so the Sample request that I would be receiving is
{
"AccNo":"123456789",
"DOB":"01-01-1988",
"CustID":"ABC123"
"FName":"ABCDEF",
"LastName":"XYZ",
"ValidationTypeList": ["CC","PL","HL"]
}
When I receive the above request i need to hit 3 different tables and 3 different validation logic for each validation type and all are independent so We are trying to implement parallel processing based on validation typeList instead checking one after the other, like one thread can go and check CreditCard Info Table, one another thread can check Personal Loan info and other can check HomeLoan in parallel and at the end we have to bundle all the 3 responses into one and send back the response to the requestor . Can you please let me know best approach . FYI : this service we provided as synchronus service
Thanks