Articles
Learn about how the folks at Hexact Inc. have been handling the live 1 million GraphQL web socket subscriptions on Google Cloud Kubernetes. Tigran Bayburtsyan explains how their infrastructure is set up and how they used a custom-built PubSub library. The article also discusses the benefits to using GraphQL subscriptions to provide more interactive UI to users.
Ming Horn from NerdWallet shares some tips and learnings on migrating several screens from Redux to Apollo GraphQL. She takes you through the steps of migration, from writing GraphQL schema and resolvers to making your first query. She mentions the two complex issues she ran into with the schema and Redux store and how she solved the issues with a HOC.
This in-depth guide details how to implement some of the best practices in securing a GraphQL API from abusive queries by clients. Sample code snippets are provided throughout on how to limit query complexity, automatically persist queries, rate limit based on server time, and more. The guide includes resources to help protect your GraphQL endpoint and apply best practices for authentication and authorization.
Tools & Open Source
Check out Hypnos, a new desktop application to sandbox GraphQL calls to RESTful APIs. Some features include a local query history from your sessions, multiple tabs that save the endpoint and query, and authenticated APIs. Available for Mac or Windows, Hypnos can be easily installed and supports calls to both open APIs and APIs requiring a key.
Videos
In this video lecture, Robert Pitt discusses different ways to use microservices with GraphQL. He talks about how to use schema stitching to use GraphQl with a microservice architecture.
Watch as Ben Awad analyzes the pros and cons of GraphQL vs REST that he learned after building two side projects. Using GraphQL Playground, he provides insight into the advantages, such as no over/under fetching and no versioning of an API, and disadvantages, like complexity in fetching data efficiently. Ben adds his final thoughts on how to decide when a project is better suited for using GraphQL or REST.