6 ms·
I use the Jamstack to some extent at work (Gatsby and AWS Lambdas). I think it's an interesting technology stack with some excellent use cases (and a fair amoun
by el_dev_hell 6y ago
I use the Jamstack to some extent at work (Gatsby and AWS Lambdas). I think it's an interesting technology stack with some excellent use cases (and a fair amount of hype).
I also use Wordpress for serveral small/mid sized personal and F&F blogs.
I don't think comparing the comment options in Wordpress to the comment options in Jamstack applications is fair. Wordpress is a complete CRM designed for blogs/modular websites. The Jamstack is a design pattern; it's not supposed to include the kitchen sink.
Like @qeternity mentioned, the A in Jamstack stands for APIs. The author only mentioned the ability to hosts comments in Wordpress (or another CRM). Why not roll your own comment system? Sure, that's extra work, but it's also very doable if you're building a Jamstack application (again, it's not a one-click solution -- Wordpress already exists for that).
> As a result, my own blog, which is a Jamstack site, doesn’t support comments! What do I do if I want feedback on a blog post? I add a link to a corresponding tweet, asking to add a comment there. I myself feel ashamed at this compromise, but given my site’s stack, I don’t see how I can solve it. I still like my blog as a Jamstack, though, because it’s fast, it’s free, and I create all the blog posts in Markdown using VSCode. But I can’t create a community!
I don't have a "free" solution for you. 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. Boom. A comments system. Pricewise, it shouldn't go over the AWS free tier for Lambda. I could literally spin this up in an afternoon -- let's do it this weekend if you're in.
- justasitsounds 6y ago100% agree. Just want to point out that you can integrate API Gateway with DynamoDB directly (with some Velocity mapping). In fact here's a blog post from 2016 showing just that - the use case being a comments API: https://aws.amazon.com/blogs/compute/using-amazon-api-gateway-as-a-proxy-for-dynamodb/ https://aws.amazon.com/blogs/compute/using-amazon-api-gatewa...
- el_dev_hell 6y agoNice! That's an even simpler option than my suggestion.
- wmf 6y agoBut 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?
- el_dev_hell 6y agoI 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/b7d16f7f3654fb8572360301e60d76df254a323e/385ec/img/svg/architecture.svg 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.
- deleted 6y ago[deleted]
- Nextgrid 6y ago> 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.
- TuringTest 6y agoI 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.