Is calling multiple APIs from a mobile app harmful?



I am developing an Android app with sails.js backend. Assume that I have 3 different APIs, namely A, B and C. These APIs only fetch data return them with minor / no computations or update values in the databases. Each of these APIs take 300-400ms respectively on live.

Currently, I am running on a micro EC2 instance of Amazon Linux, which will be scaled as more users come in.

Is it a good idea calling 3 APIs from the Android app or having a single APIs which performs the job of all 3 APIs in a single call? My idea of creating 3 different APIs is to reuse the same in my AngularJs front end.


It is a good idea in terms of reusability as you’re already using these APIs. But I would still go with an API that summs up the functionality of three calls with one just because mobile device don’t always got a good internet connection. Using a single API call requires less traffic and decreases the loading and response time.
I would recommend measuring the API call time with the android emulator using extreme connection settings (EDGE, high latency) and compare the results.

Answered By – davidgiga1993

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More