了解Azure CDN的问题 [英] Problem understanding Azure CDN

查看:89
本文介绍了了解Azure CDN的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,我是Azure CDN的新手。基本上,我正在尝试将CDN用于我的php网站图片,javascript文件和css文件。

Hello Experts, I am new to Azure CDN. Basically, I am trying to use CDN for my php website images, javascript files and css files.

我创建了一个Azure blob存储,然后我添加了一个容器并开始添加文件到容器。我注意到每个文件都可以通过这样的网址访问  https://*******.blob.core.windows.net/content/Test1.jpg 

I have created an Azure blob storage, then I added one container and started adding file to that container. I noticed that each file is accessible via a url something like this https://*******.blob.core.windows.net/content/Test1.jpg 

多数民众赞成吧!我猜这就是我想要的。但是,现在的问题是; CDN来玩的地方?我看到我们可以创建一个CDN,然后将端点添加到该CDN,这将进​​一步指向我之前创建的Blob存储。但是,问题是,为什么我需要
来创建CDN及其终点,而我已经能够通过Azure存储提供的URL访问我的文件?

Thats it!. I guess that is what I wanted. But, now question is; where CDN comes to play? I see that we can create a CDN and then add endpoint to that CDN that will further point to Blob Storage that I have created earlier. But, question is, why I would need to create that CDN and its end point while I am already able to access my file thru url that is provided by Azure Storage?

"我想改变世界,但他们不会给我源代码"
KaushaL ||
BLOG
|| 个人资料

"I would love to change the world, but they won’t give me the source code" KaushaL || BLOG || Profile

推荐答案

您好, 

Hi , 

您可以直接使用存储URL,也可以通过CDN访问存储URL。在这种情况下,在这里使用CDN是,假设你有 存储blob中的5 MB图片,您尝试从Internet访问。每当您尝试访问最终用户时,需要
从存储帐户获取该数据,这会导致延迟。但是如果你使用CDN,它会被缓存在POP服务器中,用户将更快地收到图像。 

You can either use the Storage URL directly or access the same via CDN. The use of CDN here in this case is, lets say you have  5 MB picture in the storage blob and you try to access from Internet. Every time when you try to access end users needs to get that data from the storage account which causes latency. But if you use CDN, it gets cached in the POP servers and users will receive the image quicker. 

希望这会有所帮助。  ;

Hope this helps. 

问候, 

Msrini


这篇关于了解Azure CDN的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