Why should you use the JAMStack ?

Why should you use the JAMStack ?

The Jamstack is not about specific technologies. It’s a new way of building websites and apps that delivers better performance, higher security, lower cost of scaling, and a better developer experience.

When I wanted to start my own blog , I was looking for a quick and fast solution to adopt , because my point was to publish and spread the information not to build a new from scratch website as a Web developer , and to make use of the existing microservices and APIs , suddenly I found out one world that changed my mindset about web programming : the "JAMSTACK" .

As a fan of new ideas I liked the way JAMSTACK works and to be more clear here are some of the reasons why I adopted JAMSTACK : (according to the official website and my own experience )

Let’s remove the backend !

When your website has a backend , it becomes slower because it needs to load your data from somewhere without forgetting the 5xx errors , this could also mean hours of debugging and the cost behind , when the JAMSTACK has another philosophy .

The philosophy is : instead of rendering the HTML on a backend on every request, you can build the HTML once and then serve it statically by :

1.Decoupling the frontend from the backend

Unlike the large legacy apps, Jamstack projects neatly separate the frontend pages and UI from the backend apps and databases. Freed from backend servers, the frontend can then be deployed globally, directly to a CDN.

2.Prebuilding all pages for speed

Before deployment, the entire front end is prebuilt into highly optimized static pages and assets. This happens in a build process (before being deployed / hosted).

3.Dynamic content via APIs

The global front end uses Javascript and APIs to talk to backend services, allowing pages to be enhanced and personalized.

To sum up ,with JAMSTACK the websites are Deployed globally , Webpages prerendered for speed , and the APIs & microservices take place to allow for more modular development where we can take advantage of the huge ecosystem of third party tools to provide website functionality.

If you want to explore more about JAMSTACK I highly recommend watching this JAMSTACK virtual conference (27 mai 2020) :

Hope you enjoyed my mindset though !

Add your comment