This question evaluates a candidate's ability to architect a highly reliable transactional account-balance service, testing competencies in data modeling and storage choice, API design for idempotency, concurrency and consistency mechanisms, replication/failover, partitioning for scale, and auditability.
You are designing a backend service that stores and updates user account balances (like a wallet/bank ledger). The system must be highly reliable and correct.
Describe: