---
title: "Building Blocks of High Performance Hydrogen-powered Storefronts"
description: "Hydrogen, Shopify's React-based storefront framework, targets the tension between fast loading and personalized, dynamic commerce by combining React 18 streaming SSR with Suspense, React Server Components, cache-aware data fetching, and per-page edge caching."
url: "https://swe.quest/articles/building-blocks-of-high-performance-hydrogen-powered-storefronts-c8500e9da77cf962"
canonical: "https://shopify.engineering/high-performance-hydrogen-powered-storefronts"
source: "Shopify Engineering"
published: "2021-11-08"
difficulty: "easy"
kind: "Deep dive"
reading_minutes: 7
tags: ["react","web-performance","frontend","ecommerce","caching"]
---

# Building Blocks of High Performance Hydrogen-powered Storefronts

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-11-08, 7 min read, Deep dive. Original: [https://shopify.engineering/high-performance-hydrogen-powered-storefronts](https://shopify.engineering/high-performance-hydrogen-powered-storefronts)

## Summary

Hydrogen, Shopify's React-based storefront framework, targets the tension between fast loading and personalized, dynamic commerce by combining React 18 streaming SSR with Suspense, React Server Components, cache-aware data fetching, and per-page edge caching. Streaming SSR sends the HTML shell immediately for a fast TTFB, then streams data and progressively hydrates components, avoiding the client-side fetch waterfall that slows LCP under CSR. On Oxygen, a V8 isolate worker runtime colocated with Shopify data, server components query the Storefront API at near-localhost latency, and third-party fetches get default cache keys, TTLs and stale-while-revalidate. Static pages can be served from the CDN edge, with the choice of SSR, client fetching or edge delivery made per page and per component.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)

## Prerequisites

- React components and hydration ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- server-side rendering
- HTTP caching ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

Hydrogen, Oxygen, React Server Components, React 18, Suspense, Storefront API, stale-while-revalidate

## Related posts

- [How We Built Hydrogen: A React Framework for Building Custom Storefronts](https://swe.quest/articles/how-we-built-hydrogen-a-react-framework-for-building-custom-storefronts-0de0baea8226959f.md): Shopify Engineering · 2022-06-22 · Medium · 13 min read · React, Frontend, Web performance, GraphQL, E-commerce
  Hydrogen, Shopify's React framework for custom storefronts, was built on React Server Components, React 18 streaming SSR and Vite, chosen over static JAMStack approaches because commerce pages are inherently dynamic.
- [Rapid Development with Hydrogen: Building a Product Page](https://swe.quest/articles/rapid-development-with-hydrogen-building-a-product-page-02ffb62bb6c7bb95.md): Shopify Engineering · 2022-02-02 · Medium · 5 min read · React, E-commerce, Frontend
  Hydrogen, Shopify's React-based storefront framework, can produce a working product display page quickly by composing its built-in commerce components and hooks.
- [How We Built Oxygen: Hydrogen’s Counterpart for Hosting Custom Storefronts](https://swe.quest/articles/how-we-built-oxygen-hydrogen-s-counterpart-for-hosting-custom-storefronts-456fa9160b3a6002.md): Shopify Engineering · 2022-08-23 · Easy · 6 min read · Serverless, CDN & edge, Observability, E-commerce, System design
  Oxygen, Shopify's hosting platform for Hydrogen custom storefronts, assembles GitHub, GitHub Actions and Cloudflare Workers with first-party Shopify services such as the CDN, Admin API and identity.
- [React Server Components Best Practices You Can Use with Hydrogen](https://swe.quest/articles/react-server-components-best-practices-you-can-use-with-hydrogen-0db12dbc50e3b28e.md): Shopify Engineering · 2022-02-04 · Medium · 7 min read · React, Frontend, Web performance, E-commerce
  When building React Server Components applications, start every new component as a shared component, extract only the genuinely client-side pieces (interactivity, useState/useReducer, useEffect, browser APIs, RSC-incompatible libraries) into small .client components, and convert the rest to .server components whenever the code never needs to or should not run on the client.
- [A Gentle Introduction to Islands](https://swe.quest/articles/a-gentle-introduction-to-islands-51c545953d15b8b9.md): Deno · 2023-04-26 · Medium · 10 min read · Frontend, Web performance, JavaScript, TypeScript
  Islands architecture renders pages as static HTML and hydrates only isolated interactive Preact components, avoiding the whole-page, top-down hydration that ships framework JS even for static content.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
