azureservicebus

Scale Azure Service Bus through Powershell or API

喜你入骨 提交于 2020-01-06 02:55:06
问题 I want to create a new Serviec Bus on Azure and then scale it up by using automation script. Right now I can create the service bus successfully by powershell cmdlet New-AzureSBNamespace -Name $Namespace -Location $Location -CreateACSNamespace $CreateACSNamespace -NamespaceType Messaging But I can't find any cmdlet or azure management API to scale its capacity. After installing WindowsAzure.ServiceBus via nuget I found this class new Microsoft.ServiceBus.Management.MessagingSKUPlan(){SKU=2,

List all Azure servicebus subscriptions in a ServiceBus namespace

孤人 提交于 2020-01-04 09:03:59
问题 I am migrating my project from the WindowsAzure.ServiceBus to the new Microsoft.Azure.Servicebus NuGet package. The problem is that I cannot find a way to list all my current topics/subscriptions in my servicebus namespace. This is the piece of code I used before with the old NuGet package: var namespaceManager = NamespaceManager.CreateFromConnectionString("ServiceBusConnectionString"); foreach (var topic in await namespaceManager.GetTopicsAsync()) { foreach (var subscription in await

Can Azure Service Bus client connect to ActiveMQ AMQP queues?

折月煮酒 提交于 2020-01-04 07:53:31
问题 Can Microsoft Azure Service Bus 3.1.7 API be used to connect to ActiveMQ AMQP queues, or only to Service Bus AMQP queues? 回答1: No. It works only for the SB. AMQP .NET lite is the solution to work with SB or any other brokers. 来源: https://stackoverflow.com/questions/37001918/can-azure-service-bus-client-connect-to-activemq-amqp-queues

Can Azure Service Bus client connect to ActiveMQ AMQP queues?

风格不统一 提交于 2020-01-04 07:53:06
问题 Can Microsoft Azure Service Bus 3.1.7 API be used to connect to ActiveMQ AMQP queues, or only to Service Bus AMQP queues? 回答1: No. It works only for the SB. AMQP .NET lite is the solution to work with SB or any other brokers. 来源: https://stackoverflow.com/questions/37001918/can-azure-service-bus-client-connect-to-activemq-amqp-queues

Azure Service Bus topics partitioning

こ雲淡風輕ζ 提交于 2020-01-04 05:49:27
问题 I'm trying to send a message to a topic which was created with both Enable duplicate detection and Enable partitioning options checked. I do not set SessionId and PartitionKey properties on my BrokeredMessage instance. According to this: If the queue or topic has the QueueDescription.RequiresDuplicateDetection property set to true and the BrokeredMessage.SessionId or BrokeredMessage.PartitionKey properties are not set, then the BrokeredMessage.MessageId property serves as the partition key.

Azure Service Bus - avoid processing messages from same device in parallel

偶尔善良 提交于 2020-01-03 18:54:13
问题 A number of devices are sending messages which end up in a single Azure Service Bus queue (or topic). We want to process multiple messages in parallel, but we want to avoid concurrent processing of two messages of the same device at any given time. The following pictures illustrates the goal. There are 3 processing threads (in reality there might be several dozens, distributed between several servers). Each box denotes processing time of a single message, and the color shows which device it

Azure Service Bus can't receive JSON body

烈酒焚心 提交于 2020-01-03 05:05:13
问题 When debugging this code, the application stops. No error message or exception are shown. Project X: client.OnMessage((message) => { using (var stream = message.GetBody<Stream>()) using (var streamReader = new StreamReader(stream, Encoding.UTF8)) { var body = streamReader.ReadToEnd(); } } Below I'm POSTing JSON objects through a REST API. Project Y: public void CreateMessage<T>(T messageToSend, string queueAddress, WebClient webclient) { var apiVersion = "&api-version=2014-01"; var

Azure Service Bus Topics Multiple subscribers

南楼画角 提交于 2020-01-02 04:37:06
问题 I am new to Azure Service Bus and would like to know if I can multiple subscribers to a queue or topic? In rabbit MQ I can have multiple subscribers to 1 publisher. What I am trying to do is, I am using CQRS and when certain commands come into the system when the event is handled I want to push them into a message queue. I want 2 subscribers to be able to get the messages from that queue, one for me to process internally. another one for process and send externally. 回答1: I am new to Azure

Azure Service Bus “ReceiveAsync”

↘锁芯ラ 提交于 2020-01-01 19:06:28
问题 Is there a way, using the Microsoft.Azure.ServiceBus package, to wait on your current thread to receive a message from a queue? This may more be a problem with my understanding and a desire to use the technology in a way it is not intended to be used, but what I would like to do is combine the send and receive examples from the following Microsoft example so that you can send message(s) off to various queues, and be able to listen in and handle "replies" (just messages that you're listening

Azure Service Bus “ReceiveAsync”

荒凉一梦 提交于 2020-01-01 19:06:05
问题 Is there a way, using the Microsoft.Azure.ServiceBus package, to wait on your current thread to receive a message from a queue? This may more be a problem with my understanding and a desire to use the technology in a way it is not intended to be used, but what I would like to do is combine the send and receive examples from the following Microsoft example so that you can send message(s) off to various queues, and be able to listen in and handle "replies" (just messages that you're listening