Skip to content

Add support for Azure Service Bus emulator #102

@rasmusjp

Description

@rasmusjp

Hi

We're currently using RabbitMQ for local development and are looking into using the Azure Service Bus emulator instead (were using Aspire which recently added support for it), but we're running into some issues with Rebus, one of the known limitations is that it doesn't support management operations which Rebus uses to create queues, topics and subscriptions.

Currently disabling the creation of queues can be done in Rebus by calling .DoNotCreateQueues() which works great, but there doesn't seem to be a way to do the same for topics and subscriptions.

When using the emulator the connection string contains UseDevelopmentEmulator=true so instead of adding a new extension to disable creation of topics and subscriptions, it could be detected that the emulator is used and then automatically disable the creation of queues, topics and subscriptions.

I've made the changes and done some testing and it seems to work as expected, but before creating a PR I wanted to know if it's something you want (and if it's the right approach) and if so I'll create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions