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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Every complaint against GraphQL can be traced back to poor schema design

3 点作者 jdauriemma6 个月前

2 条评论

taylodl6 个月前
Poor schema design?<p>Here&#x27;s my take: anytime a client requires knowledge of your DB schema is a #fail. That&#x27;s an extremely brittle architecture that&#x27;s destined to provide years of problems.<p>This is why CQRS exists. Copy the contents of your database to another database that&#x27;s optimized for query and retrieval. It has the added benefit of a deluge of queries won&#x27;t impact operations utilizing the source database. Also, the source system can modify the schema all they want without impacting tens, hundreds, or thousands of clients. You can distribute it, shard it, do whatever you need to do to make it fast and efficient - all without affecting the source database.<p>That is how you solve this problem. Once you&#x27;ve done that, GraphQL just becomes one of many ways that a client can use to access the data, depending on the data management toolset you&#x27;re using.
评论 #42217649 未加载
pestatije6 个月前
well if thats the case, theres your problem: GraphQL schema design is broken
评论 #42218853 未加载