Technique for handling ServiceBus Topic subscribers running in Azure staging when using ReceiveMode.ReceiveAndDelete -
Technique for handling ServiceBus Topic subscribers running in Azure staging when using ReceiveMode.ReceiveAndDelete -
we have number of topics in azure sb , update our environments through vip swap staging production.
when instance running in staging don't want subscribers read , delete messages intended send events our instances running in production slot.
the solution have come create subscriptions include roleenvironment.subscriptionid in name. these deleted during roleentrypoint.onstop() avoid unused subscriptions.
is there more elegant solution , missing obvious?
one approach have configuration setting application understands. can changed between staging/production environments , same config value can used enable/disable things not want in production. service bus can create staging , production namespace , set url in config.
azure servicebus azure-appfabric
Comments
Post a Comment