If you’re actively into GraphQL API development, you should check out GraphCDN. Unlike traditional CDN, GraphCDN focuses on caching your GraphQL API calls. This helps in faster retrieval of data from edge servers around the world.
Let’s check out some of the features.
GraphCDN Architecture & Caching
GraphCDN sits between your GraphQL Client and GraphQL Backend.
It has 58 edge servers around the world powered by Fastly. For those of you who are not aware, Fastly is an edge cloud platform provider, which is designed to help developers extend their core cloud infrastructure to the edge of the network, closer to users.
It caches your GraphQL query results at the edge servers which can help to reduce your origin traffic by 95% along with a fast performance.
When it comes to caching, developers might have the concern of retrieving updated data. GraphCDN has smart purging – which means if your data gets updated through a mutation, it automatically purges the older cache and adds the updated data into the cache. You can therefore get fast performance for your updated data as well.
GraphCDN Analytics
Like traditional CDN, GraphCDN provides analytics for cache hits and misses.
You can monitor performance by checking origin response times to specific queries and mutations.
It also provides analytics on errors for your GraphQL queries which can be pretty useful.
You can also monitor the pages and countries from which GraphQL queries are triggered.
Security
GraphCDN has an additional security measure to limit the depth of the queries. This prevents hackers from making nested GraphQL queries and retrieve data.
It also offers DDoS attack protection. Like other traditional CDN, it filters out network floods that can cause performance issues.
It also monitors the volume of traffic for your GraphQL queries. Users are notified if there are any occurrence of unusual traffic against your API.
Pricing
GraphCDN currently allows you to make 5 million requests per month for free. You have to pay an additional $10 per additional 1 million requests per month. It allows you to create unlimited users and APIs.
Make sure to check it out.
That’s all for this article. Thank you for reading.