TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

GraphQL at PayPal: An Adoption Story

9 pointsby arberavdullahuover 3 years ago

2 comments

mbStavolaover 3 years ago
As someone who is exploring a GraphQL &quot;migration&quot; for a rather large project, I&#x27;m interested to hear more about the issues in practice from people who&#x27;ve had to work in GraphQL environments on long timescales. I see a lot of the pro-GraphQL people talking up the advantages but never really the drawbacks.<p>I&#x27;ve had some concerns about GraphQL in the past when it was first coming up, but they look to be mostly addressed in some way shape or form. For example, using a CDN is now viable without hacks if you utilize something like Apollo Persisted Queries. Most of the research I&#x27;ve done on the topic recently has come up with a lot of outdated criticisms.<p>On that note, it almost feels as if people wrote off GraphQL in the beginning and have largely ignored the developments since. The people already on board the train seem to write more to an existing audience of users rather than people looking to get in.
评论 #28395608 未加载
switch007over 3 years ago
&gt; Avoid multiple round trips: Often, in order to call one endpoint that required a certain parameter, such as &#x2F;getProfileById&#x2F;{id}, we would have to call additional endpoints as a pre-req, such as getUser{username} to returnparameters such as id. This was a problem because we were making multiple round trips to fetch one piece of information. GraphQL helped solve this problem because it allowed us to fetch everything we need in one round trip.<p>Why not add another URL? &#x2F;getProfileByUsername?<p>Nothing stops you building another layer of endpoints to service your frontend.
评论 #28387495 未加载
评论 #28380583 未加载