Delayed Virtual Currency Escrow System
Design a high-scale virtual currency escrow service (e.g., for Robux) that allows users to schedule payments to be released after a designated future delay (ranging from seconds to days). The system must deduct funds immediately from the sender, support cancellations prior to maturity, and ensure at-least-once execution within a tight SLA. Handle 5,000 QPS and discuss how you ensure ledger consistency, handle short-term vs. long-term delays, and manage the race conditions between execution and cancellation.
PostgreSQLRedisACIDDistributed TransactionsTCCIdempotencyZSetRate Limiting
00