Skip to content

Port Allocation

All Kaya Sync services run on the 5000–5099 range. Each service is allocated a block of 2 ports, one for the main HTTP/gRPC API and one for health checks / metrics.

The docs site runs on 5099 (end of the service range).


Service Port Map

Port+1 (Health/Metrics)Service
50005001Identity & Access Service
50105011Device Governance Service
50205021Vehicle & Capacity Service
50305031Order & Container Service
50405041Scan Ingestion Service
50505051Integrity AI Service
50605061Orchestration Service
50705071Settlement Service
50805081Carbon Ledger Service
50855086Fraud & Collusion Service
50905091Audit / Event Store
50955096Notification Service

Reserved Range

RangePurpose
5000–5098Kaya Sync microservices
5099Docs site (VitePress)

Convention

  • Even base port → main service API
  • Base port + 1 → health check / Prometheus metrics endpoint
  • Gaps between services (e.g. 5000, 5010, 5020) leave room to add auxiliary ports (e.g. admin interface, internal gRPC) without disrupting the allocation

Workflow

When a new service is scaffolded, it is assigned its port from the table above and hardcoded into that service's config or environment file. This ensures no two services ever clash and there is no guesswork about what is running where.

bash
# Example: Identity & Access Service .env
PORT=5000
HEALTH_PORT=5001

Every service must respect its allocated port. Do not use dynamic or random port assignment in any Kaya Sync service.

Kaya Sync Internal Documentation