azureservicebus

Create filtered Service Bus subscription using .NET Core SDKs

偶尔善良 提交于 2020-04-13 03:54:02
问题 I want to use Azure Service Bus from inside an .NET Core 2.1 application. I'm familiar with the SDK coming with the Nuget package Microsoft.Azure.ServiceBus and using this I'm currently writing to a topic and receiving messages from there. What I want now is to create subscriptions on this topic for every client. The point is that I want to create a filtered subscription using the SqlFilter . This means, I have to create the subscription by code. BTW: As far as I've seen it the only other way

How to read all message from Azure Service Bus topic using Python?

自古美人都是妖i 提交于 2020-03-25 19:22:49
问题 I want to read all messages from azure service bus using python. Currently it fetch only one message. from azure.servicebus.control_client import ServiceBusService, Message, Topic, Rule, DEFAULT_RULE_NAME bus_service = ServiceBusService( service_namespace='<NameSpace>', shared_access_key_name='<KeyName>', shared_access_key_value='<ConnectionString>') msg = bus_service.receive_subscription_message('topic', 'msglist', peek_lock=True) print(msg.body) How can I get all the message in bulk from

Is it possible to use MassTransit 3 with Azure Service Bus without Manage permission policy?

不想你离开。 提交于 2020-03-21 20:03:52
问题 I spent some days testing MassTransit 3.1.2 to see if we can use it with Azure Service Bus in our applications. I made a sample with two console applications using MassTransit.AzureServiceBus (3.1.2) : one publisher and one suscriber. It works well. When I start the applications, the entities (queues, topic, subscriptions) are created automatically on my namespace on Azure. That's nice when you are testing thing but in production, I don't want the application to be allowed to create entities.

Is it possible to use MassTransit 3 with Azure Service Bus without Manage permission policy?

倖福魔咒の 提交于 2020-03-21 20:03:18
问题 I spent some days testing MassTransit 3.1.2 to see if we can use it with Azure Service Bus in our applications. I made a sample with two console applications using MassTransit.AzureServiceBus (3.1.2) : one publisher and one suscriber. It works well. When I start the applications, the entities (queues, topic, subscriptions) are created automatically on my namespace on Azure. That's nice when you are testing thing but in production, I don't want the application to be allowed to create entities.

Azure Service Bus message lock not being renewed?

隐身守侯 提交于 2020-02-25 03:38:29
问题 I built a service to support multiple queue subscriptions in Azure Service Bus, but I'm getting some odd behavior. My subscription singleton class has a method that looks like this: public void Subscribe<TMessage>(Func<TMessage, Task> execution, int maxDop = 1, int ttl = 60) where TMessage : IServiceBusMessage { try { var messageLifespan = TimeSpan.FromSeconds(ttl); var messageType = typeof(TMessage); if (!_activeSubscriptionClients.TryGetValue(messageType, out var subscriptionClient)) {

How to write a MassTransit Json Deserializer for Azure Services

你离开我真会死。 提交于 2020-02-02 05:32:40
问题 here it is how I am publishing to an object to event grid. I want to be able to use the azure service bus to listen to it. public void Publicar<T>(T model, string operation, string entity) { _nomeEvento = entity + operation; Boolean.TryParse(Configuration["EventGridConfig:Enabled"], out var eventGridIsActive); if (!eventGridIsActive) return; var primaryTopicKey = Configuration["EventGridConfig:AcessKey"]; var primaryTopic = Configuration["EventGridConfig:Endpoint"]; var primaryTopicHostname =

Azure Service Bus Disaster recovery for messages

妖精的绣舞 提交于 2020-01-16 18:23:47
问题 Azure Service bus premium tier doesn't allow message replication in case of geo-disaster. Availability zones provide replication across data centers within a region but are not enabled for all regions right now. In the event of disaster no replication is provided across regions, how service bus ensures messages are not lost or Is it to be managed by the developer? https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-outages-disasters Standard tier says about active-active

Azure Service Bus Disaster recovery for messages

不羁岁月 提交于 2020-01-16 18:23:27
问题 Azure Service bus premium tier doesn't allow message replication in case of geo-disaster. Availability zones provide replication across data centers within a region but are not enabled for all regions right now. In the event of disaster no replication is provided across regions, how service bus ensures messages are not lost or Is it to be managed by the developer? https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-outages-disasters Standard tier says about active-active

accessing data from service bus

天大地大妈咪最大 提交于 2020-01-16 08:05:54
问题 I am trying to connect to servicebus and getting data from it, it seems since I've got the token I must reuse it evertime I make a request what's wrong with this code?here is the error I've got at the last line The remote server returned an error: (401) Unauthorized. //sample usage string mydata1 = string.Format(Constants.myData, brfId); public static readonly myData= "https://sdgsdg.servicebus.windows.net/sgsdg/gdgsg/{0}"; //sample usage - string agendaByBriefingDetailIdURI = string.Format

Renew lock when using ServiceBus in web jobs sdk

风格不统一 提交于 2020-01-16 07:03:26
问题 I am using azure web jobs sdk in order to handle messages. ServiceBus is used for messaging. Max lock time in the ServiceBus message is 5 minutes, but I have long running tasks that take more time. In this case I should call BrokeredMessage.RenewLock, unfortunately looks that I don't have access from web jobs trigger to the BrokeredMessage (I just get message content). Does anyone know how to RnewLock in the web jobs trigger? 回答1: Behind the scenes, we use MessageReceiver.OnMessageAsync in