APIs: The backend of a Jamstack app is powered by APIs. These can be custom-built or third-party services such as Firebase, AWS Lambda, or Contentful. These APIs handle tasks such as authentication, data storage, and server-side logic.
Markup: The markup is generated at build time, rather than on the fly, by a static site generator such as Gatsby, Next.js, or Jekyll. This results in faster load times and improved security, as there is no need for server-side rendering or database queries.
Benefits of Jamstack include:
Improved performance: Since the markup is pre-built and served from a CDN, the site loads faster for the user.
Security: Since there is no need for server-side rendering or database queries, the risk of data breaches is greatly reduced.
Scalability: Since the frontend and backend are decoupled, the site can easily scale horizontally by adding more servers or vertically by adding more resources to existing servers.
Cost-effective: Since the site is pre-built and served from a CDN, the hosting costs are significantly lower than traditional server-side rendered sites.
Development experience: The Jamstack architecture allows for a more modular development experience, with reusable components and a focus on building small, single-purpose APIs.