Hi
I am working on a large scale application that relies heavily on Apollo Server for our GraphQL API. While it works well for the most part…, I am noticing performance issues when handling high traffic, especially during complex queries that hit multiple resolvers.
What I have tried so far:
Added dataloaders to batch and cache resolver calls.
Used Apollo Server plugins for performance tracing and monitoring.
Optimized MongoDB queries using indexes and aggregation pipelines.
Still…, during traffic spikes, we see latency increases, and occasionally, the server struggles to scale effectively.
What are some best practices for optimizing resolver performance in high-traffic scenarios: ??
How can I leverage Apollo Server caching more effectively: ??
Any recommended patterns or tools to manage resolver complexity better: ??
I have also gone through official guide https://www.apollographql.com/docs/apollo-server/getting-started-python but still need some help. Would love to hear your experiences and tips for handling these challenges!
Thanks in advance!