<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>013a</author><text>GraphQL to REST is a more typical comparison. In this case: designing a GraphQL API is substantially easier to both make and consume; while REST just tells you &amp;quot;here&amp;#x27;s some guidelines, now go do it however you want&amp;quot;, GraphQL enforces a much more consistent view of how an API should look, while allowing clients much more freedom in how they get the data they need.&lt;p&gt;Where you start running into issues is the surrounding tooling. Integrating a typical REST API into an APM monitoring solution is a cinch, because all of these tools know how to read the incoming requests, HTTP methods, paths, bodies, etc. With GraphQL, you might be left building glue for your APM tool of choice, or just using the highly limited, but at least specialized, Apollo Engine. Enforcing strict rate limiting is easy with REST; very difficult with GraphQL due to how complex and free-form queries are.&lt;p&gt;Optimizing your backend to support those free-form queries is also (I dare say &lt;i&gt;intractably&lt;/i&gt;) difficult; I haven&amp;#x27;t seen a single backend framework which doesn&amp;#x27;t actively encourage an N+1 problem on any query which returns multiple objects of data. AppSync as well, my god is that an evil play from AWS; if you&amp;#x27;ve got separate lambda functions serving all the different nodes in your graph, a single query could trigger dozens, or even hundreds, of invocations. Combine that with their guidance to use Aurora Serverless and any casual observer might say that they&amp;#x27;re actively exploiting the unfortunate ignorance of an engineer trying to jump on the latest trends.&lt;p&gt;I don&amp;#x27;t believe any of these things are problems with GraphQL. I think they&amp;#x27;re issues with ecosystem immaturity, and I hope they get better over time. Frankly, every single backend library I&amp;#x27;ve used sucks; its designed to be awesome on the frontend, and it is.&lt;p&gt;I think you&amp;#x27;re right that, right now, its best suited to large organizations. Large organizations can engineer around all of its issues and extract a LOT of value from it. Medium organizations are almost immediately going to run into ecosystem immaturity and scaling issues. Small organizations are going to get the most value from an &amp;quot;all in one&amp;quot; solution, whether that&amp;#x27;s Firebase, or a simple REST API on App Engine, or something like that.&lt;p&gt;But I could be wrong in my analysis that its not a core issue with GraphQL, and there are subtle complexities with the API definition language which make scaling it for anyone who isn&amp;#x27;t Facebook intractable. Time will tell.</text><parent_chain><item><author>burtonator</author><text>I did a huge heads down on GraphQL vs AppSync vs Firebase for an app I&amp;#x27;m building around document collaboration, annotation and sync for people working with PDFs and web content (&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;getpolarized.io&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;getpolarized.io&amp;#x2F;&lt;/a&gt;) - it&amp;#x27;s kind of like an offline web browser.... anyway.&lt;p&gt;GraphQL is super awesome at what it does but it&amp;#x27;s definitely not designed for rapid prototyping applications.&lt;p&gt;The thing about GraphQL is that it&amp;#x27;s middleware. It&amp;#x27;s designed to act as really nice glue between multiple backends.&lt;p&gt;It solves a lot of nice problems like over-fetching too much data, calling too many APIs, etc.&lt;p&gt;The problem is that you really don&amp;#x27;t need these to get an app shipped immediately.&lt;p&gt;The REAL sweet spot for GraphQL is for a company like Netflix or Facebook where you have 1500 APIs and tons of problems with data over-fetch and you have the time to sit down and do things right.&lt;p&gt;I think I&amp;#x27;m going to end up going with Firebase just because you can bang something out FAST and get it shipped.&lt;p&gt;It&amp;#x27;s not going to be perfect but you can ship an MVP and start making revenue and&amp;#x2F;or grow your user base while you figure things out.</text></item></parent_chain></comment><story><title>Facebook’s GraphQL gets its own open-source foundation</title><url>https://techcrunch.com/2018/11/06/facebooks-graphql-gets-its-own-open-source-foundation/</url></story>
<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>cheriot</author><text>GraphQL shifts complexity to the server instead of the client.  That can be an advantage when there&amp;#x27;s multiple clients or just one client iterating faster than the underlying logic. There&amp;#x27;s certainly a short term cost to GraphQL compared to REST, but there&amp;#x27;s a lot of use cases with positive ROI outside FANGs.&lt;p&gt;When read and write becomes real time sync, though, I&amp;#x27;ve always thought Firebase was under appreciated.</text><parent_chain><item><author>burtonator</author><text>I did a huge heads down on GraphQL vs AppSync vs Firebase for an app I&amp;#x27;m building around document collaboration, annotation and sync for people working with PDFs and web content (&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;getpolarized.io&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;getpolarized.io&amp;#x2F;&lt;/a&gt;) - it&amp;#x27;s kind of like an offline web browser.... anyway.&lt;p&gt;GraphQL is super awesome at what it does but it&amp;#x27;s definitely not designed for rapid prototyping applications.&lt;p&gt;The thing about GraphQL is that it&amp;#x27;s middleware. It&amp;#x27;s designed to act as really nice glue between multiple backends.&lt;p&gt;It solves a lot of nice problems like over-fetching too much data, calling too many APIs, etc.&lt;p&gt;The problem is that you really don&amp;#x27;t need these to get an app shipped immediately.&lt;p&gt;The REAL sweet spot for GraphQL is for a company like Netflix or Facebook where you have 1500 APIs and tons of problems with data over-fetch and you have the time to sit down and do things right.&lt;p&gt;I think I&amp;#x27;m going to end up going with Firebase just because you can bang something out FAST and get it shipped.&lt;p&gt;It&amp;#x27;s not going to be perfect but you can ship an MVP and start making revenue and&amp;#x2F;or grow your user base while you figure things out.</text></item></parent_chain></comment><story><title>Facebook’s GraphQL gets its own open-source foundation</title><url>https://techcrunch.com/2018/11/06/facebooks-graphql-gets-its-own-open-source-foundation/</url></story>