question

MatthewBarrett-5898 avatar image
0 Votes"
MatthewBarrett-5898 asked MatthewBarrett-5898 answered

web app replication to another region

I need to setup an Azure web app service (http) and replicate the site to another region for failover. I'm going to use Traffic Manager or Front Door to redirect traffic if a region becomes unavailable.

The site will be updated with content or new pages daily, while the source code might remain the same.

Cloning an app service is a one time event. Is there a way to replicate the app service on a daily basis?

Thanks in advanced.

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MatthewBarrett-5898 avatar image
0 Votes"
MatthewBarrett-5898 answered

We are currently using FrontDoor for regional failure redirection and SQL replication to replicate the data to another region. Since the site cloning is a single event, we will add it to our Visual Studio Online site list for pushing updates.

Thank you everyone for your suggestions but, we already had the environments suggested in place. I was under the impression that the site would have been affected by all the updates. Since everything is stored in SQL we only have to worry about occasional code updates.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ryanchill avatar image
0 Votes"
ryanchill answered

Hi @MatthewBarrett-5898,

I would advise you to consider using deployment center or Azure Pipelines to enable continuous deployment for your app code. That way, you can deploy to your primary app service as well as your fail-over. Your app service can be updated each time your code builds successfully.

If you something isn't clear or you need further assistance with continuous deployment, let me know.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MatthewBarrett-5898 avatar image
0 Votes"
MatthewBarrett-5898 answered ryanchill commented

The app code is not changing and does not need to be replicated.

It is the site content that is changing and needs to be replicated to the secondary site.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You can use FTP to access your sites separately and upload the new static content. Another option would be to use Azure Storage to store the static content and your primary and failover app services reads the static content from storage. See https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website for how to set that up.

0 Votes 0 ·
NSeth avatar image
0 Votes"
NSeth answered

Hi

You can use the Front Door for the traffic routing between primary and secondary region.
And use SQL Database or Cosmo DB with Geo-replication between primary and secondary site DB.

Also,if your site is going to host critical contents then I would also recommend to use Azure Cache for Redis for performance and scalability.

Please have a look here for further info - https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/app-service-web-app/multi-region

Thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.