Skip to main content

Preview — Pro guide

You are seeing a portion of this guide. Sign in and upgrade to unlock the full article, quizzes, and interview answers.

Airline Reservation & Seating — LLD (PNR, Segments, Overbooking Policy)

LLD for airline reservations: PNR, segments per FlightInstance, seat holds, FareRule/Strategy, overbooking policy, and TOCTOU-safe seat commit. Ties to hotel/movie-ticket holds; names DCS check-in and standby as extensions.

55 min read 3 sections 1 interview questions
Airline LLDPNRFlightInstanceDCS Check-inOverbookingStandbySeat MapGDSFareRuleObject-Oriented DesignPolicy PatternSEDIE FrameworkItinerary Segments
IMPORTANT

What Interviewers Are Actually Testing

Airline questions blend LLD and domain nouns from real ops: PNR (passenger name record) as the booking aggregate, segment-scoped inventory, cabin classes, and overbooking as a policy object — not a hardcoded 105% in Aircraft. They probe whether you conflate a Route (marketing) with a FlightInstance (one tail on one day) — the same show vs room mistake in ticketing. A staff answer names DCS (departure control) and no-show statistics as the business justification for overbooking, then returns to the class diagram. Weak answers model Flight as a string and ignore connections.

Clarifying Questions

01

Multi-segment itineraries (connecting flights)?

PNR has ordered Segments; a failure on leg 2 may require rollback of hold on leg 1 — or separate PNRs — ask.

02

Seat assignment at booking or at check-in?

Some airlines sell seats, some auto-assign. Model optional SeatAssignment per segment with status OPEN|ASSIGNED|SWAPPED.

03

Overbooking allowed?

Policy object OverbookingPolicy on route/cabin with max oversell; legal exposure if you do not state volunt/invol rules — LLD: interface + one impl.

04

Standby and upgrades?

Separate Waitlist queue per FlightInstance with priority rules — not List on Flight only.

05

Payment timing?

Hold → confirm like tickets; 24h risk-free in some jurisdictions — a FareRule strategy.

06

Codeshare and marketing carrier?

Below line for many interviews; if raised, add OperatingCarrier vs MarketingCarrier on segment.

IMPORTANT

Premium content locked

This guide is premium content. Upgrade to Pro to unlock the full guide, quizzes, and interview Q&A.