Preview. Stack v4.0 has not been released, and what is documented here can still change before it does. The current release is v3.2.Go to v3.2
Platform

Event Streaming

Stream Formance platform events through a message broker for integrations and audit pipelines.

The Formance Platform can stream all platform events to a message broker, giving you a real-time feed of everything happening across your stack. This enables you to build reactive integrations, power audit pipelines, or feed events into your own data infrastructure.

Overview#

When a broker is configured, every service in the stack publishes events to it. Events are organized into topics in the format:

{stackName}-{module}

In Stack v4.0, Ledger delivers its events through event sinks, which you configure per destination: a broker, a webhook, or an analytical store. See Configure an Event Sink.

Supported brokers#

The platform supports two message brokers:

BrokerRequirements
NATSVersion 2.6+ with Jetstream enabled
KafkaStandard Kafka cluster

Configuration#

The broker is configured at the stack level via the broker.dsn setting.

yaml
apiVersion: formance.com/v1beta1
kind: Settings
metadata:
  name: formance-dev-broker
spec:
  key: broker.dsn
  stacks:
    - "formance-dev"
  value: nats://nats.formance-system.svc:4222?replicas=3

For detailed broker setup instructions, see Message Broker infrastructure.