Transport
Events travel as CloudEvents 1.0 messages in binary content mode. Binary mode puts the CloudEvents context attributes in transport headers, each prefixed withce-, and the event body in the message value as JSON. A consumer reads routing and identity from the headers without deserializing the payload.
Most producers publish over Kafka: Midaz, Tracer (in Midaz), Lender, Matcher, Consignado, and Reporter, whose events you receive through a Streaming Hub subscription.
Every producer shares the CloudEvents type and versioning conventions. Each producerβs page remains authoritative for exact ids, schemas, destinations, and delivery policy. Tracerβs Kafka producer is the component in Midaz.
The envelope
Every record carries these CloudEvents headers.Event type
The v3 contract uses the source-qualified formstudio.lerian.<source>.<resource>.<event>. The same <source> value appears in ce-source. ce-resourcetype and ce-eventtype carry the dispatch key as separate headers. Check the producer-specific page or manifest before routing.
Topic naming
Kafka producers on the v3 application-stream contract (including Midaz, Tracer, Matcher, Lender, and Consignado) send their public JSON business facts to:lerian.streaming.<ce-source>.commands. The producerβs dead letters use lerian.streaming.<ce-source>.dlq. There is no separate .commands.dlq topic. A producer in multi-tenant mode with STREAMING_TENANT_KAFKA on, such as Matcher, uses the topics of each tenant instead: lerian.streaming.<tenantKey>.<ce-source> and its .dlq. <tenantKey> is the tenant ID in lowercase without dashes. Resource type, event type, and schema version stay in CloudEvents headers, so schema-major changes do not rename the topic.
Examples:
- Midaz ledger, CRM, and Fees public JSON facts:
lerian.streaming.ledger - Tracer facts:
lerian.streaming.tracer - Matcher facts:
lerian.streaming.matcher - Lender facts and commands:
lerian.streaming.lenderandlerian.streaming.lender.commands - Consignado gateway facts:
lerian.streaming.consignado-gw
Source
ce-source identifies the producing service and is part of the wire contract. Current v3 product examples use ledger, tracer, matcher, lender, consignado-gw, or reporter. All except Matcher pin or validate that exact roster value. Matcher derives its wire identity from the configured value. v3 Kafka producers embed the source in the application topic, and all v3 producers embed it in ce-type. Changing it therefore changes consumer routing and identity. Treat it as a breaking change.
Subject and tenant
ce-subject carries the id of the aggregate the event is about (the account, transaction, or credential the fact concerns). ce-tenantid carries the owning tenant. When an event has no tenant, the behavior is producer-specific: Midaz sends the literal default, while other producers document their own behavior. Follow the producer-specific contract.
Schema versioning
Each event declares its own payload schema version ince-schemaversion, independent of other events from the same source. The default is 1.0.0. A minor bump is additive and backward compatible. A major bump introduces a breaking change.
On v3 Kafka application streams, the schema version never changes the topic name. A schema bump also leaves explicit RabbitMQ exchanges and routing keys unchanged. An additive change does not affect a consumer that reads payloads as a tolerant reader and ignores unknown fields.
Delivery guarantees
Delivery is at-least-once. A consumer commits its position only after it finishes handling a record. A crash mid-handling replays the record rather than dropping it, so the same event can arrive more than once. Deduplicate on the(ce-source, ce-id) pair (CloudEvents defines event identity by that combination, and ce-id alone can collide across sources) and keep handlers idempotent.
On the producer side, the delivery policy belongs to each event definition, not to the platform. An outbox-backed policy guarantees durable relay and retry. By itself it does not prove that the business-state write and outbox insert share one database transaction.
Lender and Consignado make that atomic write for their catalog events.
Matcher also publishes operational signals directly with outbox fallback. Check the productβs own event page for both its policy and transaction boundary. Where the product exposes a streaming manifest, read the manifest at startup.
Per-product catalogs
Other Brazil rails also publish events on this contract. Use a railβs event page or runtime manifest only when the rail explicitly exposes its catalog.

