> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow topics per workspace

> Move a self-hosted FlowX.AI installation from one Kafka topic pair per workflow to one pair per workspace.

FlowX.AI 6.1.0 replaces the per-workflow Kafka topics that carry workflow starts and replies with one pair of topics per workspace. This page covers what changes on the Kafka cluster and the steps to upgrade a self-hosted installation from 5.9.x.

## What changes

Before 6.1.0, integration-designer created a start topic and a reply topic for every workflow, named after the workflow's ID:

| Direction | Topic before 6.1.0 |
| - | - |
| Start | `ai.flowx.integration.receive.{workflowId}.in` |
| Reply | `ai.flowx.engine.receive.{workflowId}.out` |

From 6.1.0, every workflow in a workspace shares one pair, named after the workspace's ID:

| Direction | Topic from 6.1.0 | Written by | Read by |
| - | - | - | - |
| Start | `ai.flowx.integration.workflow.workspace.{workspaceId}.in` | process-engine, scheduler-core | integration-designer |
| Reply | `ai.flowx.engine.workflow.workspace.{workspaceId}.out` | integration-designer | process-engine |

The `ai.flowx.` prefix follows your topic naming prefix. Each message carries the workflow's ID in a header, so the services still know which workflow a message belongs to.

Other changes that come with the new topics:

