Service-Oriented Architecture
Services
API Gateway
The controlled application gateway. Authentication, authorisation, request validation, rate limiting, audit and orchestration.
Identity Service
Authentication, sessions, profile identity and verification state.
User Service
User profile, preferences, emergency contacts and relationships.
Journey Service
Existing journey creation, recurrence, route geometry and availability. This service is the supply side and is owned by the driver.
Request Service
Passenger ride requests. Expresses demand only — it never creates a journey.
Matching Service
Geospatial candidate generation, compatibility calculation and ranking. Exposes explainable match factors.
It answers only "are these compatible?". It has no authority to decide whether a journey may proceed.
Compliance Service
Policy evaluation, risk signals, decisions and events. It answers only "is this permitted?". It has no authority to rank candidates.
Running these two as separate services is the structural expression of the product's core constraint. An RTA-approved operating model that differs from the initial assumptions changes the compliance service without touching matching.
Booking Service
Booking lifecycle and state transitions, and the link between an accepted match and a confirmed shared journey.
Safety Service
Incidents, blocks, emergency workflow and moderation.
Notification Service
Push, email and in-app notifications.
Content Service
Strapi-managed content, FAQs, legal text and CMS pages. Plus reference data and policy authoring — not policy decisions.
Admin Service
Operational dashboards, audit review and policy version activation.
Principle
Start as a modular monolith where practical; split services when scale, reliability or ownership boundaries justify it.
The boundary that matters is the contract between services, not the process boundary. Matching and compliance must remain separately addressable even while they share a process.
Invariants
- No service silently becomes the source of truth for another's responsibilities.
- Strapi is not the live transaction source of truth for journeys, requests, matches, bookings, locations or compliance decisions.
- Compliance runs before ranking and before any match is offered.
- If a compliance dependency is unavailable, the answer is
PENDING/REVIEW, neverALLOW.
