The broker is the messaging system that the Formance stack uses to communicate between its modules. The Formance stack supports both NATS and Kafka as brokers.The broker sends messages between the different modules of the Formance stack. The producers are Ledger, Gateway, and Payments. The consumers are Benthos, Orchestration and Webhooks. Benthos is used to transform messages so that they can be ingested by the ElasticSearch / OpenSearch cluster to power the Search module.
This stream is created following the format: {stackName}-{module}
Version 2.6 or higher with Jetstream is required.The recommended way to spin up a NATS deployment is through the official NATS helm chart.
Depending on your setup, you may need to activate Jetsream mode on your NATS deployment manually. Jetstream is required for the resources deployed by the Formance Operator to function properly.
In this example, you’ll set up a configuration for the Broker of the formance-dev stack. This configuration will apply to all the modules of this stack.
In this example, you’ll set up a configuration for the Broker of the formance-dev stack. This configuration will apply to all the modules of this stack.