HomeInterview QuestionsWhy do we have to make multiple calls? Can't we do…

Why do we have to make multiple calls? Can't we do a single call and then partition the data?

🟡 Medium Conceptual Junior level
1Times asked
Jul 2026Last seen
Jul 2026First seen

💡 Model Answer

Multiple calls are often used to keep each request lightweight, improve cacheability, and reduce the risk of timeouts. A single call that returns a large payload can overwhelm the client, consume excessive bandwidth, and increase latency. Partitioning data after a single call also requires the client to download the entire dataset before filtering, which is inefficient. By breaking the data into smaller, logical chunks (e.g., pagination, filtering, or range queries), the server can send only what the client needs, enabling faster responses and better scalability. Additionally, multiple calls allow the server to apply different security or rate‑limiting rules per endpoint, and they make it easier to cache common subsets of data. Therefore, while a single call with client‑side partitioning is possible, it is usually less efficient and harder to maintain in production systems.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500