Digital Wallet System Design
Design a highly reliable digital wallet system similar to Venmo or PayPal. The system must handle high-concurrency P2P transfers, deposits, and withdrawals while maintaining strict financial consistency. Focus on the core accounting ledger, idempotency mechanisms to prevent double-spending, and how the system remains resilient during external bank gateway failures. Assume a scale of 10M daily active users and 10,000 peak transactions per second.
PostgreSQLRedisKafkamTLSSaga PatternACIDDouble-Entry AccountingKubernetesAPI Gateway
00