Frequently Asked Questions

Frontend Architectures: SPA, SSR, and SSG

What is a Single Page Application (SPA)?

A Single Page Application (SPA) is a web application rendered when the client requests it. SPAs are structured as a single HTML page with no preloaded content; all data and logic are loaded via JavaScript files. Popular frameworks for building SPAs include React, AngularJS, Vue.js, Ember.JS, and Svelte. SPAs offer dynamic, interactive experiences with no additional loading time between navigation, but may suffer from longer initial load times and SEO challenges. Learn more.

What are the pros and cons of SPAs?

Pros: Once loaded, SPAs provide seamless navigation and dynamic experiences. Teams have control over architecture and can use modern frameworks. Cons: Initial load times can be long, SEO is challenging due to lack of preloaded content, and large files can be difficult to maintain. Details here.

What is Server-Side Rendering (SSR)?

Server-Side Rendering (SSR) delivers fully rendered pages on demand, with rendering occurring on the server before being sent to the browser. SSR enables dynamic, personalized content experiences and instant updates to content. It is easier to rank well for SEO compared to SPAs. However, SSR typically requires more API calls and can be slower than SPAs and SSGs. Learn more.

What are the pros and cons of SSR?

Pros: Enables dynamic, personalized content and instant updates. Easier SEO optimization. Cons: Requires more API calls and can be slower than SPAs and SSGs. Details here.

What is a Static Site Generator (SSG)?

Static Site Generators (SSGs) create content at build time, generating static sites that do not require loading pages based on user requests. SSGs are ideal for content that does not need high personalization and are often used with headless CMS, static hosting, and CDNs for fast page load times and better SEO. Learn more.

What are the pros and cons of SSGs?

Pros: Fast page load times, better SEO, easy scalability, and decoupled architecture. Cons: Personalization and dynamic content require workarounds, and site rebuilds are needed for content changes. Details here.

Which approach is better: SPA, SSR, or SSG?

There is no definitive answer; the best approach depends on your use case, content, audience, development team, and budget. SPAs are effective for dynamic web experiences, SSRs are better for dynamic content requiring personalization, and SSGs are ideal for static sites that load quickly and perform well with SEO. Hybrid frameworks like Next.js allow teams to combine SSR and SSG for greater flexibility. Learn more.

Product Features & Capabilities

What features does Hygraph offer?

Hygraph provides a GraphQL-native architecture, content federation, scalability, and optimized content delivery performance. It supports rapid content distribution, reduces bounce rates, and increases conversions. Integrations include Netlify, Vercel, BigCommerce, Shopify, Lokalise, Cloudinary, Mux, and more. For a full list, visit Hygraph Features and Hygraph Integrations.

Does Hygraph have an API?

Yes, Hygraph offers a powerful GraphQL API for efficient content fetching and management. Learn more at Hygraph API Reference.

How does Hygraph optimize content delivery performance?

Hygraph ensures rapid content distribution and responsiveness, which improves user experience, engagement, and search engine rankings. This leads to reduced bounce rates and increased conversions. For more details, visit this page.

What technical documentation is available for Hygraph?

Hygraph provides comprehensive technical documentation covering all aspects of building and deploying projects. Access it at Hygraph Documentation.

Pricing & Plans

What is Hygraph's pricing model?

Hygraph offers a free forever Hobby plan, a Growth plan starting at $199/month, and custom Enterprise plans. For more details, visit the pricing page.

Security & Compliance

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant, ISO 27001 certified, and GDPR compliant. It offers SSO integrations, audit logs, encryption at rest and in transit, and sandbox environments. For more details, visit Hygraph Security Features.

Use Cases & Benefits

Who can benefit from using Hygraph?

Hygraph is ideal for developers, IT decision-makers, content creators, project/program managers, agencies, solution partners, and technology partners. Companies that benefit most include modern software companies, enterprises seeking to modernize, and brands aiming to scale across geographies or re-platform from traditional solutions.

What business impact can customers expect from using Hygraph?

Customers can expect time-saving through streamlined workflows, ease of use with an intuitive interface, faster speed-to-market, and enhanced customer experience through scalable content delivery. For example, Komax achieved 3X faster time to market, and Autoweb saw a 20% increase in website monetization. See more success stories.

What industries are represented in Hygraph's case studies?

Hygraph's case studies cover industries such as food and beverage, consumer electronics, automotive, healthcare, travel and hospitality, media and publishing, eCommerce, SaaS, marketplace, education technology, and wellness and fitness. Explore case studies.

Can you share specific customer success stories using Hygraph?

