Skip to main content

State 009 Fidelity Profile

This profile captures the required technical shape for state 004-postgres-database-replacement.

Runtime Stack Deltas From State 003​

ConcernState 003State 009
Database runtimeH2 service process + H2 web consolePostgreSQL container (postgres:16-alpine)
DB access protocolH2 TCP / PG emulationNative PostgreSQL (5432)
DB init pathH2 RunScriptPostgreSQL init SQL via /docker-entrypoint-initdb.d
Ingress modelNGINXNGINX (unchanged)
Runtime modelDocker ComposeDocker Compose (unchanged)

PostgreSQL Baseline Constraints​

  • PostgreSQL image remains lightweight and local-friendly.
  • State uses deterministic schema and seed data from a committed init script.
  • Account sequence semantics remain compatible (accounts_seq).
  • DB-dependent service startup is gated on PostgreSQL readiness.

Closeness Policy​

State 009 is architecture-close to 003 with one intentional replacement axis: database runtime engine.

Changes expected:

  • replacement of H2 runtime with PostgreSQL container,
  • datasource and driver updates in DB-dependent services,
  • no intentional REST/event contract drift.