Help
Ignitech
HomeBlogContact
Account
Sign In|Register

Ignitech

Morocco

support@ignitech.ma

Privacy & Legal

  • Terms & Conditions
  • Privacy Policy
  • Shipping Policy
  • Refund Policy
  • Cookie Policy
  • Accessibility Policy

Help & Info

  • About Us
  • Delivery Info
  • Track Order
  • Complaints Process
  • Payment Methods
  • FAQ

Customer Service

  • Contact Us
  • Become an Affiliate
  • Loyalty Program
  • Newsletter Signup
  • Arrange a Return
  • Sitemap

Antigravity E-commerce. All rights reserved. © 2026 | Ignitech

Antigravity is a trademark of TradeSecret Inc.

Google Pay
Apple Pay
Shop Pay
PayPal
Visa
Mastercard
Amex
Discover
Diners
Elo
JCB
UnionPay
Ideal
Technology

Building Multi-Tenant E-commerce on Bun and ElysiaJS

Amina El Fassi
June 25, 2026
1
Building Multi-Tenant E-commerce on Bun and ElysiaJS

Introduction

Multi-tenancy is mostly about boundaries. Each request carries a site identity, and every layer must respect it — without leaking one brand's data into another.

Multi-tenant request flow diagram

Resolving the tenant

We resolve a site from its domain via the control-plane registry, then map it to a Medusa sales channel. The x-site-id header is never trusted from the client — scoping is enforced server-side on every route.

A typed BFF with Eden

The storefront talks to an ElysiaJS BFF over Eden, so request and response types are shared end-to-end. Engines (Medusa, Convex) sit behind the BFF and degrade gracefully when one is down.

Watch it in action

Prefer video? ▶ Watch the walkthrough

Built on Bun + ElysiaJS, served through Convex. Questions welcome in the comments.

Tags:
E-commerce
Convex
Performance

Categories

All PostsTechnologyDesignBusinessTutorialsNews

Recent Posts

What's New in Our Platform — 2026 Edition

Jun 28, 2026

Building Multi-Tenant E-commerce on Bun and ElysiaJS

Jun 25, 2026

Designing Accessible Product Pages That Convert

Jun 20, 2026

Convex vs Traditional Databases for Content

Jun 14, 2026

Scaling a Storefront on the Edge

Jun 7, 2026

Subscribe

Get the latest updates and offers directly to your inbox.

Security check will load on interaction