Difference between graphql server and api gateway

Viewed 44

What is the difference between GraphQL Server and API Gateway ? As it both can combine the response of multiple apis and can do authentication, input validation, metrics.

1 Answers

A gateway is a server that routes traffic, it is a commonly used system design pattern as described here by Martin Fowler.

You can implement a gateway in any layer of the OSI model.

You can use it to route TCP, UDP packages in the transport layer, DNS queries, HTTP requests in the application layer, or even in a motherboard bus of a computer.

A Graphql Server is a web server, in the application layer of the OSI model, that implements the GraphQL spec.

You could implement a gateway using a Graphql server.

Related