[SOLVED] Difference between graphql server and api gateway


This Content is from Stack Overflow. Question asked by Ajay S

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


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.

This Question was asked in StackOverflow by Ajay S and Answered by Tiago BĂ©rtolo It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?