Invoicing · 11 / 26

Non-Functional Requirements and Capacity

Measurable quality requirements for the receivables platform: performance, availability, security, privacy, month-end 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. Receivables work is bursty: the nightly invoice run, bank-file arrival and month-end close set the peaks.

Requirements by quality

QualityRequirementTargetHow it is verified
PerformanceNightly invoice run, 60,000 invoices including checksUnder 3 hoursLoad test and run duration alert
PerformanceCash application, bank file to postedUnder 15 minutes for a 5,000-line fileReplay of recorded files
PerformanceInteractive review screen, p95 responseUnder 2 secondsSynthetic checks
AvailabilityCash application and review desk99.9% monthlySynthetic transaction every minute
AvailabilityDegraded mode when a dependency failsWork queues, nothing lostChaos tests per dependency
ScalabilityMonth-end volume without a latency breachThree 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
CorrectnessApplied cash equals the bank amount100% reconciled dailyDaily reconciliation job
CorrectnessApplications without a stated basisZeroBasis audit query and release gate
ResilienceRecovery time objective, applications and review desk1 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
AccessibilityPortal and email meet recognised accessibility guidanceLevel AAAudit before launch
CostModel and platform cost per invoice and per paymentWithin 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 regionFull volumeMonth-end peak
Invoices per month6,00060,000n/a
Invoices in the nightly run3002,8009,000 on the busiest night
Payments per month4,50045,000n/a
Payments on the busiest day6006,00018,000
Remittance documents on the busiest day2502,5007,500
Model calls per remittance222
Model calls per invoice anomaly check111
Model calls in the busiest hourAbout 200About 2,000About 6,000
Model calls per second, busiest hourUnder 1About 0.6About 1.7

Peak is three times the full-volume figure, for month-end and quarter-end. Batch work is spread across the window, so the call rate stays low even at the peak.

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 downItems queue for a person; rules still match exact paymentsExact matches continue; the rest wait with a note
Scan service downFail closed on writes; reading continuesNo automatic application of scored matches; clerks work from the queue
Clause index downDisputes proceed without a cited clause and say soDispute drafts carry a banner: no clause available
ERP (Enterprise Resource Planning) downPostings queue with evidenceItems show as pending; reconciliation runs after recovery
Tax engine downInvoices are held, never estimatedInvoice run delayed for affected orders
Delivery network downFall back to email per customer settingCustomers receive email, portal copy remains
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 item to the manual queue while exact-match rules continue. Cash application AI gateway Provider A Provider B Manual queue extract remittance route primary timeout fail over extraction lines next document route primary error fall back error unavailable queue the document for a clerk queued with the bank line
Provider failover and the manual queue

The first failure is invisible. The second is visible and honest: the document 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 ERPZero for committed postingsOutbox replay after recovery
Clause index4 hoursRebuilt from the source tableRebuild job
Lakehouse8 hoursOne hourPlatform replication

How the requirements are tested

  1. Load and soak

    Replay recorded invoice runs and bank files 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 bank amounts, applications and ledger postings. 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 receivables platform for a distributor, but the same pattern, deterministic financial rules, a governed gateway, runtime security, grounded evidence and measured quality, fits any back-office process that moves money. We can scope a pilot on your own systems.

Book a discovery call