---
title: "Möbius: Shopify’s Unified Edge"
description: "Shopify replaced more than six distinct ingress paths (GenPop core, apps, PII-restricted regions, mTLS APIs) with a single edge, Möbius, backed by a unified routing layer, Shopify Front End (SFE)."
url: "https://swe.quest/articles/mobius-shopify-s-unified-edge-dc92594de9527689"
canonical: "https://shopify.engineering/mobius-shopify-unified-edge"
source: "Shopify Engineering"
published: "2022-04-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["cdn-edge","load-balancing","networking","system-design","kubernetes"]
---

# Möbius: Shopify’s Unified Edge

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2022-04-20, 9 min read, Case study. Original: [https://shopify.engineering/mobius-shopify-unified-edge](https://shopify.engineering/mobius-shopify-unified-edge)

## Summary

Shopify replaced more than six distinct ingress paths (GenPop core, apps, PII-restricted regions, mTLS APIs) with a single edge, Möbius, backed by a unified routing layer, Shopify Front End (SFE). SFE is nginx with custom Lua deployed per region, fed by Kubernetes controllers that register application domains with a central API. Routing-layer active/active and active/passive load balancing then shifts traffic almost instantly, without waiting on DNS TTLs. Möbius terminates TCP and TLS at the provider's PoPs close to clients and reuses the SFE controller's domain data to automate domain validation and certificate issuance at the edge vendor, so migrating an app becomes a manual DNS switch plus per-app edge observability dashboards.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)

## Prerequisites

- TLS termination ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- reverse proxies and load balancing ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))
- Kubernetes controllers ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- DNS basics ([easy posts on DNS](https://swe.quest/tags/dns.md?difficulty=easy))

## Keywords

Möbius, Shopify Front End, nginx, Lua, Shopify, mTLS

## Related posts

- [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.
- [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.
- [How we use GraphQL at Europe's largest fashion e-commerce company](https://swe.quest/articles/how-we-use-graphql-at-europe-s-largest-fashion-e-commerce-company-98c53d6b8b858147.md): Zalando Engineering · 2021-03-03 · Easy · 6 min read · GraphQL, API design, Microservices, E-commerce, Resilience
  Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.
- [Traffic 101: Packets Mostly Flow](https://swe.quest/articles/traffic-101-packets-mostly-flow-e9828aceea724731.md): Slack Engineering · 2023-08-28 · Medium · 9 min read · Networking, Load balancing, DNS, Resilience, CDN & edge
  A Slack request reaches its main region in AWS us-east-1 through a chain of hops.
- [Edge Functions are now available in Supabase](https://swe.quest/articles/edge-functions-are-now-available-in-supabase-3c06235615e01037.md): Supabase · 2022-03-31 · Easy · 7 min read · Serverless, CDN & edge, TypeScript, System design
  Supabase Edge Functions run TypeScript globally on the Deno runtime via Deno Deploy across 30+ data centers.

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)
