~/talk

Go Full Stack Server-Side Rendering vs SPAs

Talkat GopherCon UK 2024 · 2024-08-14..08-16· [go, frontend-architecture]
links:none on file
slides:none on file

Compares a React SPA (100-product API) to a Go full‑stack approach using Templ + HTMX with Tailwind; JSON payload is 54 KB vs HTML ~423 KB in one test but full‑page HTML ends up only 1.8% slower (331 ms vs 337 ms total latency). Hosting on CloudFront can cut perceived load to ~30 ms if pages are cacheable, but a user‑specific cart cookie prevents caching; solution implemented is component islands that lazy‑load the cart via HTMX, enabling CDN caching and a ~10x latency win for cached pages.

AI-written summary · about

  1. 0:00Full stack Go apps
  2. 3:12E-commerce demo
  3. 7:04SSR with Go templates
  4. 10:40SPA vs SSR payload
  5. 13:07SSR vs SPA latency
  6. 17:02CDN limits for SSR
  7. 20:36Component islands
  8. 24:11Rendering spectrum
  9. 25:58SEO for SSR vs SPA
  10. 27:19Questions and answers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.