All challenges
Multiple ChoiceIntermediate 45s

Sync vs async architecture

A checkout flow must return a payment decision to the customer within 2 seconds and also trigger fulfillment, email, and analytics. What architecture best balances this?
Options
  1. 1Fully synchronous chain covering payment, fulfillment, email and analytics
  2. 2Synchronous call for the payment decision, asynchronous events for downstream side effects
  3. 3Fully asynchronous fire-and-forget for everything including payment
  4. 4Batch everything nightly and reply to the user the next day

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