rest – What are the differences between server-server communication vs client-server communication

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…

  1. My client requests the 5kb from my graphql server, which then fetches the 500kb data from my rest api server?


  1. My client fetches the entire 500kb from my rest api server?

Caching considerations are definitely welcome.