azure-servicebus-subscriptions

Azure Service Bus Schedules Messages cancellation using the message content or message header data

拟墨画扇 提交于 2020-05-17 05:32:41
问题 I would like to cancel the scheduled messages in the service bus queue/topic using the message content. e.g: the scheduled message in queue/topic will be like this {UserName:'Scott', Test: 'This is test msg'} I would like to cancel the schedules message using the UserName Note: I am not saving the cancellation token, which i can use to cancel the scheduled message. 回答1: AFAIK, it is not possible to cancel a scheduled message based on a user property. Only way you could cancel a scheduled

Azure Service Bus Schedules Messages cancellation using the message content or message header data

我是研究僧i 提交于 2020-05-17 05:32:33
问题 I would like to cancel the scheduled messages in the service bus queue/topic using the message content. e.g: the scheduled message in queue/topic will be like this {UserName:'Scott', Test: 'This is test msg'} I would like to cancel the schedules message using the UserName Note: I am not saving the cancellation token, which i can use to cancel the scheduled message. 回答1: AFAIK, it is not possible to cancel a scheduled message based on a user property. Only way you could cancel a scheduled

Azure Service Bus Schedules Messages cancellation using the message content or message header data

笑着哭i 提交于 2020-05-17 05:32:11
问题 I would like to cancel the scheduled messages in the service bus queue/topic using the message content. e.g: the scheduled message in queue/topic will be like this {UserName:'Scott', Test: 'This is test msg'} I would like to cancel the schedules message using the UserName Note: I am not saving the cancellation token, which i can use to cancel the scheduled message. 回答1: AFAIK, it is not possible to cancel a scheduled message based on a user property. Only way you could cancel a scheduled

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

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)) {

Designing your Azure Service Bus topics - should you favor the use of more topics, or more filters?

断了今生、忘了曾经 提交于 2019-12-25 01:42:17
问题 I am in the early stages of designing the high-level structure of how two of our enterprise applications will broadcast to topics in the Azure Service Bus. I am a novice user of this technology, and after my preliminary reading of the documentation, I am tempted to use a simple solution: use a separate topic for each different event type that we want to broadcast. I favor this solution (over using filters) since it provides the most granular control over shared access keys, the least amount

Getting Message Stats in Azure Service Bus

一世执手 提交于 2019-12-10 08:02:32
问题 I am writing a utility to monitor our Azure Service Bus Topics and Subscriptions. I can get the Topic details, such as name, queued message count and dead-letter message count, but I would like to get the number of messages that have been processed. Here is the code I am using: var sub = namespaceManager.GetSubscription(topicPath, subscriptionName); var name = sub.Name; var pending= sub.MessageCountDetails.ActiveMessageCount; var deadletter = sub.MessageCountDetails.DeadLetterMessageCount It