How does server-server communication compare to client-server communication?
I’m wondering if there are any performance benefits when putting a GraphQL layer in between my client-side app and my rest-server. For arguments sake, let’s say an endpoint on my rest api returns a response with 500kb of data. My client only needs about 5kb of that 500kb. Is it quicker if…
- My client requests the 5kb from my graphql server, which then fetches the 500kb data from my rest api server?
- My client fetches the entire 500kb from my rest api server?
Caching considerations are definitely welcome.