Auto-expire orphaned Subscription (Azure ServiceBus Messaging SubscriptionClient)

前端 未结 3 1349
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-12 02:37

The scenario I have in mind is this: Service Bus is used for instance-to-instance communication, so a Subscription is unique per service instance. The end result is that if

3条回答
  •  萌比男神i
    2021-01-12 03:19

    that exact feature is on the backlog for one of the next releases. that said, in azure you could use the instance-id fro the role environment to create the name of your subscription and thus have a restarting instance reuse a subscription. the instance-id names are stable.

    Edit: The feature is AutoDeleteOnIdle https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.subscriptiondescription

提交回复
热议问题