Problem Statement
Describe a reconciliation strategy after a long partition for an AP shopping cart service.
Explanation
Keep per-item version vectors or last-write-wins timestamps. On heal, merge carts per user by resolving conflicts item-wise: choose higher version, or sum quantities with caps, or surface conflicts to users. Log all merges for audit. Rebuild secondary indexes from the merged truth and invalidate related cache keys. Notify clients to refresh.
Code Solution
SolutionRead Only
merge(item): if vA>vB → pick A; if concurrent → rule: max(qty) or user confirm
