KatInterview

Time-Aware Airport Activity Recommender System

System DesignModel answer
MediumModel answerSystem Designreal-time systemsrecommendation systemsmobile architecture

Last updated

Design a real-time system that suggests safe activities during airport layovers while guaranteeing travelers never miss their connecting flights.

You're building a service that helps travelers make productive use of downtime between connecting flights. When a user has several hours at an airport between flights, your system should suggest activities—grabbing food, browsing shops, using a lounge, taking a brief walk, or even venturing outside the terminal when time allows.

The challenge: any suggestion that leads to a missed connection is an unacceptable outcome. Your design must prioritize safety over optimization.

The problem is intentionally underspecified. You need to identify missing requirements, state your assumptions clearly, and make principled design choices that balance user value against operational risk.

What You Should Cover

Design the system from concept to implementation. Include:

  • How you'd scope the initial product given limited information
  • The data model for time budgeting and activity feasibility
  • System architecture and component responsibilities
  • How you ensure recommendations stay safe as conditions change
  • What you'd measure and how you'd iterate

Information You Can Work With

Your system has access to:

  • Flight itinerary: arrival/departure times, gates, terminals
  • Airport layout: terminal maps, walking distances, security checkpoints
  • Activity database: restaurants, shops, lounges, their locations and hours
  • Real-time updates: gate changes, delays, boarding times

Key Design Constraints

  • Missing a flight due to your recommendation is catastrophic
  • Layover durations vary from 45 minutes to 8+ hours
  • Airport familiarity varies widely across users
  • Data quality and completeness differ by airport
  • Flight statuses change; gates reassign; delays happen

You should propose reasonable targets for latency, scale, and accuracy rather than assuming they're given.

Hints

Hint 1

Start by defining what makes a recommendation 'safe' in quantitative terms—how much buffer time is enough?

Hint 2

Think about the difference between generating candidate activities and filtering them for feasibility—which constraints are hard vs. soft?

Hint 3

Consider what happens when data is missing or stale: should the system fail open (permissive) or closed (conservative)?