Thanks to static site generators, modern browsers, CDNs, and APIs, we’re now seeing web developers transition from server-side to client-side applications.
With all this, Netlify came out with a new term JAMstack.
So let’s see what the JAMstack is and why it is becoming so popular.
What is JAMstack?
JAMstack is not a technology. Instead, JAMstack is a new way of building websites and apps. It is a modern web development architecture based on client-side and it doesn’t depend on a web server.
A definition that I have read on a blog and I like a lot is
The JAMstack is a static HTML site, rebuilt automatically every time you update the content, and deployed directly to a CDN.
I think that this definition makes better the idea!
Markup: templated markup should be prebuilt at deploy time, usually using a site generator for content sites, or a build tool for web apps.
The Benefits provided by the JAMstack
Some of the main benefits of using it are the following
Faster and Better Performance
It can generate new pages at deploy time and serve pre-built markup and assets over a CDN.
Less expensive and easier to scale
The lesser complexity of development reduces costs and also hosting of static files is cheap or even free.
With the delegation of the server-side and database operations, we don’t need to worry about vulnerabilities anymore.
Better developer experience
Frontend developers can focus only on the frontend and debugging, the expanding selection of CMS options for site generators remove the need to maintain. This usually means quicker and more focused development.
Usually, when we visit a Wordpress website, we notice that it loads very slow. This happens because it makes a lot of requests to the database.
With JAMstack dynamic data can be fetched when needed, using separate API calls once the HTML is loaded.
This can make websites much faster and efficient.
Why is JAMstack so popular now?
I think that the main reasons are three:
- The list of the benefits above
- The incredible increase of Headless CMS that makes content accessible via APIs
The possibilities to use JAMstack are endless, from simple blogs or websites that need a content management system to e-commerce to more complex Web Apps.
In this article, we have seen the advantages of using it, and why it is so popular right now.
Anyway, I would strongly recommend learning more about it because it could meet your needs.