I run a webserver (http://www.mycompany.com) in Azure (in West Europe) which displays a lot of images to the users.
- All images are fetched from Azure CDN with querystring syntax enabled. (i.e. http://cdn.mycompany.com/images/abc123.jpg?preset=Thumbnail)
- The CDN points to an Azure WebApp (in West Europe) as its Endpoint. (http://resizer.mycompany.com) which runs ImageResizer v4.
- ImageResizer is configured with the plugin AzureReader2 to load the original images from Azure Blob Storage (http://mycompany-images.blob.core.windows.net)
This configuration works fine from my client in Sweden. Both small thumbnails and large versions of the images show up, and it is fast.
Users in Japan see the thumbnails (2KB) without problem, but large images (500KB) takes minutes to download, even over high-performant fiber connections. When I comandeered a computer in Japan and forced cdn.mycompany.com to point to 93.184.221.200 (which is Azures edge for Sweden), the same image was downloaded in reasonable speed! It also worked to require the image directly from resizer.mycompany.com or Blob Storage.
I've tried to diagnose this for a week now and don't know how to continue.
- Is there something wrong with the CDN Edge in Japan?
- Is the problem that the CDN Edge in Japan is too far from the WebApp in West Europe?
- Do I have performance issues on the WebApp or Blob Storage that I just havn't realized? (there are a lot of japanese users hitting the website at the same time)
(The urls above are obviously obfuscated)