Skip to content

Framework: Java is the reference, Go is interchangeable

Accepted. Refined on 2026-11-06, when the Go framework became the default for new applications while Java stayed the behavioural reference.

2026-10-13 (the Go framework design; the Java-as-reference rule predates it, approx. 2026-10-08 to 2026-10-12).

The application framework exists so that business services built next to the platform share one set of rules for outbox rows, ids, configuration, secrets, receivers and the error envelope. The first implementation was Java. Rust was started as a second implementation and TypeScript was designed, then both were parked. On 2026-10-13 a Go implementation was commissioned.

Two things are at stake. The platform and the framework tables must see the same bytes from any implementation: a Go service has to be able to take over a Java service’s database without a migration. And a second implementation must not simply translate the first one into worse Go: Go has no container, no reflection-based wiring and a weaker compiler for some of the rules Java enforces at start-up.

  • There is one set of written contracts (docs/contracts/). Each is language-neutral and is written before the code.
  • Java is the reference. Behaviour is settled in Java first. Each Java module has a conformance test that writes the expected output; other languages only compare (see Conformance vectors).
  • Go is an interchangeable implementation, written for Go. It shares verbatim what is observable from outside: the outbox migration and row layout, TSID encoding, the error envelope, health JSON, receiver signatures and responses, configuration rules, secret references, the framework tables (fw_schema_history, fw_lock, fw_lock_fence, fw_dispatch_once), Redis keys and scripts, and the use-case envelope.
  • Where Java uses a mechanism the language does not suit, Go uses its own: the standard library net/http router, log/slog, context.Context, functional options, an explicit build function with typed handles instead of a container, and lint and small analysers for rules that Java checks at start-up.
  • Differences are recorded, not hidden. The vector format allows a marked difference with a reason, and the framework status page lists the capabilities that exist in one language only.
  • Rust and TypeScript are parked. Neither is released or documented.
  • Since 2026-11-06 the Go framework is the default for new applications. Java stays maintained with parallel names. This changes which language a new project picks, not which one is the reference for behaviour.

Good:

  • A service can move between languages, or run both, against the same database and platform.
  • A disagreement is found by a failing test, not by a customer.
  • The Go code is idiomatic, which keeps it readable and reviewable.

Bad:

  • Every behaviour change is done twice, and Java first. When Java is behind (push parity today) the reference is not the most complete implementation.
  • Go enforces less at start-up, so some mistakes surface in lint or tests instead.
  • The written contracts can lag the code; the pages in this site were checked against the code.
Alternative Why not
Java only Many teams on the platform write Go; the platform itself is Go.
A line-by-line Go translation Reproduces a container and start-up checks that Go cannot do well.
Share one core through FFI or a sidecar Operational weight, and it hides behaviour from each language’s tools.
Keep Rust and TypeScript alive Too many implementations to hold to the vectors; both parked.