4

According to the Azure Static Web Apps Documentation, one of the key features of the Azure Static Web Apps service is:

Globally distributed static content, putting content closer to your users.

If it is globally distributed, what is the purpose of selecting the location for new resources which is nearest to us during the setting up phase as stated in step 8 of this creating a static web app guide?

enter image description here

Does selecting "Central US" limit the static content to be only distributed in "Central US" and website visitors from other regions will all be routed back to "Central US"?

Andrew Lam
  • 3,675
  • 4
  • 23
  • 34

2 Answers2

1

Here the location is for Azure static web apps which is a part of the AppService , but the "Globally distributed static content, putting content closer to your users" is relevant to CDN.

For website owners who have visitors in multiple geographic locations, content will be delivered faster to these users as there is less distance to travel. CDN users also benefit from the ability to easily scale up and down much more easily due to traffic spikes

Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
  • Thanks for the answer Sajeetharan. I selected East Asia as the resource location for my project, but when I use TRACERT command-line utility to trace the route taken from Malaysia to my website, it is stated that the packet is routed to Hong Kong. According to [Azure Content Delivery Network documentation](https://learn.microsoft.com/en-us/azure/cdn/cdn-pop-locations), there is a POP in Malaysia, why does it still route me to Hong Kong? – Andrew Lam Mar 26 '21 at 04:04
  • Probably Hong Kong has the lowest latency in this case, you can do a latency test from your location and see – Sajeetharan Mar 26 '21 at 04:16
  • How do I get the IP addresses of the POP in Malaysia? – Andrew Lam Mar 26 '21 at 04:30
  • Thats a separate question, if you are in malaysia just check which one has the lowest latency from here https://www.azurespeed.com/Azure/RegionToRegionLatency – Sajeetharan Mar 26 '21 at 04:31
  • Thanks for the link, according to it, the latency between South East Asia to South East Asia is "NaN". If I'm from Malaysia, isn't the nearest POP station will produce the lowest latency? – Andrew Lam Mar 26 '21 at 05:58
  • No, its not like that. Some of the regions have better connectivity even though they are not close by . – Sajeetharan Mar 26 '21 at 06:01
  • So how do I check? As the link above is stating "NaN" for latency between South East Asia to South East Asia. – Andrew Lam Mar 26 '21 at 06:06
1

The location argument refers to the location where your (serverless) backend APIs will be hosted via Azure Function Apps

jeffreyaven
  • 186
  • 1
  • 6