● SYSTEM TOPOLOGY // MULTI-TIER CENSUS PIPELINE

Gaming Parts Monitor Architecture

Daily scheduled scraping ladder, canonical catalogue normalization, median bargain engine, and client-side rig compression.

ZONE 01 // INGESTION & MERGE ZONE 02 // CANONICAL STORAGE ZONE 03 // SERVICE & INTERFACE 04:00 CRON PARSED UPSERT SQLMODEL /API/* SERVE SOURCES 20 Moroccan Retailers curl_cffi · TLS Fingerprint Turnstile · HostThrottle 429 WORKER ScraperWorker Pool Scrapling 0.5 · Thread Pool Adaptive Selectors · SQLite DB NORMALIZER Catalogue Normalizer title_normalizer · spec_normalizer Socket · Form Factor · Variant Split DATA HUB PostgreSQL 16 Storage 16,359 Products · 37,353 Listings Daily Price Snapshots Unique Constraint (1 Price / Store / Day) API TIER FastAPI Core Engine Catalogue · Deals · Trends · Builder Median Deals · 9-Rule Compatibility CLIENT Next.js 15 App Router React 19 · Tailwind 4 · Zustand Deflate URL Sharing (#rig=v2:...) EDGE gamingparts.ma Oracle Cloud VPS Caddy TLS · Docker Compose
01 // INGESTION LADDER

Anti-Bot Escalation & 429 Pacing

Transports scale costs defensively: static TLS impersonation handles baseline requests, while Cloudflare Turnstile triggers pooled headless browsers bounded by process semaphores. HTTP 429 rate limits are discarded and paced via exponential backoff, preventing browser pool cascading.

02 // CANONICAL MERGING

Cross-Store Median Baseline

Independent normalizers resolve component sockets, memory standards, and colour variants into canonical IDs. Real discounts are computed against cross-store medians with a 2.5× plausibility filter, neutralizing prebuilt-PC price contamination.

03 // COMPUTATION & SHARING

9-Rule Engine & Deflate URLs

Static clearance and TDP models evaluate component compatibility before parts are added. Rig configurations are serialized and compressed using native browser Deflate streams into URL hashes, bypassing HTTP 431 header limits.