Server-side rendering vs static site generation: a practical guide
Server-side rendering (SSR) and static site generation (SSG) both produce the HTML a browser receives, but they do it at different moments. SSR generates a response on a server for each request, which suits pages that need current data or user-specific content. SSG builds pages ahead of time and serves finished files through a content delivery network, making it effective for stable, content-led sites.
The better choice depends on workload, publishing operations and audience geography rather than a universal rule. Australian businesses often serve customers from Sydney and Melbourne while also reaching Brisbane, Perth, regional communities and travellers on patchy mobile connections. A solution that feels immediate in a metropolitan data centre can still feel slow on a regional fixed wireless or congested 4G network, so delivery design matters as much as the rendering label.
Rendering approaches at a glance
A quick comparison separates the main operational differences. The key question is when the page must become accurate: during every request, at a scheduled build, or only after a content change.
| Factor | Server-side rendering | Static site generation |
|---|---|---|
| Rendering time | Every request | Build or revalidation |
| Content freshness | Immediate when supported by live data | Prebuilt until content is republished |
| Infrastructure | Application server or edge runtime | Object storage and CDN |
| Personalisation | Straightforward during the response | Usually handled by APIs or browser requests |
| Traffic handling | Depends on caching and runtime capacity | Repeat traffic is absorbed by the CDN |
| Best suited to | Accounts, inventory and live information | Editorial, marketing and documentation sites |
| Main trade-off | Server load and response variability | Publishing workflow and possible staleness |
Neither approach requires the other to be absent from a modern site. A statically generated page can fetch live pricing through JavaScript, while an SSR route can be cached at the edge for anonymous visitors. For a campaign or portfolio-led property such as Dupont Can Be Great, static delivery can provide a useful baseline when meaningful updates are infrequent and publishing is straightforward.
Choosing between build-time and request-time output
Static generation works best when pages can be produced from a stable content model. Documentation, campaign landing pages, editorial articles and franchise location pages often fit this pattern because the same structure can be rebuilt whenever an editor publishes or a scheduled job runs. The result is predictable response times, low origin load and resilience during traffic spikes, especially when files are served close to visitors.
Request-time rendering becomes valuable when accuracy is tied to the visit. An account dashboard, live inventory panel, route planner or checkout may depend on the signed-in user, current stock, a fare or another changing record. Rendering those elements on the server can make the first response more useful and avoid a visible blank state, although it introduces a runtime dependency and potentially higher infrastructure cost.
A hybrid design often reflects real content better than forcing every page into one category. A static shell can carry brand pages while SSR handles account areas; alternatively, incremental static regeneration or on-demand revalidation can refresh selected pages without rebuilding an entire site. These patterns require explicit caching and invalidation rules, but they let teams reserve dynamic rendering for the sections that genuinely need it.
Performance, operations, and regional realities
Performance is a system property, not an automatic benefit of either method. A well-cached SSR response can be very fast, while a poorly optimised static bundle can still be heavy. Measure server response time, cache hit rate, Largest Contentful Paint, interaction latency and availability from Australian locations. Test Sydney and Melbourne separately from Perth, Adelaide and regional Queensland rather than relying on a single laboratory result.
Static files generally place fewer demands on origin infrastructure because a CDN absorbs repeat traffic. SSR needs enough capacity for peak concurrency, but caching anonymous pages, terminating sessions at the edge and reusing application data can reduce pressure. In Australia, the total cost also includes engineering time, deployment frequency and incident response; a cheap runtime with constant scaling work may cost more than straightforward static hosting.
Dynamic pages can expose more personal information at request time. If SSR assembles a profile, order or recommendation, the Privacy Act 1988 and Australian Privacy Principles remain relevant, regardless of where the application is hosted. Static delivery can reduce server-side exposure, but it does not remove privacy duties for forms, tracking or third-party APIs. Australian retailers should also verify AUD and GST-inclusive pricing, while commercial email must meet the Spam Act 2003.
Connecting content and delivery workflows
Rendering choice becomes clearer when the publishing workflow is mapped. A headless CMS can send a webhook to trigger a static build, or supply data to an SSR route through an API. Editors care about how quickly a change appears, whether previews are accurate and whether a failed build blocks urgent updates. Technical teams care about API limits, build duration, cache invalidation and rollback procedures.
Teams pairing a headless CMS with a static frontend can use this static site generator guide to think through build triggers, preview environments and publishing permissions. For high-volume news, a preview deployment may be unnecessary; a trusted preview branch can often provide enough assurance before a controlled rebuild.
Do not equate static generation with a frozen website. Editors may update content through a CMS, automated jobs can refresh data, and client-side requests can add personalised components. The useful architecture labels the freshness requirement of each route, defines who may purge caches and establishes what visitors see if the CMS or API is unavailable. That prevents a fast page from becoming an inaccurate one.
A practical decision framework
A sound decision starts with the most change-sensitive page, not the average page. List the data it needs, how often that data changes, whether it must be personalised and what a stale response would cost. Then test the simplest viable architecture against realistic traffic and the publishing skills available after launch.
- Prefer static generation for stable, public content whose updates can wait for a build or controlled revalidation.
- Select SSR for account-specific pages, live inventory, pricing rules or responses that must reflect a request immediately.
- Use a hybrid route map when public content dominates but a small set of interactive areas needs current data.
- Set measurable performance and freshness targets, including regional mobile tests, cache-hit thresholds and recovery times.
- Automate CMS webhooks, preview checks and rollback steps before increasing publishing frequency.
- Review privacy, third-party scripts and failure states so speed gains do not conceal data or accessibility problems.
For Australian teams, the strongest answer is often a deliberate split: static delivery for dependable reach and SSR for genuinely dynamic tasks. Measured traffic, editorial capacity and failure scenarios keep that split aligned with speed, accuracy and accessibility as the site evolves.