Design a flight-search API that aggregates results from many external suppliers.
Unlock detailed company stats for this questionUpgrade
Design a flight-search API aggregating results from 20-200 external suppliers, each supporting one route query at a time, with different SLAs and protocols (JSON, SOAP/XML, Protobuf). Identical flights are deduplicated to the cheapest fare, results should be displayed quickly, and supplier data is valid for one hour.
Reference approach: API gateway (auth, rate limiting), orchestration service (aggregation, dedup), supplier connector layer (protocols, timeouts, retries, SLAs), cache, and Server-Sent Events for incremental results; canonical flight identity for dedup; monitor backend CPU/memory, backend P99 and per-supplier P99.
Expect follow-ups like
- If intermediate results are streamed before deduplication is complete, users may see duplicate flights. How do you return results quickly while avoiding that?
- How should customer-facing latency targets be defined when suppliers have different response times?
- If the pod serving an SSE connection goes down, can another pod resume the stream? How do reconnection and recovery work?
- If 1-2% of suppliers take several minutes to respond, how do you return fast results while retaining their late responses?
- What happens to in-flight supplier calls and streams if the connector service goes down?
- How should the system behave if the cache is unavailable for several minutes and then recovers?
- Which caching technology would you select, and why?
Format · 60-minute architecture and system design round.
Community answers
No answers contributed by the community yet.


