Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to programmatically create an Azure ServiceBus Topic

I am trying to create a Topic in Microsoft.Azure.ServiceBus via code. I see there was a NamespaceManager object in Microsoft.ServiceBus, but I can't find anything for the newer Azure namespace. I am using .NET Core.

Has this yet to be implemented? Or did I just not look hard enough?

If this isn't possible, is there a way to create a filter on SubscriptionClient()?

Thank you!

like image 757
Andy Avatar asked Dec 18 '17 18:12

Andy


People also ask

What is the difference between Azure Service Bus queue and Topic?

A queue allows processing of a message by a single consumer. In contrast to queues, topics and subscriptions provide a one-to-many form of communication in a publish and subscribe pattern. It's useful for scaling to large numbers of recipients.

Does Azure Service Bus support batch processing?

Batching store access. To increase the throughput of a queue, topic, or subscription, Service Bus batches multiple messages when it writes to its internal store. When you enable batching on a queue, writing messages into the store, and deleting messages from the store will be batched.

Does Azure Service Bus use AMQP?

The Azure Service Bus cloud service uses the AMQP 1.0 as its primary means of communication.


1 Answers

They changed it all around in .NET Standard. You should be able to do this using the Microsoft.Azure.Management.ServiceBus nuget library. More info found here.

Here is a sample project for CRUD operations on ServiceBus resources.

like image 162
Andy Avatar answered Sep 22 '22 10:09

Andy