Way to improve Rest Webservice performance which call other API

Viewed 1906

I have a webservice ABC

ABC Operations:
A. Call XYZ web service
B. Store response in db
C. return result

Overall ABC Responce time = 18 sec
XYZ Response Time = 8 sec.
Only ABC Response time = 18-8 = 10 sec

I want to minimize response time of ABC service.

How can this be done?

Few things I though:
1.Send part request and get part response = But its not possible in my case.
2. return response and perform db in asynchronous manner. (Can this be done in reliable manner?)
3. Is there any way to improve the db write operation?

2 Answers
Related