Problem
Design a book price aggregator that accepts customer bids, queries hundreds of partner bookstores, and completes purchases at the lowest available price
- Fan out to hundreds of external APIs in parallel while guaranteeing sub-five-second response latency
- Aggregate partial results from responsive stores and tolerate timeouts without blocking the entire request
- Maintain purchase consistency with an order-before-charge flow that safely rolls back when payments fail
Key Test Points
- Price caching
- Timeout fence
- Order-before-charge
Spot an issue or have a suggestion?