Yes. Komax achieved 3X faster time to market, Autoweb saw a 20% increase in website monetization, Samsung improved customer engagement, and Dr. Oetker enhanced their digital experience using MACH architecture. Read more success stories.

How easy is it to get started with Hygraph?

Hygraph is designed for easy onboarding, even for non-technical users. For example, Top Villas launched a new project in just 2 months. Users can sign up for a free account and access documentation, video tutorials, and onboarding guides. Get started here.

Pain Points & Solutions

What problems does Hygraph solve?

Hygraph addresses operational pains (reliance on developers, outdated tech stacks, conflicting global team needs, clunky content creation), financial pains (high costs, slow speed-to-market, expensive maintenance, scalability challenges), and technical pains (boilerplate code, overwhelming queries, evolving schemas, cache problems, OpenID integration). Learn more.

How does Hygraph solve these pain points?

Hygraph provides an intuitive interface for non-technical users, modernizes legacy tech stacks with GraphQL-native architecture, ensures consistent branding via content federation, and streamlines workflows to reduce costs and accelerate speed-to-market. It also simplifies development, query management, and integration challenges. See solutions.

What KPIs and metrics are associated with the pain points Hygraph solves?

Key metrics include time saved on content updates, system uptime, content consistency across regions, user satisfaction scores, reduction in operational costs, time to market, maintenance costs, scalability metrics, and performance during peak usage. Read more about CMS KPIs.

Support & Implementation

What customer service or support is available after purchasing Hygraph?

Hygraph offers 24/7 support via chat, email, and phone. Enterprise customers receive dedicated onboarding and expert guidance. All users have access to documentation, video tutorials, and a community Slack channel. Contact Hygraph.

What training and technical support is available to help customers get started?

Hygraph provides onboarding sessions for enterprise customers, 24/7 support, training resources like video tutorials, documentation, webinars, and Customer Success Managers for expert guidance. Learn more.

How does Hygraph handle maintenance, upgrades, and troubleshooting?

Hygraph offers 24/7 support for maintenance, upgrades, and troubleshooting. Enterprise customers receive dedicated onboarding and expert guidance, and all users can access documentation and the community Slack channel for additional support.

Competition & Comparison

Why choose Hygraph over alternatives in the market?

Hygraph stands out with its GraphQL-native architecture, content federation, scalability, and ease of use. It enables impactful digital experiences, reduces costs, and improves efficiency. For more details, visit the product page.

Customer Proof

Who are some of Hygraph's customers?

Hygraph is trusted by companies such as Sennheiser, Holidaycheck, Ancestry, Samsung, Dr. Oetker, Epic Games, Bandai Namco, Gamescom, Leo Vegas, and Clayton Homes. See case studies.

Blog & Resources

Where can I find the Hygraph blog?

You can visit the Hygraph Blog for news, developer tutorials, and essential guides to content modeling.

Who authored the blog 'WordPress Alternatives'?

The blog 'WordPress Alternatives' was authored by Jing Li, Content Marketing Manager at Hygraph.

What does the blog post encourage readers to do?

The blog post encourages readers to sign up for the newsletter to stay informed about releases and industry news.

Velocity at Scale: Join the Launch of Hygraph’s Latest AI Innovations

What is the Difference Between SPAs, SSGs, and SSR?

Here we take a look at the difference between Single Page Applications, Static Site Generators, and Server-side Rendered Applications
Jing Li

Last updated by Jing 

Aug 19, 2024

Originally written by Emily

Mobile image

We are going back to the basics of composable architectures and highlighting some of the essential jargon to understand when building a modern web experience.

Building digital experiences in modern web development brings new trends every day, whether it's fully embracing new technology or approaches or going back to basics.

Here, we will break down the differences between Single Page Application (SPA), Server-Side Rendering (SSR), and Static Site Generator (SSG). These make up the backbone of modern web experiences. Each approach has ideal use cases where the type of content benefits from the frontend pattern.

#What is a Single Page Application (SPA)?

A Single Page Application is a broad overarching term for applications rendered when the client requests them. SPAs are structured as a single HTML page that has no preloaded content. Content is loaded via Javascript files for the entire application and housed within a single HTML page. The Javascript files house all the data relating to the application logic, UI, and communication with the server.

Popular Javascript frameworks and libraries for building SPAs include all the usual suspects of React, AngularJS, Vue.js, Ember.JS, and Svelte, among others.

When users navigate the various parts of the SPA, there will not be any additional loading time between the different elements of the application.

Editor's Note

SSGs can also fall into this category once loaded in the browser. Because everything is loaded on the client side, teams must account for the wide range of clients while still ensuring a quick, seamless user experience. With modern frameworks, code splitting enables the loading of some elements on demand which can help eliminate this problem.

