Share via

Azure Webapps

Nick Diaz 286 Reputation points
2022-04-14T15:51:36.087+00:00

"I have a product data warehouse of over 1 million products. Every new customer is hosting a website with me . But as we scale customers they all are going to be using the same images as many sites sell the same products (everyone with a unique URL). Instead of creating a copy of all these product images for each site I want to dynamically serve a single image to multiple different websites each with it’s own URL.

Is this possible? Or should I have a single endpoint that all websites reference for their images instead of using their domain?

Alternative it seems simpler to put all images on a xyzcommerce subdomain like cdnxyz.concertocommerce.com or imagesxyz.concertocommerce.com. But would that penalize my customers’ SEO if their site is www.xyz.com but all product images are on a xyz.com root domain?"

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

Answer accepted by question author

Bryan Trach 17,842 Reputation points Microsoft Employee Moderator
2022-04-20T04:53:19.2+00:00

@Nick Diaz Thank you for reaching out and your interest in Azure.

My suggestion would be to host your site images on Azure CDN and then reuse the resource throughout your sites as needed.

When it comes to SEO and CDNs, you want to setup the CDN to use your domain. So cdn.contoso.com for contoso.com. This would then cover any subdomains under contoso.com such as app1.contoso.com and app2.contoso.com.

I would suggest starting with Azure CDN documentation to see if this further aligns with your needs.

If you have further questions regarding this matter, please let us know.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vidya Narasimhan 2,126 Reputation points Microsoft Employee
    2022-04-17T04:53:05.05+00:00

    @Nick Diaz , a recent feature in Linux web apps allows you to mount a storage as a local share in app service allowing sharing assets across multiple web apps https://learn.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?tabs=portal&pivots=container-linux . Have you considered this option? This would allow apps to serve the image using its own url.

    Was this answer helpful?

    0 comments No comments

Your answer

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