Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServiceBusManagementClient CreateIfNotExists #4334

Closed
deckertron9000 opened this issue May 17, 2018 · 1 comment
Closed

ServiceBusManagementClient CreateIfNotExists #4334

deckertron9000 opened this issue May 17, 2018 · 1 comment
Assignees
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Service Bus

Comments

@deckertron9000
Copy link

In the Microsoft.ServiceBus.Messaging library there used to be a method to create a queue or topic if it did not already exist. In the Microsoft.Azure.Management.ServiceBus library there is only a CreateOrUpdate method.

Does this new CreateOrUpdate overwrite all existing settings of a queue or topic if it already exists? If so, are there any plans to add in the old CreateIfNotExists functionality to the newer library?

@bsiegel bsiegel added the Service Attention Workflow: This issue is responsible by Azure service team. label Sep 26, 2018
@jfggdl jfggdl added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label May 24, 2019
@jfggdl jfggdl added this to the Sprint 153 milestone May 24, 2019
@jfggdl jfggdl assigned dsouzaarun and v-Ajnava and unassigned binzywu May 24, 2019
@axisc axisc removed this from the Sprint 153 milestone May 29, 2019
@axisc
Copy link

axisc commented May 29, 2019

@deckertron9000

querying and then creating a new queue/topic is a management operation which is more expensive than executing send/receives.

As the product has matured we've made more improvements on the data operations, so I would recommend not using a CreateIfNotExists call for improved performance.

I recommend that you create queues/topics at the start of a process, or in an independent process

Then, when you send to a queue/topic.

  • If the queue/topic exists, you will be able to send without any problems.
  • If the queue/topic doesn't exist, then you will receive an error/exception from Service Bus. When handling this exception you can create the entity and try resending.

Hope this helps. I'm closing this issue, please feel free to reopen if you face an issue.

@axisc axisc closed this as completed May 29, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Service Bus
Projects
None yet
Development

No branches or pull requests

8 participants