🍯 What is Jamstack
July 09, 2019 | ☕️ 3 min read | Tag: jamstack
I started teaching myself to code, because I wanted to have a unique place where I could share my thoughts, some side projects and pictures of my vacations. Having a blog sounded like a wonderful idea!
Initially, I considered using WordPress, due to its widespread usage, support of the community and cheap hosting options. However, while reading blogs online and watching some talks on YouTube, I stumbled across the static site generators and I was impressed by their speed.
What is a stack?
In the web development world, a "stack” refers to the underlying technologies you use to build websites and apps. One of the most famous stacks is LAMP, a combination of the Linux operating system, the Apache HTTP Server, the MySQL relational-database and the PHP language. An alternative to LAMP is WAMP, which is quite similar, with the exception of using Windows as operating system.
What is Jamstack?
With the term 'Jamstack', we no longer talk about operating systems, specific web servers, backend programming languages, or databases.
The Jamstack is a new approach of building websites and apps that delivers better performance, higher security, lower cost of scaling, and a better developer experience.
Any kind of server-side process or action that involves the database is abstracted into a reusable API, which can be a custom function or a third party service.
Static site generators will use Markdown, as a source file, in order to serve websites and web apps as static HTML files.
Why the Jamstack?
Using a CDN, means that we can also serve our stack of files anywhere and scaling will consist of just serving these files in more places.
Not only the final website or app is faster, cheaper and easy to scale, but it's also more secure than the so called monolithic websites. Since we are using APIs to abstract all the server-side processes, an attacker will have a difficult time to attack our server or database.
A Jamstack website will help you as a company or single developer both in the present and in the long run.
It will reduce your infrastructure costs, since you don't have to pay unnecessary servers and bandwidth and it will be easy to maintain due to fewer moving parts and fewer things that can break.
Moreover, if you want to add any new functionality to your site, there will be an enormous selection of specialized APIs that focus on that specific feature that you want to implement and so you don't have to build it from scratch.
Join the Jamstack community to learn more and keep building stuff!