Designing a System for Black Friday-Scale Traffic

Designing a System for Black Friday-Scale Traffic (50x Spikes, 48-Hour Window)

A production-grade system-design walkthrough for absorbing a 50x, 48-hour Black Friday traffic spike: predictive pre-scaling and horizontal auto-scaling, virtual waiting rooms for graceful load shedding, circuit breakers and bulkheads around the payment gateway, atomic conditional inventory decrement, a Kafka-buffered async order pipeline, layered CDN+cache+read-replica offload protecting the primary database, and…

Read More
Designing 'Who Viewed Your Profile' With Near Real-Time Updates

Designing “Who Viewed Your Profile” With Near Real-Time Updates

Designing “Who Viewed Your Profile” with near real-time updates A full walkthrough of how professional networking platforms track, aggregate and surface profile-view activity — near-instantly, at hundreds of millions of users, without drowning the system in write traffic. 01 · History02 · Problem03 · Capacity04 · Architecture05 · Capture06 ·…

Read More
Detecting a Compromised Public-Figure Account from Anomalous Posting Behavior

Detecting a Compromised Public-Figure Account from Anomalous Posting Behavior

A production-grade system-design walkthrough for detecting compromised public-figure accounts from anomalous posting behaviour: per-account behavioural baselining across temporal, content, session, and interaction features; ensemble risk scoring with high-confidence rule overrides; a tiered response ladder (passive log → flag → step-up auth → temporary hold and page); human-in-the-loop review; and fail-toward-caution…

Read More
Designing a Verified Badge Program

Designing a Verified Badge Program: Validating Identity Claims for Millions of Applicants &mdash

A complete system design walkthrough for a verified badge identity-verification program at scale: applicant intake, encrypted evidence storage, asynchronous fan-out pipeline (document forensics, liveness/face-match, deduplication, eligibility, risk scoring), three-lane decision routing (auto-approve / human review / auto-reject), badge issuance, tamper-evident audit log, appeals, and data-minimising retention — with inline SVG…

Read More
Designing a Real-Time US Sales Tax Calculation System at One Million Requests per Minute

Designing a Real-Time US Sales Tax Calculation System at One Million Requests per Minute

Designing a Real-Time Sales Tax Calculation System Across Thousands of US Jurisdictions A marketplace tax engine that is instant, correct, and survives one million requests a minute — built from first principles through to production concerns. 01 · Intro02 · History03 · Problem04 · Core Concepts05 · Architecture06 · Internals07…

Read More
Designing a 'Try Before You Buy' System for Apparel Marketplaces

Designing a ‘Try Before You Buy’ System for Apparel Marketplaces

A complete system design walkthrough for a Try Before You Buy apparel marketplace: saga-coordinated trial orders, card authorisation holds, soft and hard inventory reservation, order and return state machines, automated pickup scheduling, courier anti-corruption adapters, warehouse QC, refund and restock flow, capacity estimation, security, and fraud prevention — illustrated with…

Read More