Error Handling in Spring for GraphQL

The Problem Recently, I wrote some GraphQL endpoints and got a bit blocked when I came to the error handling mechanism. Usually, when writing REST endpoints, you either go for a particular @ExceptionHandler for your controller or you go for the @ControllerAdvice to handle exceptions globally for multiple controllers. Apparently, that is not the case … Read more

How to Create a GraphQL Gateway With REST APIs | by Martinez Pupo Ivan | Jul, 2022

Exploring different options and challenges Photo by Clayton on Unsplash How many times when working with REST-based distributed architectures, we end up with projects having API complexity problems, because, as the project grows: more and more services directly depend on / care coupled with each other data aggregation between the services (for eg frontend consumption) … Read more

GraphQL in Enterprise: What It Takes to Build, Deploy, and Monitor a New Enterprise GraphQL Service

New technologies always require some planning, changes, and experimentation before they merge into an enterprise stack. GraphQL adoption has been no exception to this. Companies like Airbnb, Netflix, Shopify, and other industry giants have all taken the leap to use this promising technology. In this article, I will outline a few key considerations for creating … Read more

Building GraphQL Server Using Schema-first Approach in Python | by Logesh | Jun, 2022

Handle CRUD operations with ease Photo by Douglas Lopes on Unsplash Schema-first approach is nothing but we first define the schema for our GraphQL service and then we implement the code by matching the definitions in the schema we defined. We will be using the Ariadne library for this. Ariadne is a Python library for … Read more

Load Testing GraphQL Performance With k6 and StepZen | by Roy Derks | Jun, 2022

A brief guide to easier load testing For many companies, performance is the main reason to go with GraphQL. But is that a valid argument? Often developers compare GraphQL to REST APIs and see the N+1 requests (or overfetching) as an important reason to choose GraphQL. Let’s put that to the test and explore if … Read more

Kubernetes GraphQL Dynamic Query in Go | by Stefanie Lai | Jun, 2022

Play some magic with client-go DiscoveryClient In the first episode of Kubernetes GraphQL Query in Go, we built the server code using GraphQL to query Pods in a cluster. However, such queries are poor in flexibility and scalability since the definitions of the related graphql.Feilds are all hard-coded, which needs refactoring. So here comes the … Read more

Kubernetes GraphQL Query in Go. Build GraphQL server for searching… | by Stefanie Lai | Jun, 2022

Build GraphQL server for searching Kubernetes resources in the cluster In shared-cluster governance, part of our responsibility is to allow users to access their resources, which we fulfill by RBAC to assign reasonable permissions and enable users’ queries via kubectl. “None barrier” to back-end developers, while not the case for users like mobile, web, and … Read more

Cloud complicates development, but GraphQL and supergraphs offer hope

We live in the golden age of cloud computing. For consumers, it’s a wonder. For developers, it’s a complete and utter mess. For all the problems with monolithic application architectures (and there are relatively many), they’re straightforward: Take an app server and database and wire them to a browser interface. Simple! By contrast, today’s applications … Read more