cnd怎么连接mysql,CDN如何访问数据库?

just to be specific the database I will be using is mongodb and the files in question would be images.

My question is......... if you store your pictures inside a database instead of a regular static file structure... how does this work?

I guess you could store the link to the CDN file along with the picture in the database. so {"image": "cdnurl/fakefilelocation"}

so when a user requests the image they just get the CDN url

but how does the "pull" request work from the CDN? how do they get the images? Would you have to manually route their get request for a specific image to the actual picture instead of a link?

解决方案

I have never tried or tested such things by myself on a big production server, but I would need to come up with such decision I will read what people who has experience with this problem have been doing.

Here are few threads that I found really interesting:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值