Introducing GraphQL to Microservice Architecture: A Case for Splitting Queries and Mutations into Separate Services

Photo by Pankaj Patel on Unsplash

Abstract

Introduction

A simple example of a system exposing its complexity and architecture

API Gateways

GraphQL

Transferring GET requests to GraphQL was easy and elegant. Suddenly 20 microservices were exposed into one, easy to understand object.

Mutations

Splitting the Monolith

query user {
email
posts {
body
}
}
mutation createPost(input:{…}) {
body
}

Software Architect