I'm evaluating Azure CDN, which seems like it can be a great solution... but for some reason they tried to make it as complex as possible to use...
So, I was thinking to create a Windows service that uses something like FileSystemWatcher to monitor specific folders, that way, maybe I can make it transparent to the programmer, so every image that is being added / uploaded through FTP / uploaded by a web user will automatically be uploaded to the Azure CDN through their super complex APIs...
Assuming every file is created/updated/deleted on the Azure CDN as well, I'm thinking I could use the reference to the Azure CDN in order to render the image.
I also wonder how can I use a fallback for images - for example, lets say an image was uploaded but it takes 10 seconds for it to get to the CDN and maybe more time to replicate to all geographic locations - in that case, maybe I can load it locally for the first 10 seconds and then use the CDN URL... any suggestions?
- Is there a solution that already does that synchronization?
- Can you think of any issues with implementing something like that?
- How long it would take for the images to get published before it is safe to use them?