Withdrawal before deposit — System design

A bank sometimes processes a withdrawal before the deposit that funds it. Keep each account's events in order.

All system design challenges