Loyalty · 11 / 26

Non-Functional Requirements and Capacity

Measurable quality requirements for the loyalty platform: performance, availability, security, privacy, sale-peak capacity, degradation and recovery.

Why these requirements matter

Functional stories say what the platform does. These requirements say how well, and under what conditions. Each has a number and a way to prove it, so it can be tested before release and watched in production. Figures are illustrative planning targets. Loyalty traffic has sharp peaks: award sales and bonus-mile promotions, month-end partner files and holiday travel.

Requirements by quality

QualityRequirementTargetHow it is verified
PerformanceLogin risk score, p95Under 150 msLoad test and latency alert
PerformanceRule-approved claim, submission to creditUnder 5 minutesSynthetic claims every 15 minutes
PerformanceService copilot answer, p95Under 6 secondsSynthetic questions
AvailabilityRedemption and claims services99.9% monthlySynthetic transactions every minute
AvailabilityDegraded mode when a dependency failsWork queues or steps up, nothing lostChaos tests per dependency
ScalabilityAward sale peak without a latency breachFive times a normal daySoak and spike tests
SecurityAll model and tool traffic scanned100%Scan coverage alert
SecurityWrites authorised by basis and approval100%Basis tests, contract tests
PrivacyRestricted data in logs and tracesNoneAutomated scan of telemetry and tables
CorrectnessPosted miles equal the rule engine result100%Daily reconciliation job
CorrectnessLedger postings without a basisZeroBasis audit query and release gate
CorrectnessSends without a valid consent checkZeroSend audit and release gate
ResilienceRecovery time objective, claims and redemption1 hourQuarterly disaster recovery exercise
ResilienceRecovery point objective, ledger postingsZero loss of committed postingsOutbox replay
ObservabilityA trace for every unit of work, joined across gateways100% of errors and blocks, 10% of othersTelemetry coverage report
MaintainabilityTime to repoint a model alias after a passing evaluationUnder one hourRelease drill
AccessibilityApp and email meet recognised accessibility guidanceLevel AAAudit before launch
CostModel and platform cost per claim and per caseWithin budgetCost query and monthly review

Capacity model

The model starts from monthly volume and works down to calls per second, so each tier can be sized and its limits set on the gateway.

QuantityPilot, one marketFull volumeSale or holiday peak
Flight segments per day25,000500,000650,000
Missing-miles claims per day2004,0008,000
Model calls per claim222
Contact centre cases per day with the copilot1,50030,00060,000
Model calls per copilot case444
Logins and redemptions scored per day400,0008,000,00030,000,000
Partner transactions per month1.2M12Mn/a
Offer messages per month2M20Mn/a
Model calls in the busiest hourAbout 1,500About 25,000About 60,000
Model calls per second, busiest hourAbout 0.4About 7About 17

Fraud and propensity scoring use trained models on serving endpoints, not the language-model gateway, so the language-model call rate stays low even when scoring peaks at tens of millions of events a day. Peak is five times the full-volume figure for sales and holidays.

Degradation ladder

When a dependency fails, the platform gives up one capability at a time and always shows what is pending. A write path never keeps working without its checks.

FailureBehaviourWhat people see
Primary model provider downGateway fails over to the second providerNo visible change, possibly slower
Both providers downClaims queue for agents; rules still credit flown segments automatically; the copilot is offClaims wait longer; agents use rulebook search
Scan service downFail closed on writes; reading continuesNo automatic credit from documents; agents work from the queue
Terms index downCopilot declines rule questions and says soAgents use the rulebook search
Fraud scoring downStrictest step-up for redemptions above a thresholdMore verification prompts, no silent allow
Consent service downNo marketing sends; service messages by rule onlyOffers pause; nothing goes out unchecked
Ledger downPostings queue with evidenceItems show as pending; reconciliation after recovery
Provider failover and the manual queue When the primary provider times out the gateway fails over to the second. If both fail, the gateway returns an error and the platform routes the claim to the agent queue while rule-based earning continues. Claims agent AI gateway Provider A Provider B Agent queue extract boarding pass route primary timeout fail over extraction fields next claim route primary error fall back error unavailable queue the claim for an agent queued with the evidence
Provider failover and the manual queue

The first failure is invisible. The second is visible and honest: the claim waits for a person, and nothing is lost.

Recovery objectives

ComponentRecovery timeRecovery pointApproach
Orchestrator and agents1 hourState to the last completed stepStateless services, state in a replicated store
AI (artificial intelligence) gateway15 minutesConfiguration is in version controlTwo regions, active and standby
Tool gateway15 minutesConfiguration is in version controlTwo regions, active and standby
Ledger postingsPer the ledgerZero for committed postingsOutbox replay after recovery
Terms index4 hoursRebuilt from the source tableRebuild job
Fraud scoring endpoints15 minutesModels are versioned artefactsTwo regions, active and active
Lakehouse8 hoursOne hourPlatform replication

How the requirements are tested

  1. Load and soak

    Replay recorded days and award-sale spikes at one, three and five times normal volume, with backends and models mocked at realistic latency.

  2. Chaos

    Turn off each dependency in turn in staging and check the degradation ladder.

  3. Failover drills

    Fail the model provider, then a region, quarterly. Measure recovery against the objectives.

  4. Reconciliation

    Every day, compare ledger entries with the rule engine's results and the finance journal. A difference is an incident.

  5. Telemetry audit

    Scan traces and tables for restricted data after every release.

Build this for your business

This example is a loyalty platform for an airline, but the same pattern, deterministic financial rules, a governed gateway, runtime security, consent-aware personalisation and measured quality, fits any program that holds a customer balance and makes offers. We can scope a pilot on your own systems.

Book a discovery call