Routing method – priority

The priority routing method is the most straightforward as it covers a simple scenario where you have a primary region that hosts your application, and you want to ensure that you can easily fail over to the secondary ones in case something is wrong. Let's consider the following scenario:

Server Priority Status
Server A 1 Online
Server A - secondary 2 Online

In the preceding example, all traffic will be routed to Server A for the following reasons:

  • Its priority is set to 1
  • Its status is considered online

Now something has happened and the primary replica went down:

Server Priority Status
Server A 1 Degraded
Server A - Secondary 2 Online

Because Server A is considered unhealthy, all traffic ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.