February 2026Confidential
⚙️ Document 03 of 08

Technical Architecture

Technology stack, infrastructure, hosting, and security

Najum E-Commerce PlatformFebruary 2026Confidential

🏗️ System Architecture

┌─────────────────────┐ │ CLOUDFLARE │ │ CDN + DDoS + DNS │ └──────────┬──────────┘ │ ┌──────────▼──────────┐ │ NGINX │ │ Reverse Proxy + │ │ SSL + Load Balancing │ └──────────┬──────────┘ │ ┌───────────────────────┼───────────────────────┐ │ │ │ ┌──────▼──────┐ ┌─────────▼─────────┐ ┌──────▼──────┐ │ React Web │ │ Node.js API │ │ Admin Panel │ │ Port: 3000 │ │ Port: 8000 │ │ Port: 3001 │ └─────────────┘ │ Clustered (PM2) │ └─────────────┘ └─────────┬─────────┘ │ ┌──────────────────────┼──────────────────────┐ │ │ │ ┌──────▼──────┐ ┌────────▼────────┐ ┌───────▼───────┐ │ PostgreSQL │ │ Redis │ │ Meilisearch │ │ Database │ │ Cache/Sessions │ │ Search │ └─────────────┘ └─────────────────┘ └───────────────┘

💻 Technology Stack

What Technology Why We Chose It
Website React 18 Industry standard, fast, huge community
Mobile App React Native (Expo) One codebase for iOS & Android
Backend API Node.js + Express Fast, handles many requests, JavaScript everywhere
Database PostgreSQL 16 Most reliable open-source DB, enterprise-grade
Cache Redis 7 Lightning-fast for sessions and frequent data
Search Meilisearch Typo-tolerant instant search
Payments Stripe World's most trusted payment processor
BNPL Tabby + Tamara UAE's most popular buy-now-pay-later
Email SendGrid Reliable delivery for order notifications
SMS Twilio OTP and notification SMS
CDN Cloudflare Fast global delivery, DDoS protection
Deployment PM2 + GitHub Actions Automated, zero-downtime deploys

🖥️ Your Dedicated Server (VPS)

You will have your own dedicated Virtual Private Server — not shared with anyone.

8
vCPU Cores
32 GB
RAM Memory
500 GB
NVMe SSD Storage
10 TB
Monthly Bandwidth
Component Spec What It Means
Location UAE/Bahrain Region <50ms latency for UAE visitors
OS Ubuntu 22.04 LTS Enterprise-grade, updates until 2027
Backups Daily automated 30-day retention, instant restore
SSL Let's Encrypt Free HTTPS, auto-renewing
Uptime 99.9% SLA Less than 9 hours downtime per year

🔐 Security Architecture

1

Cloudflare WAF

Blocks DDoS attacks, bots, and known attack patterns before they reach your server

2

Nginx Rate Limiting

Prevents brute force attacks, throttles excessive requests

3

JWT Authentication

Token-based auth with session management and role verification

4

Application Security

Input validation, CORS, CSRF/XSS protection, SQL injection prevention

5

Data Encryption

AES-256 encryption at rest, TLS 1.3 in transit

6

Monitoring & Alerts

Real-time threat detection, audit logging, automated alerts

Compliance

Standard Status Description
UAE Data Protection ✓ Compliant UAE Personal Data Protection Law
PCI DSS ✓ Via Stripe No card data touches your server
OWASP Top 10 ✓ Protected All web vulnerabilities addressed
2FA for Admins ✓ Required All staff must use 2-factor auth
GDPR-Ready ✓ Ready Data export and deletion capabilities

🚀 Deployment Pipeline

1

Code Push

Developer pushes code to GitHub repository

2

Automated Tests

GitHub Actions runs all unit and integration tests

3

Build

Production assets built (React web + API)

4

Deploy

Zero-downtime deployment to VPS via PM2

5

Health Check

Automated verification that everything is running correctly

💡 Zero downtime

Your customers will never see a maintenance page. Updates happen instantly without any interruption.

📈 Scalability Path

Stage Users Infrastructure
Launch 0 – 10K Single VPS (current setup)
Growth 10K – 50K Add DB read replica, increase specs
Scale 50K – 200K Multiple API servers + load balancer
Enterprise 200K+ Container orchestration (Kubernetes)