---
title: "How We Built Oxygen: Hydrogen’s Counterpart for Hosting Custom Storefronts"
description: "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."
url: "https://swe.quest/articles/how-we-built-oxygen-hydrogen-s-counterpart-for-hosting-custom-storefronts-456fa9160b3a6002"
canonical: "https://shopify.engineering/how-we-built-oxygen"
source: "Shopify Engineering"
published: "2022-08-23"
difficulty: "easy"
kind: "Case study"
reading_minutes: 6
tags: ["serverless","cdn-edge","observability","ecommerce","system-design"]
---

# How We Built Oxygen: Hydrogen’s Counterpart for Hosting Custom Storefronts

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2022-08-23, 6 min read, Case study. Original: [https://shopify.engineering/how-we-built-oxygen](https://shopify.engineering/how-we-built-oxygen)

## Summary

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. Shopify briefly built its own V8-isolate infrastructure but chose Cloudflare's Workers for Platforms instead to ship faster and reduce scale and security risk. A Gateway Worker checks authorization and routes requests to per-storefront workers via the Dynamic Dispatch API, and a Trace Worker forwards logs and metrics to a separate Grafana/Loki/Cortex/Tempo stack that keeps merchant-facing telemetry apart from internal metrics.

Written by swe.quest, not by the author.

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

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- serverless edge workers ([easy posts on Serverless](https://swe.quest/tags/serverless.md?difficulty=easy))
- basic observability concepts ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

Oxygen, Hydrogen, Cloudflare Workers for Platforms, Dynamic Dispatch API, WinterCG, Grafana, Loki, Cortex

## Related posts

- [Building Blocks of High Performance Hydrogen-powered Storefronts](https://swe.quest/articles/building-blocks-of-high-performance-hydrogen-powered-storefronts-c8500e9da77cf962.md): Shopify Engineering · 2021-11-08 · Easy · 7 min read · React, Web performance, Frontend, E-commerce, Caching
  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.
- [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.
- [Railway vs Cloudflare: How Their Architectures Differ and When to Use Each](https://swe.quest/articles/railway-vs-cloudflare-how-their-architectures-differ-and-when-to-use-each-da6a8e4c1e4636fe.md): Railway · 2025-11-28 · Medium · 15 min read · Serverless, CDN & edge, Cloud platforms, System design, Containers
  Railway and Cloudflare's Developer Platform feel similar on the surface but rest on opposite compute models.
- [Quick: An internal hosting platform for the AI era](https://swe.quest/articles/quick-an-internal-hosting-platform-for-the-ai-era-06fe756175b56679.md): Shopify Engineering · 2026-06-10 · Medium · 9 min read · Developer productivity, System design, Cloud platforms, AI for coding, Engineering culture
  Quick is Shopify's internal static hosting platform: each site is a folder in a Google Cloud Storage bucket, mounted via gcsfuse and served by a wildcard NGINX config behind Identity-Aware Proxy, with \`quick deploy\` wrapping gcloud rsync.
- [How Shopify Dynamically Routes Storefront Traffic](https://swe.quest/articles/how-shopify-dynamically-routes-storefront-traffic-4416894393bf5cd2.md): Shopify Engineering · 2021-04-09 · Medium · 9 min read · Load balancing, Deployment, Refactoring & migrations, Configuration management, Resilience
  Shopify shifted storefront traffic from its legacy Rails storefront to a rewritten renderer using a rule-based routing system in nginx/OpenResty Lua load balancers, with rules stored as JSON in a control plane and managed via the spy chatbot so changes skip CI and deploys.

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)
