System Initialization
0%
Initializing environment...
const data = await fetch();
<div>
</>
export default function App()
=>
db.collection.aggregate()
Al Amin Mollik.
Back to Projects

Bring By Air -- eCommerce

Cross-border SaaS E-commerce & Multi-Tenant Logistics Hub

Bring By Air -- eCommerce

Architecture

Multi-Tenant SaaS

Core Engine

Group Buy & Ledger

Payments

Stripe & AamarPay

Infrastructure

Dokploy VPS & Cloudflare

Architectural Case Study

//Navigating multi-tenant scaling, custom freight heuristics, and real-time ledgers.

Architecting a True Multi-Tenant SaaS Core

Instead of deploying disparate infrastructures for distinct e-commerce brands, I engineered a unified Node.js and TypeScript SaaS backend. This central engine securely drives distributed frontends and administrative dashboards via strictly enforced tenant data boundaries. To optimize server resource allocation, I integrated event-driven garbage collection hooks that automatically purge orphaned cloud assets upon database record deletion, preventing long term storage bloat.

Shopify Style SKU Modeling & Dynamic Logistics Handling

A significant architectural hurdle was establishing a robust product schema. I developed a highly scalable, polymorphic variant architecture capable of mapping complex multi-tiered options, synchronizing 2-way inventory, and automating restock queues.

For cross-border fulfillment, I engineered a dynamic, rule-based logistics calculation engine. By synthesizing the complex constraints of regional logistics networks, the algorithm computes precise shipping matrices utilizing both dimensional weight (DIM) and volumetric thresholds, allowing for fully automated, region-specific logistics pricing.

The Immutable Ledger & Concurrency Engine

The platform required a hybrid transactional ecosystem, accommodating digital gateways (Stripe, AamarPay) alongside localized physical collections. To prevent financial fragmentation, I architected an append-only, centralized ledger system. Serving as the absolute source of truth, it utilizes webhook listeners to reconcile asynchronous credit, debit, and manual adjustments flawlessly.

This ledger seamlessly interfaces with the custom Group Buy module—a concurrency-heavy aggregation engine that dynamically calibrates SKU pricing based on real-time participant volume and pre-configured market thresholds.

Custom Link-to-Order Engine

To streamline the cross-border shopping experience, I built a custom link-to-order engine. Users simply paste a product URL from an international store (like Amazon, Walmart), and the backend dynamically extracts the product details and displays them directly on our website. Once the customer confirms the pre-order, the system seamlessly moves it into our logistics pipeline for the team to fulfill.

Scalable Real-Time Telemetry & Push Architecture (OS level notification from web)

Finally, to drive conversions and user engagement, I engineered a highly complex, multi-layer notification system. The architecture leverages WebSockets for instant UI hydration, backed by a Redis adapter to ensure socket connections remain stable and synchronized across horizontally scaled server instances.

Going beyond standard web alerts, I utilized the Push API to deliver rich, OS-level push notifications with media attachments, mirroring native mobile application behavior. I also developed a dedicated admin interface leveraging this infrastructure, allowing the team to launch real-time broadcast marketing campaigns directly to users' devices, supported by a dedicated queue for asynchronous email campaigns.

End-to-End DevOps & Infrastructure Lifecycle

Beyond the application code, I managed the entire Software Development Life Cycle (SDLC) from initial architecture to production. I provisioned and hardened the production Linux VPS, establishing secure, automated deployment pipelines. To guarantee global performance and security, I orchestrated Cloudflare across the infrastructure—implementing aggressive edge caching, precise DNS routing, and strict Web Application Firewall (WAF) rules, ensuring the multi-tenant architecture remains incredibly fast and secure.

Engineering Spotlights

Isolated Tenant Schemas

A centralized backend capable of serving completely isolated data models and inventory for multiple storefronts, preventing data leakage.

Dynamic Group Buy Engine

Programmatically scales down product pricing based on real-time user participation and automated deal thresholds.

Centralized Financial Ledger

Reconciles automated payment gateways with manual store transactions to maintain strict financial integrity.

Native Push Architecture

Delivers rich, OS-level media notifications directly to user devices utilizing the Web Push API, replicating native mobile app engagement.

Al Amin's AI

Online
Ask me about Al Amin's tech stack, experience, or how to contact him!