Re:Use Gatsby.js and Headless GraphQL CMS to Make Your JAMst...
by lowtolerance on Friday November 23, 2018 @11:36AM
(#18517415)
This approach absolutely does produce static web sites, just like any other static site generator. The querying of a back-end database doesn’t take place when a page gets loaded, it takes place when the static site is being built.
This article is just talking about one approach to taking one’s content and assembling it into a static website. The same basic workflow one should expect when dealing with any static site generator, the only difference being in the particulars of content aggregation and the build process.
Re:Use Gatsby.js and Headless GraphQL CMS to Make Your JAMst...
by shaunpersad on Tuesday November 20, 2018 @05:31PM
(#18498457)
Well, that's not entirely correct. The database querying only happens at build time. The output is just static HTML/js/CSS that can be hosted on any CDN (or anywhere else) relatively easy.
There's nothing "static" about this site. You're still querying a back-end database, you've just outsourced it to a third party. And looking at the example site, it doesn't exactly seem "simple" to me. Hell, instead of just using one (heroku) this one relies on TWO (netlify and the authors, takeshape).
This "stack" seems to be mainly being pushed by the people trying to sell the 3rd party backends.