Skip to content
Back to all work
Commerce · API

Northwind Commerce

A multi-tenant commerce API serving 300 storefronts from one codebase without per-client forks.

Client
B2B marketplace, London
Role
Consulting engineer
Year
2024
Category
Commerce · API

The engagement

Each new enterprise client had been onboarded by branching the codebase. Eighteen branches in, shipping any shared fix took a week of cherry-picking.

We collapsed the forks into a single tenant-aware service: row-level security in PostgreSQL, a per-tenant configuration layer for the genuinely different behaviour, and a plugin surface for the rest.

Onboarding a storefront is now a configuration record and a DNS entry — roughly two hours, down from three weeks of engineering time.

Tech stack

NestJS
PostgreSQL
Prisma
Stripe
Docker