Preparing your design workspace

Loading the problem and your saved attempt…

Design a Flight Offer Aggregator

Design provider boundaries and deterministic merging for normalized flight offers with partial results.

A flight search product needs to combine offers from several airline and travel-provider adapters. For this exercise, assume one caller supplies an origin, destination, travel date, and requested currency to a configured set of providers. Each provider either returns its own offer shape or a typed failure.

Successful responses must be translated into a common form; after translation, all monetary values are in the requested currency. For this exercise, assume an itinerary is identified by its ordered flight segments, including carrier, flight number, origin, destination, and scheduled departure instant.

Keep one offer per itinerary using lowest total price, then provider ID, then provider offer ID as a total tie-break. Order the retained offers by itinerary identity.

Return the deterministically ordered retained offers together with every provider failure, so one failed provider never erases another provider's results. Design the responsibilities, contracts, and interactions. Live network clients, booking, payment, persistence, caching, and distributed fanout are outside scope.