Design using java solid principles with cap theorem utilizing low level design banking application
Summary A critical flaw was identified in the banking application’s account management system. State transitions between OpenedStateAccount and ClosedStateAccount lacked enforcement of transaction rules. When users attempted deposits/withdrawals on closed accounts, the system violated domain invariants by allowing illicit state-agnostic operations. Additionally, transaction methods ignored CAP theorem implications by processing all modes (Physical Cash, RTGS, … Read more