Company
Date Published
Author
Prosper Otemuyiwa
Word count
988
Language
English
Hacker News points
None

Summary

Apollo Server 2.0 introduces Automatic Persisted Queries and CDN caching as a production-ready GraphQL API solution, reducing network performance bottlenecks by improving request sizes and query strings. This feature is built-in and open-sourced, eliminating the need for external components like the Engine Proxy. With APQ, clients can share small hashed representations of queries with servers, which then store full query texts in registries for subsequent requests. CDN caching enhances network performance by delivering data faster to clients through a content delivery network (CDN). By setting up a CDN and configuring cache hints on the schema, developers can improve network performance and reduce latency. Additionally, Apollo Server 2.0 includes features like Data Sources, File uploads, metrics handling, subscriptions, and more, with updated documentation and best practices guides to help developers get started.