Back to All Projects
E-Commerce30+ DB Models • 3-Tier Roles

Elumpu

Multi-Vendor Bangladeshi Digital Marketplace — Seller KYC, Variant Catalog & Event-Driven Architecture

A multi-vendor e-commerce platform purpose-built for the Bangladeshi digital marketplace. Engineered the core pre-order marketplace architecture: 3-tier role-based access, verified seller KYC onboarding, full product variant management, subscription-gated features, zone-based shipping, and flash deals.

Elumpu showcase mockup

Project Scope

RoleFull-Stack Engineer (Core Marketplace, Seller KYC, Catalog, Subscriptions & Pre-Order Flow)
StatusProduction-Deployed
Target UsersMarketplace Shoppers, Verified Sellers & Platform Administrators (3-Tier Role Architecture)
PlatformsWeb Storefront, Seller Dashboard & Admin Panel

The Problem & Opportunity

Multi-Tenant Role Boundaries

Every feature had to cleanly separate Customers (browsing across stores), Sellers (managing storefronts & inventory), and Admins (governing KYC & subscriptions) within one unified codebase.

Bangladeshi Marketplace Constraints

Seller verification required government-issued National ID or Trade License documents, alongside sharp shipping rate differences across same-district, Dhaka inter-district, and cross-country zones.

Subscription-Driven Sustainability

The platform needed Base and Add-on subscription tiers to gate merchant capabilities (product limits, branding, flash sale access) rather than relying solely on per-transaction fees.

Challenge, Solution & Architecture

The Challenge

Architecting a scalable 3-tier multi-vendor foundation—covering verified KYC onboarding, complex product variants, media optimization, subscription gating, and zone-based shipping—up to the cart and checkout boundary.

The Solution

Built an event-driven Next.js + Node.js/Express + PostgreSQL/Prisma system with Redis caching, RabbitMQ background workers, AWS S3 presigned uploads with Sharp processing, and strict API/UI subscription enforcement.

System Architecture Flow

Next.js (Redux Toolkit + TanStack Query + Zod) <-> Node.js / Express REST APIs + Socket.IO <-> PostgreSQL (Prisma, 30+ Models) + Redis + RabbitMQ + AWS S3.

Frontend Architecture

  • Next.js, React, TypeScript & Tailwind CSS across Storefront, Seller Dashboard, and Admin Panel
  • Redux Toolkit & TanStack Query for persistent multi-seller cart state and server-state caching
  • React Hook Form with Zod schemas for strict multi-step KYC and product variant validation
  • Google OAuth 2.0 authentication and Socket.IO real-time event updates

Backend & Database Architecture

  • Node.js & Express REST APIs (20+ endpoint groups) with PostgreSQL and Prisma ORM (30+ models)
  • AWS S3 presigned uploads with Sharp image optimization pipeline
  • RabbitMQ topic exchange decoupling notifications, SMS dispatching, and subscription lifecycle jobs
  • Redis caching and Dockerized deployment architecture

Key Engineering & Design Highlights

1. Structured Seller Onboarding with KYC

  • •Aspiring sellers register their brand, upload National ID or Trade License documents via AWS S3 presigned URLs, and complete a step-by-step verification flow.
  • •Admin review and approval workflow gates merchant dashboard access until verification passes.

2. Multi-Vendor Catalog, Variants & Persistent Cart

  • •Built full product and variant management (size, color, stock, pricing) for sellers alongside a multi-store browsing experience for customers.
  • •Implemented persistent multi-seller cart state ahead of the order-splitting and checkout pipeline.

3. Subscription-Gated Feature Access

  • •Sellers choose from Base and Add-on plans unlocking higher product limits, flash sale access, and branding features.
  • •Plan entitlements are enforced consistently at both the Express API middleware and Next.js UI layers.

4. Event-Driven Backend, Zone Shipping & Flash Deals

  • •RabbitMQ topic exchange decouples notifications, SMS dispatching, and subscription jobs from HTTP requests.
  • •Configured custom seller shipping rates across 3 geographic zones with weight-based pricing and live-countdown flash deals.

Key Results & Impact

MetricBeforeAfterImprovement
Database Schema ScaleSingle-store concept30+ Relational ModelsFull Multi-Vendor Data Model
Role ArchitectureNo tenant isolation3-Tier RBACCustomer, Seller & Admin
API SurfaceGreenfield20+ Endpoint GroupsModular & Event-Driven

Engineering Differentiators

Unified 3-Tier Codebase

Storefront, Seller Dashboard, and Admin Panel engineered cleanly within a single cohesive architecture.

Production Media & Queue Pipeline

AWS S3 presigned uploads + Sharp image processing + RabbitMQ workers keep API responses fast under load.

Clear Scope Ownership

Architected and delivered the entire pre-order marketplace foundation—KYC, catalog, variants, shipping, flash deals, and subscriptions.

Technologies Used

Next.jsReactTypeScriptTailwind CSSNode.jsExpressPostgreSQLPrismaRedisRabbitMQDockerRedux ToolkitTanStack QueryZodSocket.IOAWS S3SharpGoogle OAuth 2.0