ShopPulse Core — High-Concurrency Multi-Vendor E-Commerce & Order Backend
Polyglot TypeScript 5 & Node.js 22 e-commerce engine with atomic Redis Lua flash-sale inventory, integer-paise Prisma ledger, and Socket.IO order tracking.
Problem Statement
During festive sales and limited product drops, multi-vendor marketplaces often accidentally sell the last available item to multiple customers at once, suffer billing rounding errors on discounts and GST splits, lose payment confirmations on unreliable callbacks, and stall checkout screens while generating invoice PDFs and confirmation emails.
Solution Architecture
Architected a strictly typed Node.js 22 + TypeScript 5 + Express.js platform pairing MongoDB 7 (flexible product specs & vendor variants) with PostgreSQL 16 + Prisma 5 (ACID integer-paise order & settlement ledger). Redis Lua scripts guarantee atomic flash-sale reservations while BullMQ and Kafka Outbox handle fulfillment and live Socket.IO order updates.
Architecture Highlights
- Node.js 22 + Strict TypeScript 5 + Express.js modular Clean Architecture with Zod validation
- Polyglot DB: MongoDB 7 + Mongoose 8 (ESR-indexed catalog) & PostgreSQL 16 + Prisma 5 (ACID orders)
- Redis 7 Lua atomic reservations, single-flight caching, and Socket.IO Redis Adapter pub/sub
- BullMQ Flows + Kafka transactional outbox/DLQ for invoices, emails, and vendor payouts
- 3-Stage Docker Compose + Nginx + PM2 + OpenTelemetry/Prometheus/Grafana + Trivy CI
Tech Stack & Metrics
Verified Benchmarks
- {"label":"Flash-Sale RPS","value":"2,500 RPS"}
- {"label":"P95 Checkout","value":"46 ms"}
- {"label":"Oversell Rate","value":"0.00%"}
- {"label":"Socket Broadcast","value":"< 75 ms"}
Deployment: 3-Stage Alpine Docker Compose • Nginx Reverse Proxy • PM2 Cluster • GitHub Actions
Builder Role: Node.js & TypeScript Backend Engineer (MAA-NBCP-2026-B02)