Skip to content

What the framework is

The FlowCatalyst application framework is for the services you build next to the platform: the business applications that publish events, receive dispatch jobs and scheduled-job firings, and serve their own users. It does not replace the platform and does not contain any of its domains (events, subscriptions, dispatch, identity). It gives a service the plumbing every such service otherwise rewrites, with one set of rules for how that plumbing behaves.

Two implementations of one set of contracts

Section titled “Two implementations of one set of contracts”
Implementation Role Language and build
Java The reference. Behaviour is settled here first. Java 25, Maven modules framework-*, a framework-bom
Go Interchangeable with Java: the same outbox rows, ids, config semantics and framework tables, so a Go service can take over a Java service’s database. The default for new applications (owner decision, 2026-11-06); Java stays maintained, with parallel names. Go 1.27, module github.com/flowcatalyst/framework/go
Rust, TypeScript Parked. Rust has partial code and TypeScript has a design; neither is released and neither is documented here.

Both implement the same written specifications. Each specification is language-neutral and was written before the code. The two implementations are kept honest by the conformance vectors: input and expected-output files that the Java tests write and the Go tests compare. When they disagree, Go is wrong, or the vector exposes a Java bug, which is fixed in Java first.

Every capability page in this section is one page with synced Java and Go tabs. The choice carries over between pages, and between this section and the platform SDK pages.

In Go, the standard library is most of the framework

Section titled “In Go, the standard library is most of the framework”

The Go implementation is thin on purpose. Go’s standard library already has an HTTP server and client, structured logging, JSON, cryptography, cancellation and a test runner, and they are good. The framework uses them directly. It does not put a web framework, a dependency-injection container or its own abstractions in front of them, so most of the code in a service is ordinary Go that any Go developer can already read.

You write against Which is What the framework did not add
HTTP handlers net/http. The server is http.Server. A raw handler is func(w http.ResponseWriter, r *http.Request) error, the standard signature with an error return; a typed operation is a plain function over context.Context on top of it A web framework or a third-party router. Routing is a small path trie inside the framework
Outbound HTTP net/http A client library
Logging log/slog A logging library
JSON encoding/json/v2 A serialisation library
Sessions, token verification, DPoP proofs crypto/rsa, crypto/ecdsa, crypto/hmac, crypto/sha256, crypto/hkdf, crypto/aes A JOSE or OIDC library
Metrics The Prometheus text format, written by the framework A metrics client library
Deadlines and cancellation context
Migrations and static assets embed and io/fs
Tests testing, against a real PostgreSQL A test framework or a mocking library

What is left over is a short list of drivers, each confined to the package that needs it. At go/v0.4.4 the core module has eleven direct requirements:

  • pgx, the PostgreSQL driver. This is the one every service uses.
  • go-redis, only in the Redis drivers (redisfw, authredis, redislock, redisrl, and push’s Redis log).
  • The AWS SDK, only in the S3 object store (s3store).
  • A YAML parser for configuration and go-jet for checked SQL.
  • Build and test tooling: an embedded PostgreSQL for tests, lib/pq for the SQL generator and golang.org/x/tools for the framework’s static checks.

A service links only the packages it imports, so one that uses PostgreSQL for everything never compiles the Redis or S3 code into its binary. The optional server-rendered UI is a separate module (go/ui), which adds templ.

So what does the framework add? The parts the standard library has no opinion on: the start-up lifecycle and module wiring, typed configuration, the use-case write path and the outbox, tenancy in Context, typed operations that emit OpenAPI, sessions and login against the platform, locks, partitioned tables and push. The standard library supplies the mechanisms. The framework supplies the rules, and the conformance vectors hold those rules equal to the Java implementation’s.

This has three practical effects:

  • There is little to learn. A handler, a logger call and a test look like the ones in any Go program. The framework-specific surface is the write path and the wiring.
  • There is little to audit and upgrade. Fewer dependencies means a smaller supply chain, and Go’s compatibility promise covers most of what a service stands on.
  • Nothing is locked away. Handlers work with net/http/httptest and with any middleware written for net/http.
Area What you get Pages
Foundation Modules and a start-up lifecycle, typed configuration, secrets, a request-independent Context (client, principal, correlation id), health checks, background loops, metrics Core
Data PostgreSQL with migrations, Redis, leader and service locks with fencing tokens, object stores, partitioned tables, per-client settings, money and units of measure Database and Redis, Locks, Partitioned tables
Write path One business operation is one use case: validate, authorise, execute, then state, events and audit rows are applied in one transaction, with the events going to the transactional outbox. Checked SQL keeps queries in .sql files and verified at build time Write path, Checked SQL
Web An HTTP server, typed operations that produce an OpenAPI document, sessions and login against the platform, an admin shell, rate limiting, an HTTP client, push to browsers and devices Web
Platform integration The application’s own service account, sync of its definitions (event types, roles, subscriptions, scheduled jobs) and receivers for dispatch jobs and firings FlowCatalyst module
UI A shared Nuxt UI package as the primary front end, with optional server-rendered pages (JTE on Java, templ on Go) UI

The platform’s own /ui console is built on the framework’s go/ui module (the platform requires github.com/flowcatalyst/framework/go/ui v0.6.0).

The platform side of these ideas is explained in The transactional outbox, The write path and Dispatch jobs. The framework is the application-side implementation of them.

  • The domains. Events, subscriptions, dispatch, scheduling and identity belong to the platform. The framework talks to them through the platform SDK.
  • Delivering the outbox. The framework writes outbox rows; the platform’s outbox processor delivers them. Without a platform, rows accumulate. The outbox health check goes down when the oldest undelivered row is older than the configured stale limit.
  • Other databases. PostgreSQL only, though several named database instances may be configured. Use cases, the outbox and migrations are limited to the default instance.
  • Hot reload and external config stores. Configuration is read once at start-up.
  • Per-service settings in a registry. Service and connection settings are configuration; things that have many instances (lock stores, secret stores, HTTP clients, rate limiters) and their policies are code. See Configuration.
  1. Read Framework status to see what is released and what is still open.
  2. Follow Getting started to depend on the framework.
  3. Build the orders tutorial, or read the capability pages in the order of the sidebar.

This site holds the merged reader pages. The framework repository keeps its own Markdown guide and the normative contracts; this section is the one to read if you only want to use the framework.