apisauce icon indicating copy to clipboard operation
apisauce copied to clipboard

Getting concurrent multiple api calls hits to the backend server

Open john1jan opened this issue 6 years ago • 4 comments

We use react-native-ignite and apisuace for my application. There is a weird problem where some of the POST api's are hitting multiple times to the backend server which chokes the server and makes the server down. Has anyone faced this problem?.

Backend server gets more than 500 concurrent requests within a second. And this behavior intermittent.

john1jan avatar Nov 28 '18 05:11 john1jan

@john1jan Are you still encountering this issue? Do you have any concrete repro steps to show that apisauce is causing the problem rather than something else in your code?

robinheinze avatar Dec 28 '18 19:12 robinheinze

I am not able to provide concrete steps to reproduce this. But our backend server gets choked. Is there any way I can debug this? Posted a question on this in StackOverflow https://stackoverflow.com/questions/53513337/getting-concurrent-multiple-api-calls-hits-to-the-backend-server-in-redux-saga-w

john1jan avatar Jan 02 '19 13:01 john1jan

@john1jan Are you sure this is an apisauce issue? I'd really like to see a minimal repro, because otherwise I've never encountered this before.

jamonholmgren avatar Jan 02 '19 23:01 jamonholmgren

any update, as apisauce is an Axios wrapper and Axios support multiple API calls like axios.all([ call 1, call 2, call 3 . . . . ]);

Sajid-Ali avatar Sep 28 '20 18:09 Sajid-Ali