JAVA × GO · ONE BLUEPRINT

Two implementations.
One blueprint.

ffex ships as a Java platform and a Go platform built to the same business blueprint — the same domains, the same invariants, the same acceptance criteria. Both are yours to extend.

01 / DUAL STACK

The right runtime
is a business decision.

Some operators already run a JVM estate and a deep Java bench. Others want small Go binaries and a goroutine-native hot path. The choice changes the runtime — not the business semantics.

JavaPRODUCTION LINE

JVM · ENTERPRISE ESTATE

A Spring-based platform for operators who already run the JVM in production and want strongly typed service boundaries, mature operational tooling and a large hiring pool.

  • Spring Boot services, one deployable per domain
  • JVM concurrency with explicit single-writer ownership on hot paths
  • The broadest driver, client and observability ecosystem
  • Independent build, release and rollback per service
GoPRODUCTION LINE

GO · LEAN FOOTPRINT

A Go platform for teams that want small static binaries, fast starts and goroutine-native concurrency without giving up a single business invariant.

  • Small static binaries per service
  • Goroutines and channels, with context propagated end to end
  • Straightforward horizontal scale-out and fast rollouts
  • Same contracts and acceptance criteria as the Java line

The shared contract blueprint

Both stacks consume one versioned contract source. Every internal interface is defined once, generated for Java and Go, and released as a fixed-version package — so the two lines cannot drift apart quietly.

  • One contract source, generated Java and Go packages
  • Breaking changes become new versions, not surprises
  • The same domain map, ledger invariants and failure semantics
  • External HTTP and WebSocket APIs stay stable across stacks
  • Frontends talk to either stack through the same API surface
  • Design system, web platform and native UI kit behind every screen
DimensionJavaGo
RuntimeJVM · Spring Boot servicesStatic Go binaries
Concurrency modelThreads and async pipelines, explicit single writerGoroutines and channels, explicit single writer
Matching approachIn-memory books, one writer per marketIn-memory books, one writer per market
Team profileExisting Java/JVM team and estateTeam comfortable owning Go services
EcosystemBroad JVM tooling and integrationsStandard library, strong tooling, static builds
FrontendsAdmin Web, trading web, H5 and native appAdmin Web, H5 and native app shell
Frontend platformShared design system and asset pipelineDesign system, web platform and native UI
Programmatic accessSigned REST and WebSocket APIsSigned REST and WebSocket APIs
DeploymentContainers on Kubernetes, per-service pipelinesContainers on Kubernetes, smaller images
ObservabilityOpenTelemetry, structured logs, trace-to-log jumpsSame semantic model and coverage
Best fitEnterprise teams standardising on the JVMLean teams optimising footprint and ramp-up

Talk through the trade-offs

Book a technical call

02 / ARCHITECTURE

Nine building blocks,
shared responsibilities.

Whichever stack you choose, the platform is assembled from the same boundaries of responsibility — and each block has one owner of its data.

EDGE / API

Edge & API layer

HTTP and WebSocket termination, authentication, rate and pre-trade gates, and routing into the domains.

MATCHING

Matching

In-memory order books, one writer per market, price-time priority, persistence behind the fill.

RISK

Risk & liquidation

Margin and position risk, forced liquidation and loss socialization, isolated from the matching hot path.

LEDGER / CUSTODY

Ledger & custody

Decimal-only balances, journaled movements, deposits and withdrawals, hot/cold segregation and reconciliation.

MARKET DATA

Market data

Snapshot-plus-increment streams for public data, with per-subscriber backpressure.

NOTIFICATION

Notification & events

The async backbone and multi-channel delivery: ordered events, retries, delivery receipts.

OBSERVABILITY

Observability

Traces, metrics and structured logs sharing one context, from the edge to the last consumer.

DEPLOYMENT

Release & deployment

Kubernetes workloads, pinned images, ordered migrations and pipeline-gated change.

QUALITY / TEST

Quality & test harness

Deterministic fixtures, fault and network injection, event replay and containerized dependencies — the harness every domain is accepted against.

03 / ENGINEERING PRINCIPLES

One discipline,
both implementations.

What the two stacks share is more than interfaces: it is the set of engineering constraints that make the platform trustworthy.

  1. 01

    One writer per state

    Each order book and each account-asset balance has exactly one logical writer. Correctness follows from event order, not from lock discipline.

  2. 02

    Contracts, not shared tables

    Domains expose versioned contracts and ordered events. No service reaches into another domain's storage.

  3. 03

    Async with resolved semantics

    Idempotency, ordering and explicit UNKNOWN handling make the event backbone safe to rely on, not just fast.

  4. 04

    One acceptance bar for both stacks

    Tests, failure-mode drills and acceptance criteria live in the blueprint. A behaviour that passes in one stack has to pass in the other.

  5. 05

    Failure drills ship with the feature

    Every domain has an exercised failure path — timeouts, partitions, UNKNOWN outcomes — accepted before release rather than discovered in production.

NEXT STEP

Pick the stack later.
Start with the requirements.

We will walk through the trade-offs in the first technical call — runtime, operations, hiring, delivery pace — and let the requirements decide.

Source code is part of delivery for either stack.