How do you reserve capacity for an online order while payment is still pending?
Answer
Store every order as an immutable timestamped event and reserve capacity the moment the order is placed. If payment fails or the order is abandoned, append a negative order with the same dispatch time to release the capacity.