简体   繁体   中英

Big data generated PHP script

I am working on a small PHP script, this script is currently generating over 8gb of pictures daily so I am looking for a solution to prevent problems in the future.

My question is should I keep using the VPS to store those pictures ? or instead use a cloud storage service to store them and display them ? Which is the best cloud storage service for my case ? When loading those picture does the load in the server increases ?

It's depend on some variability in your project. If you can Maintenance VPS yourself, I think its better to use it because you can use some compression method in your vps to reduce picture size. on other hand, using cloud storage helps you to increase storage simply!

The best practice in that kind of job is always comparing cost between hardware and processing time. Now days storage hardwares are cheaper than processing times using CPU and Ram. Why don't you save all image files on every requests and serve your users without processing image creation like how NoSQL serves users?

I think you should use AWS(amazon web services) to upload picture, i had the same problem and AWS solution is working fine.you just have to store the url of picture in database and when the picture will load it will not increase the load on your server.

Here is documentation - AWS documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM