Skip to content
All work

Retail, 2024

Parcel

A multi-tenant commerce platform that hosts storefronts for 900 independent retailers.

Sector
Retail
Year
2024
Duration
9 months
Team
5 engineers
Focus
Scale

Architecture, 7 components

StorefrontsEdge cacheCommerce APIJobsSearchPostgresPayments
  • Client
  • Service
  • Queue or log
  • Data store
  • External system

The problem

Each new retailer meant a new deployment, a new database and a week of setup. The client wanted self-serve onboarding without one tenant's holiday traffic slowing down the others.

What we built

  1. 01Designed tenant isolation at the database level with row-level security in PostgreSQL.
  2. 02Served storefronts from one Next.js application, cached at the edge per tenant.
  3. 03Moved search indexing and email to background jobs with per-tenant rate limits.
  4. 04Integrated payments through a provider-agnostic adapter.

What changed.

retailers on one platform
900
from sign-up to live storefront
4 min
availability over peak season
99.98%

Stack

  • Next.js
  • Node.js
  • PostgreSQL
  • Prisma
  • Vercel

Have a system that needs to carry more?

Tell us what you are building and where it strains. We will reply with how we would approach it.