Why?
Because Jamstack is used to build websites.
Any websites can be built 100x faster and cheaper using Wordpress + Elementor or Webflow.
If you're a freelancer, you can charge clients the same amount of money for less work while also keeping them more happy.
How will they be happier?
Because Jamstack requires a CDN, a build pipeline, and headless CMS. Too many moving parts = less robust infrastructure and higher maintenance costs.
Wordpress on a VPS is a single moving part.
When should you still use Jamstack anyway?
If you like cocktail parties with other developers, mentioning Jamstack might get you some attention.
client -> webserver -> db
With the advent of CDNs for caching, someone thought "Hey, if my page is completely static, I might as well store it entirely on the CDN!".
Some advantages of this architecture:
- you don't need to manage a server / VM, a network nor a db.
- better latency as your page can be closer to clients, as most CDNs are globally distribuited
- does not have dbs as bottlenecks
- trivial to scale for high traffic scenarios
- potentially free for small projects
- static pages tend to be easier to test
Disadvantages:
- you're limited to static pages. anything that needs a login, a session, etc... is a showstopper*
- public endpoints. can`t use most CDNs for pages that only should be accessed from private networks
- potentially expensive for high traffic web pages
* some CDN providers now offer some sort of distributed storage / worker. YMMV.
In my case, I needed to show real(ish) time inventory. Our inventory was stuck in an ERP system without an API. So I wrote a scraper that would pull out our inventory, write it to a bunch of markdown files, and push it to Netlify to rebuild the site using Hugo. This was on an hourly cron job.
Since then I've used python to build JAMstack sites from data in Google Sheets. I find that to be a happy medium for projects where there is no user input and I need to update the info somewhat regularly.
https://news.ycombinator.com/item?id=31938452
Which might have some insight.
I’m also a full stack dev that is a bit confused on who can actually benefit from static sites like this. Particularly when it involves marketing teams that need to manage content outside of the codebase.
I’m definitely not convinced by them yet.