From c36bcb9ced9dd1614acaaf08fa85df28b84d706a Mon Sep 17 00:00:00 2001 From: Faried Fauzi Date: Wed, 2 Dec 2026 15:15:38 +0100 Subject: [PATCH 1/4] Document the CDC topic prefix setting --- .../integration/change-data-capture/_index.md | 18 ++++++++++++++++++ .../published-cdc-services.md | 2 ++ 2 files changed, 20 insertions(+) diff --git a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md index 0a26cac55e1..70001fbcf08 100644 --- a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md +++ b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md @@ -107,6 +107,24 @@ For more examples by SASL mechanism, see [JAAS configuration for Kafka clients]( For an unauthenticated plaintext connection, leave the credentials empty and remove any custom authentication settings for that connection. +### Topic Prefix {#topic-prefix} + +By default, the Kafka topic names of a CDC service start with `cdc.`. For example, the topic of the `Order` entity can be `cdc.MyApp.Order.1.production`. + +As of Mendix 11.18.0, you can replace this prefix with the following runtime setting. Use this setting only with a Bring Your Own Kafka (BYOK) cluster, and do not set it for Mendix Event Broker. Add it through [custom runtime settings](/refguide/custom-settings/) in your environment. + +| Name | Description | Default Value | +| --- | --- | --- | +| `EventBroker.CdcTopicPrefixOverride` | The prefix that replaces `cdc.` in the topic names of all tracked entities. For example, with the value `acme.orders`, the topic `cdc.MyApp.Order.1.production` becomes `acme.orders.Order.1.production`. | Not set | + +The prefix can contain letters, digits, dots, underscores, and hyphens. + +The complete topic name, including the exposed name, the revision, and the Event Broker space, can have at most 249 characters. It can contain only letters, digits, dots, underscores, and hyphens. If the prefix, the Event Broker space, or a topic name is not valid, the Runtime does not start. + +When you set or change the prefix, the topic names change. The Runtime then creates a snapshot of every tracked entity on the new topics. Update your consumers to read from the new topic names. + +Studio Pro and the AsyncAPI document keep showing the default `cdc.` prefix. + ### Active-Producer Election {#active-producer-election} {{% alert type="info" %}} diff --git a/content/en/docs/refguide/modeling/integration/change-data-capture/published-cdc-services.md b/content/en/docs/refguide/modeling/integration/change-data-capture/published-cdc-services.md index 7512900070a..26448916d06 100644 --- a/content/en/docs/refguide/modeling/integration/change-data-capture/published-cdc-services.md +++ b/content/en/docs/refguide/modeling/integration/change-data-capture/published-cdc-services.md @@ -61,6 +61,8 @@ The **Topic** column is the Kafka topic name for this entity, in the format `cdc The topic name changes when an entity gets a new major [revision](#revisions), because the major revision is part of the name. The topic name also changes when you change the [`EventBroker.Space`](/refguide/change-data-capture/#kafka-connection-settings) setting, because the space is part of the name. When the topic name of an entity changes, CDC creates a snapshot of that entity at startup. For the conditions, see the [Snapshot Settings](/refguide/change-data-capture/#snapshot-settings) section in *Change Data Capture*. +To replace the `cdc.` part of the topic name at runtime, see [Topic Prefix](/refguide/change-data-capture/#topic-prefix). The **Topic** column keeps showing the default name. + ## Attribute and Association Selection {#attributes} Expand an entity row to see each attribute and association with a checkbox. Uncheck an item to exclude it from the event payload. The **Exposed name** column allows you to rename individual attributes in the payload independently of their domain model names. From 76468b3d4e8aa7cbc21135275545ec9e884281d4 Mon Sep 17 00:00:00 2001 From: Faried Fauzi Date: Thu, 3 Dec 2026 11:53:52 +0100 Subject: [PATCH 2/4] Move CDC topic prefix notes to where they apply --- .../modeling/integration/change-data-capture/_index.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md index 70001fbcf08..b9190d4def4 100644 --- a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md +++ b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md @@ -17,7 +17,7 @@ CDC is intended for developers who need to move Mendix domain model data to exte A CDC service document in Studio Pro defines which entities the Mendix Runtime should track. On deployment, each tracked entity gets its own Kafka topic. When an object creation, update, or deletion is committed, the Runtime publishes a CDC event to that entity's topic. -At startup, CDC checks whether a tracked entity has a [new topic](/refguide/published-cdc-services/#topic). If it does, the entity needs a snapshot. A snapshot populates the topic with the entity's current data as read events. For more information, see the [Snapshot Settings](#snapshot-settings) below and the [Revisions](/refguide/published-cdc-services/#revisions) section of *Published CDC Services*. +At startup, CDC checks whether a tracked entity has a [new topic](/refguide/published-cdc-services/#topic). If it does, the entity needs a snapshot. A topic is new, for example, after a breaking change or when you set a [topic prefix](#topic-prefix). A snapshot populates the topic with the entity's current data as read events. For more information, see the [Snapshot Settings](#snapshot-settings) below and the [Revisions](/refguide/published-cdc-services/#revisions) section of *Published CDC Services*. To publish a CDC event, the Runtime creates a [Kafka record](/refguide/kafka-concepts/#record-event-and-message) and submits it to the producer, the Kafka client responsible for sending records to Kafka. The record specifies the [topic for the tracked entity](/refguide/published-cdc-services/#topic) and carries the object ID as the key and the event as the JSON value. @@ -119,11 +119,7 @@ As of Mendix 11.18.0, you can replace this prefix with the following runtime set The prefix can contain letters, digits, dots, underscores, and hyphens. -The complete topic name, including the exposed name, the revision, and the Event Broker space, can have at most 249 characters. It can contain only letters, digits, dots, underscores, and hyphens. If the prefix, the Event Broker space, or a topic name is not valid, the Runtime does not start. - -When you set or change the prefix, the topic names change. The Runtime then creates a snapshot of every tracked entity on the new topics. Update your consumers to read from the new topic names. - -Studio Pro and the AsyncAPI document keep showing the default `cdc.` prefix. +The complete topic name, including the exposed name, the revision, and the Event Broker space, can have at most 249 characters. It can contain only letters, digits, dots, underscores, and hyphens. When a topic name is not valid, the Runtime does not start. ### Active-Producer Election {#active-producer-election} @@ -209,7 +205,7 @@ The `source` block contains the following fields: Because the format is Debezium-compatible, BYOK consumers that already support Debezium (such as Kafka Connect sink connectors for databases or data warehouses) can consume CDC events without any message transformation. -To parse CDC events, use the schema for the tracked entity in its AsyncAPI document, which describes each topic as an [AsyncAPI channel](/refguide/kafka-concepts/#asyncapi-channel). You can download the AsyncAPI document from the CDC service details page in the [Event Broker Manager](https://broker.mendix.com/). +To parse CDC events, use the schema for the tracked entity in its AsyncAPI document, which describes each topic as an [AsyncAPI channel](/refguide/kafka-concepts/#asyncapi-channel). You can download the AsyncAPI document from the CDC service details page in the [Event Broker Manager](https://broker.mendix.com/). The document shows the default topic names, even when you set a [topic prefix](#topic-prefix). For details on setting up a BYOK cluster with the Mendix Event Broker, see [Mendix Event Broker](/appstore/services/event-broker/). From 556193453351f76d0604cbb4db351984c129a7b8 Mon Sep 17 00:00:00 2001 From: Faried Fauzi Date: Thu, 3 Dec 2026 12:04:23 +0100 Subject: [PATCH 3/4] Use a clearer example for the CDC topic prefix --- .../refguide/modeling/integration/change-data-capture/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md index b9190d4def4..4bf652ef307 100644 --- a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md +++ b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md @@ -115,7 +115,7 @@ As of Mendix 11.18.0, you can replace this prefix with the following runtime set | Name | Description | Default Value | | --- | --- | --- | -| `EventBroker.CdcTopicPrefixOverride` | The prefix that replaces `cdc.` in the topic names of all tracked entities. For example, with the value `acme.orders`, the topic `cdc.MyApp.Order.1.production` becomes `acme.orders.Order.1.production`. | Not set | +| `EventBroker.CdcTopicPrefixOverride` | The prefix that replaces `cdc.` in the topic names of all tracked entities. For example, with the value `mycompany.myservice`, the topic `cdc.MyApp.Order.1.production` becomes `mycompany.myservice.Order.1.production`. | Not set | The prefix can contain letters, digits, dots, underscores, and hyphens. From aec83486548b5a7fedbd2baf47029e705f4037ac Mon Sep 17 00:00:00 2001 From: Faried Fauzi Date: Thu, 3 Dec 2026 15:54:49 +0100 Subject: [PATCH 4/4] Align CDC topic prefix wording with the other settings --- .../modeling/integration/change-data-capture/_index.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md index 4bf652ef307..8321cc780b1 100644 --- a/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md +++ b/content/en/docs/refguide/modeling/integration/change-data-capture/_index.md @@ -111,15 +111,13 @@ For an unauthenticated plaintext connection, leave the credentials empty and rem By default, the Kafka topic names of a CDC service start with `cdc.`. For example, the topic of the `Order` entity can be `cdc.MyApp.Order.1.production`. -As of Mendix 11.18.0, you can replace this prefix with the following runtime setting. Use this setting only with a Bring Your Own Kafka (BYOK) cluster, and do not set it for Mendix Event Broker. Add it through [custom runtime settings](/refguide/custom-settings/) in your environment. +You can replace this prefix with the following runtime setting. Use it only with your own Kafka cluster (BYOK), and do not set it for Mendix Event Broker. Add it through [custom runtime settings](/refguide/custom-settings/) in your environment. | Name | Description | Default Value | | --- | --- | --- | -| `EventBroker.CdcTopicPrefixOverride` | The prefix that replaces `cdc.` in the topic names of all tracked entities. For example, with the value `mycompany.myservice`, the topic `cdc.MyApp.Order.1.production` becomes `mycompany.myservice.Order.1.production`. | Not set | +| `EventBroker.CdcTopicPrefixOverride` | The prefix that replaces `cdc.` in the topic names of all tracked entities (introduced in Mendix 11.18.0). For example, with the value `mycompany.myservice`, the topic `cdc.MyApp.Order.1.production` becomes `mycompany.myservice.Order.1.production`. | Not set | -The prefix can contain letters, digits, dots, underscores, and hyphens. - -The complete topic name, including the exposed name, the revision, and the Event Broker space, can have at most 249 characters. It can contain only letters, digits, dots, underscores, and hyphens. When a topic name is not valid, the Runtime does not start. +The prefix and the complete topic name can contain only letters, digits, dots, underscores, and hyphens. The complete topic name, including the exposed name, the revision, and the Event Broker space, can have at most 249 characters. When a topic name is not valid, the Runtime does not start. ### Active-Producer Election {#active-producer-election}