DEV Community

Kholipha Ahmmad Al-Amin
Kholipha Ahmmad Al-Amin

Posted on

Zero-Cost Cloud Architecture for E-Commerce: How We Built iseulglow on Cloudflare Edge

Running a high-traffic e-commerce brand does not require four-figure cloud infrastructure bills. For iseulglow, a dedicated authentic Korean skincare platform in Bangladesh, we architected a zero-cloud-cost stack deployed entirely on Cloudflare edge primitives.

Edge Architecture Overview

  • Cloudflare Pages with Next.js 14 Static Exports: The entire catalog, product pages, and editorial articles are pre-rendered into static HTML and delivered via global edge caches.
  • Cloudflare Workers for Serverless APIs: Dynamic operations such as cart validation, inventory decrements, and order placement run on serverless workers with sub-10ms cold starts.
  • Dual D1 Relational SQL Databases: We maintain strict separation of concerns by utilizing one D1 database for the primary e-commerce catalog and transactions, and a second isolated D1 instance for multi-channel customer communications.
  • Cloudflare R2 for Media Storage: High-resolution product photography is stored in R2 with zero egress fees, dramatically cutting media distribution expenses.
  • Automated Courier Dispatch: Integrated directly with the Pathao Courier API, automatically registering shipments and generating tracking numbers upon order confirmation.

Detailed architectural diagrams and ecommerce performance benchmarks can be reviewed at https://kholipha-ahmmad-al-amin.me/#projects.

Top comments (0)