All challenges
Code AnalysisIntermediate 60s

Which Consistency Flaw

Review the order fulfillment pseudo-code. What is the main architectural risk?
Starter code
class OrderFlow:
    def place(order):
        inventory.reserve(order)
        billing.charge(order)
        shipping.schedule(order)
    # on cancel:
    def cancel(order):
        shipping.cancel(order)
        billing.refund(order)
        inventory.release(order)

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle