Loading
Skip to case study

System design case study

Airport Customer Integration Architecture

How I’d bring inconsistent airport data into one reliable model, and onboard every new customer the same way.

Type
Independent project
Data
Synthetic, fictional customers
Prototype
Python and SQLite, 16 passing tests

The problem

Airport systems don’t agree. One ground handler’s flight API sends nested JSON with its own status codes, its baggage export uses local times with no offset, and another handler uses ICAO airport codes. Passed straight through, those differences become wrong times and silent errors downstream.

The architecture

Customer data sources feed customer-specific adapters, which produce a shared canonical model. Shared validation checks each record and its relationships to other records, then sends it to exactly one outcome: accepted (loaded into SQLite for operational analysis), needs review, or rejected. The downstream dispatch platform is hypothetical.
Customer formats stop at the adapters; everything after them is shared. Open full size
Adapters
One small function per customer feed, translating its format and codes.
Canonical model
One shape for every customer: UTC times, IATA codes and a shared flight key.
Shared validation
The same rules for everyone, on each record and then across records.
Operational data
Only accepted records are loaded into SQLite and queried with SQL.

Key decisions

Reusable adapters

Adding the second customer took one new adapter, its config and tests. The core didn’t change.

Consistent validation

Adapters aren’t trusted. An adapter that forgets to convert to UTC is caught by the shared rules.

Explicit outcomes

Every record is accepted, held for review or rejected with a reason. Nothing is guessed or silently dropped.

Customer onboarding

The repeatable process I’d follow for each new customer.

  1. Discover

    Collect sample feeds; agree time zones, codes and which source owns each field.

  2. Design

    Write the customer’s adapter and config.

  3. Validate

    Run their samples through shared validation and review every exception.

  4. Deploy

    Go live once the outcomes match what the customer expects.

Proof of concept

Built: the prototype

  • Python, standard library only
  • Two fictional customers, three feeds
  • 15 sample records: 7 accepted, 2 held for review, 6 rejected
  • Accepted records loaded into SQLite and queried with SQL
  • 16 passing automated tests

Proposed for production

  • Duplicate handling that survives restarts
  • Stale updates never overwrite newer data
  • Each field has one agreed source of truth
  • An append-only audit log
  • A real dispatch platform, review queue and error report