IInvest Like the Best
← All frameworks
InnovationTobi Lütke

The Thin Waist (Hourglass) Infrastructure Model

Find the narrow, stable protocol that lets both sides of a system evolve independently.

Difficulty
Advanced
Time to result
~months to results
Steps
5
Confidence
85%

Tobi Lütke describes how the most durable, high-leverage infrastructure is built by identifying a 'narrow waist' between two complex, ever-changing worlds — like an hourglass with two triangles pointing at each other. One triangle represents what users want to accomplish; the other represents the messy underlying systems. If you can design a simple, agreed-upon protocol (an API, a query language, a templating language) that connects them, both triangles can be completely rebuilt over time without breaking anything for users. Stripe's API bridging developers and banks' legacy systems, and Shopify's own Liquid templating language surviving since 2005 while everything around it changed, are the clearest illustrations of this model in action.

Origin

Tobi developed the idea while explaining why Shopify has been rewritten many times internally yet feels stable to merchants — comparing it to an hourglass with two triangles pointing at each other.

Core principles

  • 01Identify the two 'triangles' of complexity on either side of a problem
  • 02Define a narrow, stable protocol between them
  • 03Let both sides evolve freely once the protocol holds
  • 04Favor simplicity and permanence in the connecting layer

How to run it

  1. 1

    Map the Two Triangles

    Identify the demand side (what people are trying to accomplish) and the supply side (the complex underlying systems that make it possible).

    Pro tip Write out the desires of the top triangle and the constraints of the bottom triangle separately before designing anything.

  2. 2

    Find the Narrow Waist

    Design the simplest possible interface or protocol that satisfies both sides, such as an API, templating language, or query language.

    Watch out A waist that's too complex defeats the purpose — it should feel almost boringly simple.

  3. 3

    Freeze the Protocol, Not the Implementation

    Commit to keeping the interface stable even as the systems behind it change dramatically.

    Watch out Changing the protocol itself breaks trust and forces everyone built on top of it to redo work.

  4. 4

    Rebuild Continuously Underneath

    Upgrade or replace the underlying systems ('the triangle below') as needed since consumers never interact with them directly.

    Pro tip Treat the protocol as a contract — anything can change as long as the contract's guarantees hold.

  5. 5

    Expand Capability Above

    Let users and teams build increasingly sophisticated tools (like drag-and-drop editors) on top of the stable protocol without ever needing to touch it directly.

In the wild

Stripe's Payments API

Stripe created a thin waist between developers wanting to move money and the world of COBOL-based banking infrastructure, allowing both sides to keep evolving.

→ Developers could build payment flows without ever touching legacy banking systems.

Shopify's Liquid Templating Language

Liquid, written by Tobi in Shopify's early beta in 2005, still works today even though everything above it (drag-and-drop editors) and below it (backend systems) has been rewritten many times.

→ Merchant sites built in 2005 remain functional, illustrating Shopify as a 'Ship of Theseus.'

Common mistakes

Changing the Protocol Too Often

If the narrow waist keeps shifting, users lose trust and can't reliably build on top of it.

Skipping the Narrow Waist Entirely

Trying to solve for one side without abstracting a stable interface leads to brittle, one-off point solutions instead of durable infrastructure.

Is it for you?

Not ideal for

Simple, short-lived products where long-term stability of an interface doesn't matter.

From the transcript

“Great infrastructure can be done when you can define what this sort of narrow waist is between the triangles.”

Tobi Lütke

“Shopify is the Ship of Theseus. Nothing about Shopify is the same.”

Tobi Lütke

From the episode

Tobi Lütke - Embrace the Unexpected - [Invest Like the Best, EP. 278]

Tobi Lütke

→