Modular Monolith Guide: Prime Video & Monolith Revival

Prerequisite: This is the executive summary and introductory overview of the Modular Monolith Architecture series. No prior reading is required to start here. Part 0: Executive Summary — How Amazon Prime Video Saved 90% on Infrastructure Costs Answer-first: Amazon Prime Video reduced infrastructure costs by 90% by consolidating their audio/video monitoring service from serverless AWS Lambda/Step Functions into a single modular monolith. This transition eliminated high-frequency state transition fees and S3 network egress bottlenecks, demonstrating that in-memory data processing outperforms distributed microservices for high-throughput workloads. ...

July 3, 2026 · 12 min · Lê Tuấn Anh

Serverless E-Commerce: Cloudflare Workers & D1 Architecture

Serverless E-Commerce: Cloudflare Workers & D1 Architecture Edge-native schema migrations and connection tuning for SQLite-based D1. Managing distributed lock states in Durable Objects without causing bottleneck stalls. Running a traditional PHP/MySQL stack for e-commerce works until a flash sale hits. Then you’re scaling servers, tuning Redis, and hoping your monolithic database doesn’t lock up. If you are exploring moving away from Magento or simply evaluating the edge, there is a radically different approach: building a transactional e-commerce engine entirely on Cloudflare’s edge network. ...

May 25, 2026 · 9 min · Lê Tuấn Anh