The Pros

  • While the initial load may be longer, once the application has fully loaded, no additional loading is required.
  • Good choice for dynamic experiences where teams need a customized feeling to their user experience
  • Teams have a lot of control over their architectures and can make use of modern web frameworks
  • Can be used in tandem with other technologies

The Cons

  • As the application grows in size and complexity, it can severely impact the initial load time, which can lead to a deterioration of the user experience
  • Maintaining good SEO is nearly impossible because of load times and lack of initial content on the HTML
  • Large files for complex web applications can become difficult to maintain and organize
  • Challenges with the SPA approach require workarounds that can be costly and time-consuming

When to use Single Page Application

While SPAs are excellent at delivering interactive, personalized experiences, it is not recommended to work with content-heavy ideas due to their long loading times.

#What is Server-Side Rendering (SSR)?

With Server-side rendering, clients receive a fully rendered page on demand rather than having to wait several seconds for specific elements to load. The rendering occurs on the server before passing them on to the browser. When content is requested on the client, data is fetched from a database or CMS as the user navigates the page.

Loading everything on demand makes it slower but ensures that content is up to date and that any changes are available live. Some elements can be cached, such as assets and CSS files, and even some server-rendered pages, but typically data is pulled directly from the database upon request.

The Pros

  • SSR enables teams to create dynamic, personalized content experiences without labor-intensive workarounds
  • Changes to content are displayed instantaneously unlike SSGs where teams must rebuild the site to see the changes to the content
  • SSR sites are client agnostic, different from SPAs where clients can determine page loading time or quality
  • It is easier to rank well for SEO with SSRs than SPAs, while still providing personalized experiences

The Cons

  • SSRs typically require more API calls to the server
  • SSRs by default are often slower than SPAs and SSGs

When to use Server-Side Rendering

Server-side rendering enables teams to provide dynamic content experiences that can be personalized. They are ideal for personalized experiences where live changes to the data can be viewed.

Server-side rendered sites (or server-side rendered applications (SRAs)) are excellent choices for content that is time-sensitive and applications that rely on large amounts of user interaction. With SSRs personalization is much easier and can be a good option for eCommerce. With SSRs, it is important to make sure your infrastructure can handle the requests to the servers and that the servers are able to easily scale as traffic continues to rise.

#What is a Static Site Generator (SSG)

While SPAs load all of their data on a single HTML site that is rendered only after a client request, static site generators take a very different approach to content and to building pages in general.

Static Site Generators generate content at the build time of new pages or when changes are made to the content. Because the SSGs are creating static sites, there is no need to load pages based on user requests. The content will remain consistent regardless of users.

The Pros

  • Easy to create decoupled architecture with multiple content sources
  • Fast page load times due to much of the content being pre-rendered and the static nature of the content
  • Better for SEO
  • Easily scalable infrastructure that allows the project to grow organically

The Cons

  • Personalization and dynamic content require workarounds or additional services
  • When content does change, you must rebuild the site in order to have these changes reflected on the site

When to use Static Site Generator

Employing SSGs as part of the tech stack enables teams to pull data from multiple data sources and lets teams take advantage of modern approaches to web development. Use cases that are ideal for the SSG approach are those where content does not need to be highly personalized.

Static site generators are typically used in concert with a headless CMS, a static hosting site, and a CDN to cache all of the data. Webhooks trigger to the SSG that there have been changes in the content and the changes are deployed to the site which is stored in a cache. CDNs enable teams to store pre-rendered HTML files in places that are geographically closer to the request, further reducing page load times. We’ve gone into depth on SSGs and their benefits in other posts but here are some highlights on the pros and cons of SSGs.

#Which approach is better?

Like many things in web development, there is no definitive answer on which is better, but rather, it depends.

It depends on the use case and content in addition to the audience, the development team, budget, etc. SPAs with client-side rendering can be more effective for creating dynamic web experiences; however, teams will face the challenges of page load times and may struggle with SEO. Dynamic content that requires a high level of personalization is likely better suited for an SSR approach. SSGs enable teams to build static sites that load quickly and perform well with SEO but may limit the amount of personalization and dynamic content available without labor-intensive workarounds.

There are some tools that can help bring together modern frameworks with greater flexibility. Next.js enables you to create static sites and use server-side rendering using their hybrid approach. Meaning that teams can reap the benefits of SSR or SSG depending on the ideal use case for the elements of their project. Working with Next.js can be helpful to ensure that projects maintain good SEO.

Blog Authors

Share with others

Sign up for our newsletter!

Be the first to know about releases and industry news and insights.