Skip to content

Non-Functional Requirements ​

Performance ​

OperationTarget
Simple API readp95 < 500 ms under normal MVP load
Standard mutationp95 < 800 ms
Matching searchp95 < 2 s for normal candidate volumes
Emergency propagationp95 < 5 s, independent of dependency health

Matching is the slowest path by design: it runs compliance evaluation per candidate. The emergency target is stated separately because it must hold while everything else is degraded.

These are engineering targets and require load testing before they are claimed.

Availability ​

99.5% monthly application availability, excluding planned maintenance.

Availability of the compliance decision path is a higher priority than overall availability. A partial outage that produces unverifiable journeys is worse than a total outage that produces none.

Scalability ​

Scale independently:

  • API
  • matching workers
  • compliance workers
  • notification workers
  • Strapi
  • data workloads

Matching and compliance scale separately because their load profiles differ: matching is read-heavy and spiky around commute windows, compliance is compute-light but must stay synchronous with every publish and booking.

Reliability ​

  • Idempotency-Key on every material mutation
  • Retry with exponential backoff and jitter for transient failures only
  • Circuit breakers on every external dependency
  • Append-only audit and decision records
  • See Failure Handling

Observability ​

  • Structured logs with X-Request-ID propagated end to end
  • Metrics per dependency: latency, error rate, circuit state
  • Traces across API, matching and compliance
  • Error, database and queue monitoring
  • Alerting on fail-safe activation — a spike in REVIEW means something upstream is wrong

Security ​

  • TLS in transit, encryption at rest for sensitive fields
  • Least privilege and RBAC at endpoint level
  • Rate limiting and abuse detection
  • Audit logging on all administrative actions
  • Secret management
  • Dependency scanning

See Security Architecture and Security.

Privacy ​

  • Data minimisation and purpose limitation
  • Retention schedules enforced, not just documented
  • Restricted access to precise location data
  • Generalised commute hubs in place of exact addresses
  • Sensitive identifiers stored as hashes, never plaintext

See Privacy.

Maintainability ​

  • JavaScript/JSX, no TypeScript
  • Modular service boundaries with explicit contracts
  • Append-only numbered migrations
  • Documented API contracts
  • Automated tests on core flows
  • ESLint, Prettier and pre-commit hooks

Accessibility ​

Target WCAG 2.2 AA.

Map-based matching must not be the only way to understand a match. Route compatibility information has to be available as text, because the primary user may be navigating by screen reader.

Mobile ​

Passenger and driver flows are mobile-first responsive. A journey is often coordinated on a phone in a car park, not at a desk.

Backup and recovery ​

  • Automated backups with verified restore testing
  • Defined RPO and RTO, agreed before the pilot
  • Incident runbooks for database loss, provider outage and data breach
  • See Backup & Recovery

KHAWI — same route, go together.