Skip to content

Server-side vs. client-side API requests: Best practices for handling multiple API calls in a web application #144428

Discussion options

You must be logged in to vote

Hi @bisky0-0 ,

For handling multiple API requests in a complex web application, I would suggest using GraphQL as a powerful solution. GraphQL allows you to aggregate multiple data sources into a single endpoint, reducing the need for multiple API calls. This minimizes latency, as clients can request only the exact data they need in one query, which improves performance on both the client and server sides. Additionally, handling requests server-side with GraphQL enables you to securely manage API keys and optimize data fetching logic. For a financial application requiring frequent updates, GraphQL subscriptions also support real-time data, allowing you to update components dynamically as n…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bisky0-0
Comment options

@mastertanzeel
Comment options

Answer selected by bisky0-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
2 participants