Hi below is my problem scenario
I have a Java Servlet which can handle http requests to 4 different servers. So for one user in my database I have to make 20 different API calls to each of the server i.e. 80 http calls.
Now i have 1000 users which makes it 80000 calls one time to retrieve data and store in my database.
The problem part is that I have to call this after a gap of every 10 mins to get the new data. So i have a scheduler to do so. So finally its 80000 calls every 10 mins from my servlet and handling the response. I need to optimize the situation and improve performance somehow with threads Async Calls or both or some other way.
Have anyone faced a similar situation? Please help me optimize it.