Rail Transit App Outage After Secondary-Ticket Launch: Peak-Load Governance

    A transit ticketing app failed to load and threw errors on the day a secondary-ticket feature went live, prompting questions about missed peak traffic. This article treats that as a hypothesis, not a conclusion: it maps user symptoms to observable failures, explains how new-ticket demand stacks on morning-peak load and retry amplification, and outlines how to timeline incidents, split metrics by journey, and tell capacity, lock, and dependency bottlenecks apart. It then covers capacity planning and mixed-traffic tests, isolating core boarding from campaign load, payment timeout vs. actual failure, idempotency and reconciliation, incident containment, and evidence-based postmortems.

    Start from user reports—do not treat guesses as conclusions

    Reports described a rail-transit boarding app that failed to load, returned errors on actions, and left users unsure about charges. A secondary-ticket feature launched the same day, so people reasonably asked whether the team had under-estimated launch traffic.

    That is a valid investigation path, not a proven cause. The source material does not include request volume, error rates, release records, database load, or payment reconciliation, and it cannot show how many users were affected or for how long.

    First, unpack what “crash” means:

    • Client exit or freeze: local exceptions, memory issues, or incompatibility with the new feature.
    • Pages that will not open, request timeouts: network, gateway, backend processing, or dependencies.
    • Boarding credentials that will not display: identity checks, ticket entitlements, or credential generation.
    • Unclear payment outcome: delayed order state, unprocessed notifications, or a real transaction fault.

    These can appear together; “too much traffic” does not cover all of them. Professional analysis starts by turning user language into observable, testable problems.

    Why a secondary-ticket launch can amplify morning-peak pressure

    1. Extra visits are only part of the load

    A launch draws people to rules, eligibility, purchase, and entitlement checks. Morning boarding demand does not disappear.

    The system must carry mixed load: regular passage plus new purchases. If both share identity services, database pools, or transaction resources, growth at the campaign entry can hurt credential display.

    A home-page tap is rarely one backend call. The page may read account data, campaign config, entitlements, and order state, then fan out downstream. Modest entry volume does not mean backend load is under control.

    2. Latency and retries can form a feedback loop

    When responses slow, users tap again and clients may auto-retry. Extra retries consume capacity, slow legitimate work, and trigger more retries.

    Typical path: normal growth → higher latency → more timeouts and retries → in-flight backlog → resource exhaustion → wider errors.

    Watch in-flight work, not only requests per second. Under stable conditions:

    in-flight requests ≈ arrival rate × average response time.

    If average latency rises sharply, concurrent work grows even if arrivals do not. Adding servers is not always enough; if the bottleneck is lock contention or an external dependency, more ingress capacity can push more load downstream.

    How to tell whether capacity under-estimation was the main cause

    1. Build a shared incident timeline

    Put business events and technical signals on one timeline, covering at least:

    • secondary-ticket go-live time;
    • config and version releases;
    • when volume, errors, and latency changed;
    • database connections, thread pools, and message backlog;
    • rate limits, scale-out, rollback, or entry shutdown;
    • user reports and transaction anomalies.

    If faults follow a config change with little traffic growth, inspect config and business logic first. If resources drain after traffic rises, capacity or isolation deserves more attention.

    Order in time narrows scope; it is not causation. Combine logs, traces, and change records.

    2. Split metrics by business path

    Overall availability can hide the important failure. Purchase failure and missing boarding credentials hurt users differently.

    Watch separately:

    • login and identity;
    • credential fetch and display;
    • secondary-ticket rules and eligibility;
    • order creation;
    • payment result handling;
    • entitlement issuance;
    • order query and refunds.

    For each path: volume, success rate, latency distribution, timeout share, and dependency errors. Tail latency matters: a few very slow calls can hold connections and worker threads.

    3. Use evidence to name the bottleneck

    Capacity problems differ:

    • sustained compute saturation: insufficient processing or hot spots;
    • exhausted DB connections: slow queries, long transactions, or poor connection use;
    • more lock waits: contention on the same inventory or entitlement row;
    • growing message lag: weak consumers or consume failures;
    • dependency timeouts: upstream faults or local timeout policy.

    Only then are scale-out, cache, throttling, or code changes targeted.

    Pre-launch capacity work must match real behavior

    1. Estimate from behavior, not only DAU

    Plan for participants, how concentrated access is, requests per action, read/write mix, repeat queries, and retry amplification in failure.

    Daily active users describe scale, not intensity in a given minute. If go-live overlaps commute peak, short peaks matter more than daily averages.

    Rules browsing, order create, and payment completion cost different resources; one average request cost is not enough.

    2. Load tests must mix traffic

    Stressing only the campaign home page does not prove the system can take launch shock. Cover full flows plus normal boarding.

    Scenarios can include:

    • morning peak plus secondary-ticket traffic;
    • a burst at open;
    • delayed payment notifications;
    • heavy order-status queries;
    • cache miss and origin fetch;
    • instance loss;
    • bounded vs. unbounded retries.

    Find throughput limits and how the system fails past them: clear rejection of some campaign traffic, or dragging down core boarding? The latter means governance is incomplete.

    3. Check whether scale-out can meet the peak

    Autoscaling is not instant. Boot, readiness, connections, and cache warm-up take time.

    For a known open time, pre-provision capacity and confirm databases, messaging, and dependencies can carry load. More edge instances with unchanged downstream only move the bottleneck.

    Isolate “normal boarding” from campaign pressure

    Priority is clear: keep existing boarding working, usually ahead of letting every user finish a campaign purchase immediately.

    1. Isolation must be at the resource layer

    Separate services are not isolation if they share a connection pool, hot tables, or the same call quota.

    Evaluate whether you need:

    • separate request quotas and concurrency caps;
    • separate workers and connections;
    • reserved capacity on critical paths;
    • isolation of campaign queries from core ticket data;
    • per-domain timeouts, circuit breakers, and alerts.

    The goal is not that the campaign never fails; it is that campaign failure does not take passage with it.

    2. Degradation needs explicit business bounds

    Stable copy such as rules can be cached or static. The campaign entry can queue, rate-limit, or close under load.

    Eligibility, paid status, and boarding credentials must not return stale results just to cut load. Safety and money need a clear consistency boundary.

    If credential display has a security-reviewed local-valid window, use it within that window. If not, do not skip checks for cosmetic availability.

    Payment: do not treat timeout as failure

    A client timeout does not mean payment never happened. The server may have accepted the transaction while the result lagged.

    Allowing a new order can double-charge; showing failure can mislead.

    1. Model uncertainty with a state machine

    Orders need clear states: pending payment, processing, paid, closed, refund in progress, refunded.

    “Processing” matters: the result is not confirmed—do not force success or failure. State changes need rules so a late notification cannot overwrite a terminal state wrongly.

    2. Idempotency for duplicate work

    Repeat taps, network retries, and duplicate notifications are expected. Apply idempotency to order create, payment handling, and entitlement grant.

    A repeated business request should return the existing result, not a new transaction. A repeated payment-success notice should not grant tickets twice.

    Idempotency is not “query once.” Use unique constraints, atomic state updates, or other concurrency control so two requests cannot both pass the check.

    3. Reconciliation and compensation

    Client copy is not the source of truth. Cross-check orders, payment results, and entitlements.

    Paid-but-not-granted can be issued under explicit rules. Orders stuck unclear should be queried and verified, not auto-refunded on timeout. Compensation itself must be idempotent, auditable, with alerts and a human path on failure.

    Stopping the bleeding during an incident

    The first goal is not a full root cause; it is to shrink impact and protect core flows.

    Suggested order:

    1. Scope: separate purchase, credential display, and payment; say whether passage is affected.
    2. Stop amplifiers: cap campaign concurrency, limit repeat queries, stop unbounded retries.
    3. Protect core: reserve boarding capacity; pause non-essential background work.
    4. Recent changes: whether to disable the new feature or roll back; do not blindly roll back data-structure changes.
    5. Transaction uncertainty: let users query orders, avoid repeat pay, start reconciliation.
    6. Clear status: which features fail, what users can do, how updates will come—do not promise an unconfirmed recovery time.

    Technical containment and user communication run together. Vague “network error, retry” drives more taps and more load.

    Postmortem: a verifiable improvement loop

    “Someone did not forecast traffic” may be part of the story, but it is too vague to drive change. A useful review answers:

    • What was the forecast based on, and which behaviors were missed?
    • Which paths did load tests cover, and which failure modes were skipped?
    • Why could a non-core feature affect boarding?
    • When did alerts fire relative to user complaints?
    • Did retry and timeout policy amplify the fault?
    • Were uncertain payment states handled correctly?
    • Who owns each fix, how is it verified, and by when?

    Conclusions need evidence. If capacity was low, fix the model and launch bar. If code, config, or a dependency was the main cause, do not blame traffic to match the first guess.

    The secondary-ticket launch is a foreseeable peak and a resilience problem. Mature systems do not promise unbounded capacity; they refuse non-core work when overloaded, keep boarding, protect transaction consistency, and tell users what to do next.