Azure Service Bus Premium Tier Fail Over

John Wong Yek Hon 0 Reputation points
2023-06-23T03:13:18.59+00:00

Background:

We have a current setup in Azure which is already in production, and have multiple clients using it actively. Our solution provides website & REST APIs to the clients. The communications also involve Azure Service Bus.

Now, we need to setup another new environment to replace the current setup. Since the clients are distributed in different locations, we need to ensure a smooth switch over to the new setup, with minimal downtime.

Challenge:

One of our challenge is the Azure Service Bus, the clients need to use the new instance of Service Bus after the switch over, while they are currently pointing to the old instance. We are not able to ensure all clients to change their configuration at the same time. It would be good if we give grace period for them to update their settings, pointing to a middle layer, and let the middle layer to forward the messages to the desired target. We can then configure this middle layer to point to our new instance of service bus once ready.

Questions:

It seems that the Service Bus Premium Tier provide a feature called "alias" which can be used for the switch over. Refer to this link https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-geo-dr

The Geo-Disaster recovery feature ensures that the entire configuration of a namespace (queues, topics, subscriptions, filters) is continuously replicated from a primary namespace to a secondary namespace when paired, and it allows you to initiate a once-only failover move from the primary to the secondary at any time. The failover move will repoint the chosen alias name for the namespace to the secondary namespace and then break the pairing. The failover is nearly instantaneous once initiated.

We hope that this "alias" can serve as the middle layer that we are expecting. Please refer to below diagram for our desired approach.

User's image

We would like further clarify on below:-

  1. As our current instance is standard tier, can the "alias" connect to this current instance? or we have to upgrade the current instance to premium tier as well, and can we do that?
  2. As the article (the link above) mentioned that it is "once-only". Can you share more on the definition? As we want to perform some POC before confirm to go. We may want to switch the target multiple times, so this "once-only" is really a concern to us.
  3. Best if there are some screenshots / video showing the steps of the fail over.
  4. If any other better solution that you could advise?
Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
703 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
824 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2023-06-23T22:27:36.43+00:00

    @John Wong Yek Hon There is no direct upgrade for the standard to premium namespace conversion, only migration.

    This migration option already covers your Phase 1 and 2 from the diagram, and once you are on Phase 2, you can follow the DR guide to set up the alias and backup namespace.

    Another option is to take the DNS Alias part into your own hands as shown here, but this requires an update to the clients since the official clients don't check SRV records as mentioned.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.