azureservicebus

Test Azure Service Bus locally without any subscription or login

不问归期 提交于 2019-11-28 22:09:21
问题 Is there a way to play with and discover Azure Service Bus on the local emulator without registering to the real Azure Services? I was following a tutorial on the use of the Azure Service Bus but at a certain point a Namespace and an Issuer Name and Key is required. I don't have that data since I'm not registered to Azure Services and I don't want to do it now ( I will get my trial when I will feel ready to develop/test something real ). 回答1: Unfortunately there is not an emulated Azure

understanding check pointing in eventhub

风格不统一 提交于 2019-11-28 20:44:47
I want to ensure that, if my eventhub client crashes (currently a console application), it only picks up events it has not yet taken from the eventhub. One way to achieve this, is to exploit offsets. However, this (to my understanding) requires the client to store the latest offset (besides events do not necessarily seem to hit the foreach loop of the ProcessEventsAsync method ordered by SequenceNumber). An alternative, is to use checkpoints. I think they are persisted via the server (eventhub) using the provided storage account credentials. Is this correct? This is some preliminary code I am

Is there any way to create a azure service bus namespace from within .Net?

左心房为你撑大大i 提交于 2019-11-28 14:38:52
We are using .Net framework 4.6.x and looking for a way to create an azure service bus namespace from the azure.management sdk. We are having trouble implementing programmatically within .Net with C#, Any reference or direct documentation would be helpful. The documentation on msdn seems to utilize the old REST api, we need to upgrade away from this now since windows has done the same. Any direction or references that do not create the service bus in the physical portal or use the REST api. We could use the Azure fluent SDK Microsoft.Azure.Management.Fluent and Microsoft.Azure.Management

Send a message with a new library (Microsoft.Azure.ServiceBus) that is read by an old library (Microsoft.ServiceBus.Messaging) with BodyType - String

99封情书 提交于 2019-11-28 14:17:26
I have a client written for some time ago that uses the old library and does call GetBody<string>() to read the body when receiving messages. Now I have the new client Microsoft.Azure.ServiceBus (sends messages) that as far as I understand always uses Stream . So the old client just crashes as it expects string body type. I have found a lot of information on the opposite scenario (new reader, old writer), but cannot figure out how to make the new client send the data in required format. Related links: A stackoverflow answer Interop extension to do the opposite (read an old message in the new

Not able to use REST API for Service Bus for Windows Server 1.1 (OnPremises)

﹥>﹥吖頭↗ 提交于 2019-11-28 14:12:27
I am using the Window Server Service Bus 1.1. I am able to generate the OAuth token from the Window Server Service Bus using the following base address string baseAddressHttp = "https://" + ServerName + ":9355/" + Namespace + "/$STS/OAuth/"; For Window Azure Service Bus for sending a message to queue i can POST a request on the following queue address string serviceNamespace = "ServiceBusDefaultNamespace"; string queueName = "SampleQueuName"; string message ="This is my first message"; string queueAddress = "https://" + serviceNamespace + ".servicebus.windows.net/"+ queueName + "/messages";

Reading Azure Service Bus Queue

心不动则不痛 提交于 2019-11-28 11:08:45
问题 I'm simply trying to work out how best to retrieve messages as quickly as possible from an Azure Service Bus Queue. I was shocked that there wasn't some way to properly subscribe to the queue for notifications and that I'm going to have to poll. (unless I'm wrong in which case the documentation is terrible). I got long polling working, but checking a single message every 60 seconds looks like it'll cost around £900 per month (again, unless I've misunderstood that). And if I add a redundant

Determining how many messages are on the Azure Service Bus Queue

守給你的承諾、 提交于 2019-11-28 08:58:56
I know there is a way to determine the number of messages (or approximate number) in the Azure Queue (Store Account); however is there a way to query for the number of pending messages on an Azure Service Bus queue? var nsmgr = Microsoft.ServiceBus.NamespaceManager.CreateFromConnectionString(connectionString); long count = nsmgr.GetQueue(queueName).MessageCount; Katsifaris It is called MessagesCountDetails.ActiveMessageCount. It returns the number of the Active Messages in the Queue. You probably have some Dead letter messages: var msg = Microsoft.ServiceBus.NamespaceManager

How to accomplish FIFO with Azure service bus topics

为君一笑 提交于 2019-11-28 08:03:13
问题 Have been looking for a Message bus with publish/subscribe functionality. Found that AWS SQS does not support FIFO, so had to give up on it. Working with Azure Service bus, found that queues do support FIFO, but it seems like Topics do not support FIFO. And topics are what we need, with their pub-to-many-sub model :( Is it just a setting I am missing? I tried sending 100 messages from my C# client, and the subscribers got the messages in the wrong order. Any tips would be appreciated. Thanks!

Azure service bus - Read messages sent by .NET Core 2 with BrokeredMessage.GetBody

谁说胖子不能爱 提交于 2019-11-28 02:11:58
问题 I am using .NET Core 2 for an application which needs to put a message on the Service bus and read by a legacy .NET 4.6 receiver. The receiver listens to messages from other legacy applications as well. Legacy sender: UserData obj = new UserData() { id = 1, name = "Alisha" }; BrokeredMessage message = new BrokeredMessage(consentInstated); _client.Send(message); Legacy Receiver: var dataObj = objBrokeredMessage.GetBody<UserData>(); businessFunc(dataObj.id, dataObj.name); .NET Core 2 sender: as

Determining how many messages are on the Azure Service Bus Queue

你离开我真会死。 提交于 2019-11-27 19:19:51
问题 I know there is a way to determine the number of messages (or approximate number) in the Azure Queue (Store Account); however is there a way to query for the number of pending messages on an Azure Service Bus queue? 回答1: var nsmgr = Microsoft.ServiceBus.NamespaceManager.CreateFromConnectionString(connectionString); long count = nsmgr.GetQueue(queueName).MessageCount; 回答2: It is called MessagesCountDetails.ActiveMessageCount. It returns the number of the Active Messages in the Queue. You