Chapter 3: Shopee Traffic Shield — Kafka Peak Shaving & Circuit Breaking in Go

Previous Chapter: Chapter 2 — Flash Sale Engine & Zero Overselling | Series Hub | Next Chapter: Chapter 4 — Database Scalability: From MySQL to TiDB Answer-First: Shopee utilizes Apache Kafka queues for asynchronous peak shaving during 11.11 mega-campaigns. Decoupling user order submission from relational database persistence guarantees sub-50ms API responses while downstream consumer workers insert orders at a flat, controlled rate. Combined with Alibaba Sentinel adaptive load shedding, virtual waiting rooms, and strict Dead Letter Queue (DLQ) isolation, this traffic shield absorbs 10x traffic surges without database connection pool exhaustion or cascaded outages. ...

Part 4: SRE Practices — Chaos Engineering with Chaos Mesh & Multi-Region Resilience

Previous Chapter: Part 3 — Data Infrastructure: From Aurora to TiDB | Series Hub | Next Chapter: Part 5 — Campaign Architecture: Surviving the 10-Billion Yen Surge Answer-First: Delivering five-nines (99.999%) availability for national payment infrastructure requires shifting from reactive disaster recovery to continuous, automated Chaos Engineering in production. PayPay integrates Chaos Mesh into Kubernetes EKS clusters, deliberately injecting pod evictions, network latency, and cross-AZ partitions during normal business hours to validate self-healing invariants. To prevent cascading failures under heavy load, PayPay enforces distributed circuit breaking with Sentinel, client-side exponential backoff with full jitter, and strict gRPC deadline propagation, ensuring localized microservice brownouts never degrade core payment authorization. ...

Alipay Double 11 Operations: Full-Link Stress Test

🏛️ Anchor Pillar Hub #8: Alipay Double 11 Architecture (544K TPS) | 🗺️ Sitewide Engineering Reading Map ← Series hub ← Prev • Next → Answer-first: Surviving Double 11 requires production Full-Link Stress Testing (Shadow Database traffic simulation) and automated AI-driven operational playbooks to detect and isolate degraded nodes within 1 minute. Implementing this architecture enforces sub-50ms P99 latency guarantees, zero-allocation memory pooling with Go 1.24 unique.Handle, and fault-tolerant Dapr 1.15 component orchestration for resilient production scaling. ...

Chapter 5: Full-Stack Observability — Vector, ClickHouse, and Distributed Tracing at Scale

Previous Chapter: Chapter 4 — Database Scalability: From MySQL to TiDB | Series Hub Answer-First: Operating thousands of microservices generating billions of daily transactions makes naive logging (Elasticsearch/ELK) financially prohibitive and computationally unsustainable. Shopee adopted a next-generation observability stack: Rust-based Vector edge daemons parsing telemetry with SIMD acceleration, Apache Kafka buffering ingestion bursts, ClickHouse columnar storage compressing petabyte-scale logs by 12x with sparse indexing, OpenTelemetry (OTel) collectors executing tail-based adaptive sampling (retaining 100% of errors and p99 latency anomalies while discarding 99% of normal traces), and eBPF continuous profiling diagnosing production CPU/memory bottlenecks with sub-1% runtime overhead. ...