Join us from October 8-10 in New York City to learn the latest tips, trends, and news about GraphQL federation and API platform engineering.Join us for GraphQL Summit 2024 in NYC
Docs
Start for Free

Performance

Improve your supergraph's request and response performance


The Performance pillar focuses on improving your 's runtime performance. A well-architected supergraph platform not only delivers a great end-user experience. It also provides ways for its developers to proactively improve both real and perceived performance. Additionally, it gives developers the documentation and tools they need to ship and measure those changes effectively.

Principles

Enable developers to improve perceived end-user latency

Improving perceived end-user latency is crucial for organizations that rely on digital services. Slow loading times can cause high bounce rates and lower conversion rates, hurting revenue. These are some techniques developers can use to improve perceived end-user latency:

  • Using response compression
  • Prioritizing data with @defer
  • Using /real-time features

Configuring trace sampling and using can further also help reduce request sizes and latency. -level latency metrics can also help consumers make informed choices about shapes.

Enable subgraph developers to improve graph performance

developers can also help improve the performance of the supergraph by optimizing their subgraph's performance. Best practices include:

  • Leveraging caching to improve the performance of and s
  • Using dataloaders in resolvers
  • Implementing () to improve request latency

Find opportunities to improve performance

Observability tools can be invaluable in identifying opportunities to improve the supergraph's performance. execution metrics and distributed traces aid in optimizing the performance of individual components. Additionally, operation traces can help identify bottlenecks and inefficiencies across the system. By leveraging these observability tools, teams can proactively address performance issues before they impact end-users.


Learn more with the SAF assessment
Previous
Reliability
Next
Developer Experience
Rate articleRateEdit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company