Your Privacy

This site uses cookies to enhance your browsing experience and deliver personalized content. By continuing to use this site, you consent to our use of cookies.
COOKIE POLICY

Skip to main content

Static Generated Sites at a High Level

Static Generated Sites at a High Level
Back to insights

Statically generated sites are becoming more popular on the modern web because they are very secure and offer fast page load times. They can be much quicker than server-side rendered applications or applications with dependencies on remote APIs (application programming interfaces) to load meaningful content into the view. While historically static sites have been difficult to manage, today, we have several tools like Gatsby, Next.js, and Nuxt.js to help manage static content. Let’s explore how static site generators can take raw data and create a fully functioning website.

The Data 

Data for statically generated sites can come from various sourcesMost statically generated sites can consume Markdown, a specialized way to format a rich textThis type of content is great for authoring articles or sections of content on a websiteMarkdown also has full support for embedding images and hyperlinks. 

Other common data sources include RESTful APIs, REST (Representational State Transfer) like APIs, and GraphQLAll of these scenarios involve serving up application data using HTTP/HTTPS requests. You may be thinking, How can a static site use an API? I thought you said earlier using an API might be slow. Static sites pull that data before the users see it, so they do not have to waitunlike traditional applications consuming APIs. 

Data can come in almost any formatBut how do we translate that data into a static siteEach static site generator comes with a way to build or reuse modules with consumed dataFor example, in Gatsby, this is source plugin (Nuxt, Next, etc.). These source plugins digest the content and provide it to the static site generators to be consumed later. This process informs the site of what content is available. So, where do we put this data from the source plugins? One word – templates. 

Templates 

Static site generators can define many types of templates. This is generally where a lot of the custom display code makes your website look the way it is supposed toTemplates are skeleton display codes with placeholders for custom data to be inserted (page header, navigation, etc.) Its like having a generic form ready to be filled in with custom data. 

Building 

These source plugins supply the data, and we have these templates, but how do we get a webpage on someone’s screenThat is where the build step comes in and where things can get trickyStatic site generators have a method of injecting the raw data collected by the source plugins into your templates and outputting raw HTMLThis is known as the build processYou may be thinking, Whats the catch? Building can be expensiveBuild times vary based on how much content you have on your websiteIf you have thousands of records to be processed, this can take some timeFortunately, static site generators are starting to mitigate this time cost and allow you to build the site incrementally. This allows you to rebuild only the sections of the site that have changed. 

There is certainly a tradeoff, but you will save your customer the time it takes for a server-side application to render the page. It may take longer to make the initial changes to your site, but you will save on every page load when the user is looking at the site providing your customer with a better experience. 

Publishing 

Once a site is built, all the artifacts can be published to allow users to interact with the content.  The statically generated site can be published to a content delivery network (CDN) like Netlify, Surge.sh, or GitHub for virtually no cost and incredibly fast response timesCDNs are usually set up with distributed data centers, so your website will scale well across the worldThis is a huge win since you will not have to stand up expensive application servers in Azure or Amazon Web Services to host your app. 

 

Digging In

  • Software Engineering

    Building a Consultant in the Trenches: How Playing Offensive Line Shaped My Consulting Career

    People often ask me the same question when they find out that I played college football: “Do you miss it?” On the surface, it’s a bad question with an obvious answer. Yes. However, if I give myself a minute to sit with that question, the answer is more nuanced. Yes, I miss playing football, but […]

  • Software Engineering

    Modernization That Sticks: Why Adoption, Not Just Architecture, Drives Success

    Modernizing a legacy sales platform in a large enterprise isn’t just a technical challenge, it’s a cultural and operational one. On a recent project with a Fortune 500 organization, several past attempts to replace the aging ERP system failed. Why? Because those efforts treated modernization as a software delivery exercise, not an adoption journey. When […]

  • Software Engineering

    Choosing the Right Modernization Approach

    When organizations decide it’s time to modernize their technology infrastructure, choosing the right approach is crucial. Modernization isn’t merely a technical upgrade; it’s a strategic business move that significantly impacts growth, agility, and long-term success. Here’s how your company can effectively begin to select the best modernization strategy tailored to your goals and challenges. In […]

  • Software Engineering

    TAG Panel: Differentiate Your Customer Experience

    Join the CX and Product Management Societies to hear from our panel of Human-Centered Design experts on the business value of Agentic AI.

  • Software Engineering

    The Bloated SaaS Era: Paying More for Less While Businesses Wait

    SaaS was supposed to make business faster, smarter, and more efficient. Instead, it’s become bloated, expensive, and painfully slow to change. The platforms we rely on—Salesforce, Workday, SAP, and others—haven’t truly innovated in years. Yet, they demand massive investments in re-implementation, process re-engineering, and data migration just to keep up. It’s time to ask: Are […]

  • Software Engineering

    Reid Braswell Joins UDig as Vice President, Software Engineering

    UDig is proud to welcome Reid Braswell as our new Vice President of Software Engineering. With over 13 years of experience in technology consulting, Reid brings deep expertise in digital transformation, modern software engineering, and client-focused solutions. His leadership and passion for solving complex challenges make him an exceptional addition to the UDig team. Reid’s […]