Skip to content

fix: Make DSX Exchange MQTT client identifiers unique per process#1720

Merged
ajf merged 2 commits into
NVIDIA:mainfrom
kfelternv:kfelter/carbide-mqtt-unique-client-id
May 18, 2026
Merged

fix: Make DSX Exchange MQTT client identifiers unique per process#1720
ajf merged 2 commits into
NVIDIA:mainfrom
kfelternv:kfelter/carbide-mqtt-unique-client-id

Conversation

@kfelternv
Copy link
Copy Markdown
Contributor

@kfelternv kfelternv commented May 15, 2026

During my tests of the mqtt integration, the producer and consumer services both used the same client id, this caused them to compete for the client and only one of them was able to connect. This also prevents collisions when running multiple instances of these mqtt clients that connect to a single event bus.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 15, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@kfelternv kfelternv marked this pull request as ready for review May 15, 2026 18:40
@kfelternv kfelternv requested a review from a team as a code owner May 15, 2026 18:40
Comment thread crates/api/src/setup.rs
// (or a new pod coming up while the old one is still terminating)
// do not race for the same MQTT session and ping-pong each other
// off the broker.
let client_id = mqttea::unique_client_id("carbide-dsx-exchange-event-bus");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth changing to Nico now. it was already carbide so just a nitpick.

@ajf ajf merged commit 90293d0 into NVIDIA:main May 18, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants