TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

GraphQL at PayPal: An Adoption Story

9 点作者 arberavdullahu超过 3 年前

2 条评论

mbStavola超过 3 年前
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 未加载
switch007超过 3 年前
&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 未加载