Part 1: Microservices & GitOps Blueprint — Domain-Driven Design and Automated Canaries

Multi-Language Edition: This chapter is also available in Vietnamese at 📖 Bản tiếng Việt (Vietnamese Edition). Series Hub | Next Chapter: Part 2 — Event-Driven Architecture & Kafka at Scale Answer-First: PayPay manages over 100 microservices across hundreds of engineers by enforcing strict Domain-Driven Design (DDD) bounded contexts communicated via gRPC and Protocol Buffers, completely bypassing the high serialization latency of REST/JSON. To eliminate human error in production deployments, PayPay implemented a zero-trust GitOps workflow using ArgoCD coupled with Argo Rollouts. Progressive canary deployments automatically evaluate live production telemetry (Prometheus P99 latency and error rates) at 10% traffic shifts, triggering instantaneous rollbacks without human intervention if regressions occur. ...

Part 2: Event-Driven Architecture — Kafka at Scale, Transactional Outbox & Idempotency

Multi-Language Edition: This chapter is also available in Vietnamese at 📖 Bản tiếng Việt (Vietnamese Edition). Previous Chapter: Part 1 — Microservices & GitOps Blueprint | Series Hub | Next Chapter: Part 3 — Data Infrastructure: From Aurora to TiDB Answer-First: Handling sudden promotional payment spikes of thousands of TPS requires complete decoupling of synchronous ingress requests from asynchronous ledger persistence. PayPay implements an Event-Driven Architecture centered on Apache Kafka. To guarantee zero financial discrepancies between the database and event streams, PayPay utilizes the Transactional Outbox Pattern with Debezium CDC, avoiding dual-write race conditions. Downstream consumer microservices enforce strict idempotency via Redis distributed locks and UUIDv7 idempotency keys, paired with isolated Dead Letter Queues (DLQ) to prevent poisoned payloads from blocking partition processing. ...

Part 3: Data Infrastructure — Migrating from Aurora to TiDB Multi-Raft NewSQL

Multi-Language Edition: This chapter is also available in Vietnamese at 📖 Bản tiếng Việt (Vietnamese Edition). Previous Chapter: Part 2 — Event-Driven Architecture & Kafka at Scale | Series Hub | Next Chapter: Part 4 — SRE Practices & Chaos Engineering Answer-First: Operating a national mobile payment network generating billions of financial records pushed traditional Amazon Aurora MySQL past its physical write thresholds due to single-master bottlenecks, cross-replica replication lag, and connection exhaustion during marketing surges. PayPay executed a landmark zero-downtime migration to TiDB and TiKV, a cloud-native NewSQL distributed database. By decoupling stateless SQL compute from Multi-Raft storage engines across 96MB continuous Regions, TiDB provides horizontal write scalability, strictly linearizable ACID consistency, and real-time HTAP analytics through TiFlash without impacting high-frequency payment ledgers. ...

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

Multi-Language Edition: This chapter is also available in Vietnamese at 📖 Bản tiếng Việt (Vietnamese Edition). 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. ...

Part 5: Campaign Architecture — Surviving the 10-Billion Yen Surge & Virtual Waiting Rooms

Multi-Language Edition: This chapter is also available in Vietnamese at 📖 Bản tiếng Việt (Vietnamese Edition). Previous Chapter: Part 4 — SRE Practices & Chaos Engineering | Series Hub | Next Chapter: Part 6 — AI Platform: Real-Time Fraud & LLM Hub Answer-First: Handling viral promotional spikes like the historic “10-Billion Yen Campaign” requires safeguarding core payment processing from promotional logic overload. PayPay achieves this through a multi-tier defense: Edge Virtual Waiting Rooms buffer traffic surges at CloudFront, admitting users only at backend processing capacity; Atomic Redis Lua scripts track finite campaign budgets in sub-millisecond memory to prevent budget overruns; and Two-Phase Reward Decoupling isolates the synchronous payment checkout from deferred cashback calculations via Kafka, verified by automated end-of-day three-way reconciliation. ...

Part 6: AI Platform — Real-Time Fraud Detection & Enterprise LLM Hub

Multi-Language Edition: This chapter is also available in Vietnamese at 📖 Bản tiếng Việt (Vietnamese Edition). Previous Chapter: Part 5 — Campaign Architecture: Surviving the 10-Billion Yen Surge | Series Hub Answer-First: Protecting 70 million users from sophisticated financial fraud while processing billions of annual transactions requires decisions within the tight latency budget of payment authorization. PayPay maintains an industry-leading fraud rate of ~0.0015% by deploying a Sub-10ms Real-Time ML Scoring Pipeline. Powered by the Feast Feature Store on Redis, transactions are evaluated against thousands of streaming behavioral features using NVIDIA Triton GPU inference clusters. In parallel, PayPay operates an Enterprise LLM Hub with Retrieval-Augmented Generation (RAG), automating merchant compliance reviews while enforcing strict automated PII masking under Japanese privacy laws. ...

PayPay Architecture: Scaling for Planet-Scale Mobile Payment Campaigns

Multi-Language Edition: This series is also available in Vietnamese at 📖 Bản tiếng Việt (Vietnamese Edition). Answer-First: PayPay is Japan’s dominant mobile payment service, supporting over 70 million registered users, 7.8 billion annual transactions, and peak promotional surges exceeding 1,250 TPS. To deliver 99.999% availability with zero double-spending guarantees, PayPay evolved from monolithic roots to a cloud-native architecture powered by five pillars: Domain-Driven Microservices with ArgoCD GitOps, Event-Driven decoupling via Apache Kafka, Distributed SQL horizontal scale with TiDB Multi-Raft, Proactive resilience via Chaos Mesh, and Sub-10ms real-time ML fraud detection. ...

PayPay Architecture: Scaling Payments to 70M Users

PayPay Architecture: Scaling to 70M Users & 100k Peak TPS Answer-first: PayPay’s payment architecture scales to 70M users and 100k TPS using microservice domain isolation, distributed transaction Saga patterns, and multi-region database sharding. PayPay launched in October 2018 and grew to 10 million users in just 3 months — a growth rate that no Japanese fintech had ever seen. By 2025, the platform had crossed 70 million registered users and processed 7.8 billion payments per year. Behind this growth is an engineering team that has had to scale not just their infrastructure, but their entire engineering culture: from service standardization and GitOps-driven deployments to chaos engineering and AI-powered fraud detection. ...