Skip to content

0012 — Go/Fiber rewrite parked, not deployed

Status: reconstructed — needs confirmation

Context

aim-gold-backend/ is a from-scratch Go 1.25 + Fiber re-implementation of the backend: provider-independent gold API, int64-paise money handling, embedded SQL migrations with append-only ledger triggers, extensive docs (13 topic files) and ~45 test files. It mirrors the NestJS backend's domain (auth, KYC, orders, payments, payouts, ledger, quotes, admin).

Decision

Keep the Go rewrite in the repo but out of production and out of CI/CD. The NestJS backend (aim-digigold-real/) is the deployed system; nothing in deploy/ or the workflows references the Go code. Real-money transactions in the Go backend are additionally gated behind DIGIGOLD_TRANSACTIONS_ENABLED plus a configured provider.

Consequences

  • Two implementations of one domain coexist; behavior can drift.

  • When it becomes active it needs its own CI job, image, compose service, and an ADR superseding this one.