News for hackers. Stuff that matters.
Re:How the Jamstack is failing at comments by wmf on Wednesday October 21, 2020 @12:08AM (#24844661)
But you could use a storage option like Dynamo DB, create an AWS Lambda endpoing (with API gateway) to add/get comments, and return them as JSON to your Jamstack application.

This is also what I was thinking. But let's continue that train of thought... Now your site is a hybrid of static and dynamic content with two separate systems (probably a static site builder plus this serverless comment system). Why not go all the way to a CMS?

Re:How the Jamstack is failing at comments by el_dev_hell on Wednesday October 21, 2020 @01:28AM (#24844996)
I personally don't think of Jamstack sites/applications as being 100% static. The core nature of the Jamstack is the ability to extend functionality with APIs/microservices (jamstack.org have a diagram example: https://d33wubrfki0l68.cloudfront.net/b7d16f7f3654fb85723603...)

Having separate systems is (at least in my understanding and experience) a core design feature of the Jamstack.

Your question is valid. Why not go all the way to a CMS? If the author wants dynamic features AND doesn't want to build them himself, he might want to reconsider Wordpress.

Re:How the Jamstack is failing at comments by Nextgrid on Wednesday October 21, 2020 @02:54AM (#24845371)
> Why not go all the way to a CMS?

Because that's not considered cool anymore and doesn't give you the opportunity to play with lots of different tools for no reason other than over-engineering.

The other comment mentions a technically valid point about separation of concerns and delegating maintenance to separate teams (essentially the same value proposition as microservices), but in the real world, is this an actual problem for 90% of websites out there, especially when talking about simple, personal or small-business websites? I don't think so.

Re:How the Jamstack is failing at comments by TuringTest on Wednesday October 21, 2020 @03:36AM (#24845592)
I would say that what most people commenting on this thread don't realize are the benefits of storing static content as code in plain text files.

Text content in a database is unversioned and only accessible through SQL queries in sophisticated dedicated clients; while content in markdown files can be changed with plain text editors and treated just like source code, getting all the advantages of branching, diffing and merging versions among multiple users.

Think about whether you'd like to work with all your source code stored inside a CMS like Wordpress instead of VCS like Git, and you'll begin to understand why Static Website Generators are a good thing for the people responsible of updating the content.

Re:How the Jamstack is failing at comments by wmf on Wednesday October 21, 2020 @11:22AM (#24848711)
Is anyone working on a Git-based CMS that can be accessed through REST APIs or through Git?
Re:How the Jamstack is failing at comments by TuringTest on Wednesday October 21, 2020 @11:50AM (#24849000)
It's called GitHub pages.

And several third-party developers are building user-friendly CMSs on top of it.