* **Partitions**: each topic now has 3 partitions by default, up from 1. A workspace takes 2 × the partition count, 6 by default.
* **Replication factor**: topics get the broker's `default.replication.factor`, as they already do from 5.9.8.&#x20;
* **Consumer groups**: integration-designer reads start topics with a new consumer group, and process-engine reads reply topics with a new consumer group of its own. The old start-workflows consumer group is no longer used.
* **Configuration**: the per-workflow topic pattern variables are removed and new ones replace them. See [Configuration changes](#configuration-changes).

## When topics are created

When `FLOWX_WORKFLOW_CREATETOPICS` is `true`, integration-designer creates the pair for a workspace:

* on its first start on 6.1.0, for every workspace that has a deployed application
* when a workspace is created

If a creation fails, integration-designer tries that workspace again every 5 minutes.

When `FLOWX_WORKFLOW_CREATETOPICS` is `false` (the default), integration-designer creates nothing. It records the topic names each workspace needs, and you create the topics on the cluster yourself.

> [!WARNING]
>
> A workspace that has no deployed application when integration-designer first starts on 6.1.0 doesn't get topics on upgrade. Before you run workflows in such a workspace, create its pair yourself.

## Before you begin

* Read the [FlowX.AI 6.1.0 release notes](https://docs.flowx.ai/release-notes/v6.x/v6.1.0-november-2026/v6.1.0-november-2026.md) and [deployment guidelines](https://docs.flowx.ai/release-notes/v6.x/v6.1.0-november-2026/deployment-guidelines-v6.1.md).
* Take a backup of PostgreSQL, MongoDB, and the object store right before the upgrade. FlowX.AI doesn't support rolling back an upgrade.
* List your workspaces with their IDs. You need them to create topics and grant access when topic creation is off.
* Plan an upgrade window in which no workflows start. See [Why to stop workflow starts](#why-to-stop-workflow-starts).

## Prepare the Kafka cluster

**1. Grant access on the new topic prefixes**

On a cluster with ACLs, such as a managed Kafka service, grant access on these two prefixes, with your naming prefix in front:

* `integration.workflow.workspace.` (start topics)
* `engine.workflow.workspace.` (reply topics)

| Service | Start topics | Reply topics |
| - | - | - |
| integration-designer | READ, plus CREATE and DESCRIBE | WRITE, plus CREATE and DESCRIBE |
| process-engine | WRITE | READ |
| scheduler-core | WRITE | |

integration-designer needs CREATE and DESCRIBE only when it creates the topics. Also allow READ for the new consumer groups. See [Configuration changes](#configuration-changes) for their names.

**2. Check the partition budget**

Each workspace takes 2 × `FLOWX_WORKFLOW_TOPICPARTITIONS` partitions, 6 by default. Check that your cluster's partition limit covers every workspace.

**3. Create the topics yourself, if topic creation is off**

With `FLOWX_WORKFLOW_CREATETOPICS` set to `false`, create a start topic and a reply topic for each workspace, using the names in [What changes](#what-changes) and the partition count you set in `FLOWX_WORKFLOW_TOPICPARTITIONS`.

You can create them before the upgrade from your list of workspace IDs, or after integration-designer starts, from its health endpoint. See [Check the topics](#check-the-topics).

## Upgrade the services

**1. Stop starting workflows**

Pause anything that starts workflows during the upgrade window: user traffic on processes with workflow actions, and integrations that start processes.

**2. Upgrade integration-designer first**

Upgrade integration-designer and wait until it reports healthy. On its first start it creates or records the workspace topics.

**3. Upgrade process-engine**

Upgrade process-engine. It starts sending workflow starts to the workspace start topics and reading the workspace reply topics.

**4. Resume workflow starts**

Once integration-designer and process-engine run 6.1.0 and the topics are in place, resume traffic.

### Why to stop workflow starts

From 6.1.0, integration-designer reads only the workspace start topics. Any start message left on, or sent to, an old per-workflow start topic is never processed. This happens to starts sent before integration-designer was upgraded and not yet read, and to starts that a not-yet-upgraded process-engine sends.

The new consumer groups also start from the newest messages when they first subscribe, so a start sent to a workspace topic before integration-designer joins it is skipped.

Replies don't need the same care. A reply that an older integration-designer sends on an old reply topic still reaches the upgraded process-engine, so workflows that were already running when you upgraded complete.

## Check the topics

integration-designer's Kafka health check lists the workspace topics in the `workflowTopics` detail, under `in` and `out`. It lists them for every workspace, whether or not integration-designer created them.

When any of those topics doesn't exist on the cluster:

* it appears in the `missingTopics` detail
* the health check reports `DEGRADED`, with a reason such as `2 out of 40 configured topics missing`

It reports `DOWN` instead when any of the service's Kafka consumers isn't running.

## Check processes that name a workflow topic

A process that starts workflows with the [Start integration workflow](https://docs.flowx.ai/6.x/docs/building-blocks/actions/start-integration-workflow.md) action and receives the output through a data stream with **Source** set to **Workflow** follows the new topics without changes.

A process stops working on 6.1.0 if it names a per-workflow topic itself:

* a Kafka send action that sends to an `ai.flowx.integration.receive.{workflowId}.in` topic: nothing reads that topic anymore
* a data stream with **Source** set to **Custom Topic** on an `ai.flowx.engine.receive.{workflowId}.out` topic: nothing writes to that topic anymore

Change those processes to the Start integration workflow action and a data stream with **Source** set to **Workflow**.&#x20;

## Clean up the old topics

After the upgrade, the per-workflow topics are no longer used. Once the old reply topics are empty, delete both kinds:

* `ai.flowx.integration.receive.{workflowId}.in`
* `ai.flowx.engine.receive.{workflowId}.out`

Keep the `ai.flowx.engine.receive.` topics that aren't per-workflow reply topics. process-engine still reads them for other integrations.

## Configuration changes

### integration-designer

| Variable | Change | Default |
| - | - | - |
| `FLOWX_WORKFLOW_TOPICPARTITIONS` | New default | `3` |
| `FLOWX_WORKFLOW_TOPICADMINTIMEOUT` | New | `30s` |
| `FLOWX_WORKFLOW_FAILEDTOPICSRETRYCRON` | New | `0 */5 * * * *` |
| `KAFKA_CONSUMER_GROUPID_WORKFLOWINPUT` | New, replaces `KAFKA_CONSUMER_GROUPID_STARTWORKFLOWS` | `integration-designer-workflow-input-group` |
| `KAFKA_CONSUMER_THREADS_WORKFLOWINPUT` | New, replaces `KAFKA_CONSUMER_THREADS_STARTWORKFLOWS` | `3` |
| `KAFKA_CONSUMER_WORKFLOWINPUT_NEWTOPICDISCOVERYINTERVAL` | New | `30s` |
| `KAFKA_TOPIC_NAMING_WORKFLOWWORKSPACEINPUTPATTERN` | New | `integration.workflow.workspace.` |
| `KAFKA_TOPIC_NAMING_WORKFLOWWORKSPACEOUTPUTPATTERN` | New | `engine.workflow.workspace.` |
| `KAFKA_TOPIC_WORKFLOWINPUTPATTERN` | New | `ai.flowx.integration.workflow.workspace.*` |
| `KAFKA_TOPIC_ENGINEPATTERN` | Removed | |
| `KAFKA_TOPIC_INTEGRATIONPATTERN` | Removed | |
| `KAFKA_TOPIC_NAMING_ENGINERECEIVEPATTERN` | Removed | |
| `KAFKA_TOPIC_NAMING_INTEGRATIONRECEIVEPATTERN` | Removed | |

### process-engine

| Variable | Change | Default |
| - | - | - |
| `KAFKA_CONSUMER_GROUPID_WORKFLOWOUTPUT` | New | `workflow-output` |
| `KAFKA_CONSUMER_THREADS_WORKFLOWOUTPUT` | New | `6` |
| `KAFKA_CONSUMER_WORKFLOWOUTPUT_NEWTOPICDISCOVERYINTERVAL` | New | `30s` |
| `KAFKA_TOPIC_NAMING_WORKFLOWWORKSPACEINPUTPATTERN` | New | `integration.workflow.workspace.` |
| `KAFKA_TOPIC_NAMING_WORKFLOWWORKSPACEOUTPUTPATTERN` | New | `engine.workflow.workspace.` |
| `KAFKA_TOPIC_WORKFLOWOUTPUTPATTERN` | New | `ai.flowx.engine.workflow.workspace.*` |
| `KAFKA_TOPIC_INTEGRATIONPATTERN` | Removed | |
| `KAFKA_TOPIC_NAMING_INTEGRATIONRECEIVEPATTERN` | Removed | |

### application-manager

| Variable | Change | Default |
| - | - | - |
| `KAFKA_TOPIC_NAMING_WORKFLOWWORKSPACEINPUTPATTERN` | New | `integration.workflow.workspace.` |
| `KAFKA_TOPIC_NAMING_INTEGRATIONRECEIVEPATTERN` | Removed | |

If you overrode any removed variable, remove the override, and set the matching new variable if you need the same customization.

For the full setup reference, see [Integration Designer setup](https://docs.flowx.ai/6.x/setup-guides/integration-designer-setup.md#engine-and-integration-communication-topics) and [Process engine setup](https://docs.flowx.ai/6.x/setup-guides/flowx-engine-setup-guide/engine-setup.md).


## Related topics

- [Deployment guidelines v6.1.0](https://docs.flowx.ai/release-notes/v6.x/v6.1.0-november-2026/deployment-guidelines-v6.1.md)
- [Integration Designer setup](https://docs.flowx.ai/6.x/setup-guides/integration-designer-setup.md)
- [FlowX Engine setup](https://docs.flowx.ai/6.x/setup-guides/flowx-engine-setup-guide/engine-setup.md)
- [FlowX.AI 6.1.0 Release Notes](https://docs.flowx.ai/release-notes/v6.x/v6.1.0-november-2026/v6.1.0-november-2026.md)
- [Overview](https://docs.flowx.ai/release-notes/v6.x/v6.1.0-november-2026/migrating-to-v6.1/migration-overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.