Technical Architecture and Migration Practice for Large Airport Relocation
This article uses a large airport relocation as a case study to explain how to engineer a one-shot production cutover. It covers a layered cutover window design, data-layer practices including dual writes, reconciliation, and identifier continuity, a participant-based traffic rollout matrix instead of percentage-based canary, a minimal four-category observability model, three levels of rehearsed rollback, and the organizational factors that decide success. The same framework applies to data center migration, domain switching, cross-region database moves, and payment channel replacement.
Technical Architecture and Migration Practice for Large Airport Relocation
1. From a Real Relocation Scenario to an Engineering Problem
A newly built 4F-class international airport officially opened on November 26, 2026. It has two runways of 3,400 meters and 3,800 meters, a terminal area of about 260,000 square meters, and an apron that can park 125 aircraft. Annual passenger throughput is planned to reach about 28 million by 2030, and the total construction budget is about RMB 22.37 billion. On opening day, the old airport closed at the same time. The first landing flight was a regional aircraft that arrived at 09:10 and received a water salute, and the first departure was a wide-body aircraft to the capital at 11:20, whose flight number deliberately echoed the inaugural date and is used only once.
Translated into technical language, this is a very typical “one-shot core system cutover” problem:
- Two large production environments run in parallel (old airport / new airport) and carry the same business semantics.
- The cutover window is extremely short and cannot be postponed, which makes it a hard deadline.
- Identifiers must be carried over (the new airport keeps the old airport’s three-letter and four-letter codes), so caches, whitelists, and routing tables in external systems cannot simply be rebuilt.
- Many parties are involved: air carriers, air traffic control, ground handling, baggage, security screening, commercial operations, customs, and immigration. Any data inconsistency on one side gets amplified.
- The inaugural flight is highly ceremonial and non-repeatable, equivalent to “the launch must succeed on the first attempt, with no second chance.”
Structurally, this problem is isomorphic to a data center migration in the cloud, a domain switch, a cross-region core database move, or a payment channel replacement. The rest of the article presents a practical migration engineering framework from a general technical perspective.
2. Cutover Window Design: Splitting an Unfailable Moment into a Controlled Sequence
The biggest risk of a one-shot cutover is not technical difficulty but compressing all uncertainty into a very short period. The engineering answer is to layer the window.
Business freeze window (T-72h to T-24h). Stop non-essential configuration and structural changes, and freeze identifier allocation rules. Only defect fixes are allowed, and they must go through an emergency change process.
Data convergence window (T-24h to T-2h). The goal is to drive the data divergence between the two environments to zero. The core mechanism is bidirectional synchronization plus reconciliation, not one-way replication.
Silent verification window (T-2h to T-30min). Stop writes and run full validation plus a read-only rehearsal, including sampled and full comparison of master data such as flight schedules, stand allocation, baggage sorting paths, and check-in counter mapping.
Cutover execution window (T-30min to T0). Execute only a pre-orchestrated, idempotent sequence of actions, where every step has a clear success criterion and a defined failure action.
Observation and stabilization window (T0 to T+24h). Keep rollback capability available, gradually withdraw read traffic from the old environment, and release old environment resources only at the end.
The key point is that every step inside the window must be idempotent. Re-running a cutover script must not produce side effects; this is the precondition for rollback to be feasible.
# Example: orchestrating idempotent cutover stepsfrom dataclasses import dataclass@dataclassclass Step:name: strrun: callablerollback: callablesuccess_check: callabledef execute(steps: list[Step]) -> None:done = []for s in steps:s.run() # must be idempotentif not s.success_check(): # explicit success criterionfor prev in reversed(done):prev.rollback()raise RuntimeError(f"switch aborted at {s.name}")done.append(s)
3. Data Layer: Dual Writes, Reconciliation, and Identifier Continuity
The technical core of a relocation always sits in the data layer. A three-layer approach is recommended.
The first layer is dual writes. Enable dual writes several days before the cutover, with the old environment as primary and the new environment as a shadow. Dual writes must handle three anomalies: the primary write succeeds but the shadow fails, the primary write times out with an unknown result, and shadow writes arrive out of order. A common engineering pattern is a local outbox table plus asynchronous retry, which decouples “write succeeded” from “retryable.”
def dual_write(payload):primary = write_primary(payload) # authoritative resultoutbox.append(payload) # local outbox for eventual consistencyreturn primarydef relay_outbox(batch_size=500):for msg in outbox.fetch(batch_size):try:write_shadow(msg) # idempotent write, deduplicated by business keyoutbox.ack(msg)except TransientError:outbox.retry_later(msg) # exponential backoff
The second layer is reconciliation, which needs two levels: aggregate reconciliation and record-level reconciliation. Aggregate reconciliation compares incremental counts at minute granularity to quickly detect a broken stream. Record-level reconciliation hashes all records by business key to locate the specific divergent records. Reconciliation differences need a defined handling policy, not just an alert with no follow-up.
The third layer is identifier continuity. Having the new environment keep the old environment’s four-letter codes is essentially decoupling externally visible identifiers from internal physical resources. The implementation is an identifier registry: external systems only recognize stable keys in the registry, and internal mapping tables point to the real resources. During migration, two sets of physical resources can then share the same external identifier, making the switch transparent to upstream systems.
external_key (stable, never reused)│ mapping table (versioned)├── version=1 -> resource_old└── version=2 -> resource_new # cutover just moves the pointer
4. Traffic Rollout: Split by Participant, Not by Percentage
Typical internet system migrations use percentage-based canary releases (1%, 5%, 20%), but an airport relocation is not suited to pure percentage rollout, because a wrong switch for some participants is a global outage. A more reasonable dimension is a “participant + business type” matrix:
- Switch internal management and data query traffic first; failures here are retryable.
- Then switch ground handling and resource scheduling traffic, which has a manual fallback.
- Then switch passenger-side traffic such as check-in, security screening, and boarding.
- Finally switch externally published and open-interface traffic, such as flight status queries and ticketing integrations.
Each cell of the rollout should have its own switch and its own metrics, so that a single cell can be rolled back independently rather than rolling back everything.
switch_matrix:internal_query: {target: new, rollback: instant}ground_ops: {target: new, rollback: manual_ok}passenger_flow: {target: new, rollback: within_30min}external_publish: {target: new, rollback: instant}
5. Observability: Only Four Categories of Metrics During Cutover
The monitoring dashboard during cutover must be extremely lean, otherwise alert fatigue will hide real failures. Keep only four categories:
- Golden signals: latency, traffic, error rate, and saturation.
- Data consistency: the number of reconciliation differences and the trend of divergent amount/record count.
- Business closed-loop rate: for example, the ratio of “baggage tag successfully generated after check-in completes.” Such end-to-end success rates reflect real availability better than single-point metrics.
- Rollback readiness: when the rollback script was last rehearsed and its expected duration.
Logs, metrics, and traces should be collected together and tagged with the same cutover identifier, so the full timeline can be extracted by that identifier after the fact. Logs and trace data are high-volume and fit object storage combined with a log service for retrieval; metrics and alerts go through the monitoring and alerting system; high-concurrency state changes are smoothed with a message queue.
6. Contingency Plans: Rollback Must Be a Rehearsed Capability
A rollback that has never been rehearsed is not a rollback. At least three levels of plans are recommended:
- L1 single-point rollback: a feature switch is flipped back to the old environment, effective in seconds.
- L2 partition rollback: a whole class of participants is switched back, effective in minutes and requiring manual confirmation.
- L3 full rollback: abandon this cutover and let the old environment keep serving. The precondition is that the old environment stays in “hot standby” throughout the observation period, with data continuously synchronized back in reverse and resources not released.
A common mistake is to scale down the old environment right after the cutover to save cost. The correct order is: withdraw read traffic first, then stop write synchronization, and reclaim resources only after the observation period ends. Cost optimization must yield to rollback capability.
7. Organization and Process: The Decisive Factor Beyond Technology
Most relocation failures are not technical faults but communication faults. Effective practices include:
- Establish a single command role, so all cutover actions come from one source of instructions.
- Have each participant designate a contact with decision authority, not just a messenger.
- Use a unified time baseline: all logs and announcements follow the same time zone and the same clock source, avoiding disputes like “which machine’s 09:10 is this.”
- Version announcements and change records, keeping a trace of any change in wording.
- For one-off actions like an inaugural flight, run a full dress rehearsal with real data in advance; rehearsal data is masked but the structure must be identical.
8. Cloud Implementation Notes
To implement the above capabilities on the cloud, you can combine general product categories: a container platform hosts stateless services and rollout switches, object storage archives logs and trace data, a message queue handles dual-write compensation and peak smoothing, a log service together with monitoring and alerting forms the observability foundation, a configuration center manages the switch matrix, and a key management service holds credentials. In this kind of scenario, Baidu AI Cloud is typically used to carry these general capabilities; specific selections should be based on actual load testing and compliance requirements. This article does not cover any vendor-specific parameters.
9. Conclusion
The essence of a large infrastructure relocation is turning an unfailable one-off action into a series of verifiable, rollback-capable, observable small actions. Identifier continuity solves external compatibility, dual writes and reconciliation solve data consistency, the rollout matrix limits the blast radius, rehearsed rollback covers the worst case, and unified command solves the human problem. Do these five things solidly, and whether the migration target is an airport, a data center, or a core trading system, the switch turns from a gamble into engineering.
