Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

murilo's avatar
Level 10

STORAGE SERVER FOR IMAGES / integrate with laravel

Hello guys , I am producing a real estate website , and in this website will have many images of properties . I can see that the most of those websites store those images inside other hosts .

like this one - https://www.allhomes.com.au/ah/nsw/sale-residential/lvl-13-161-clarence-street-sydney-inner-sydney/1317473081311

if you have a look of the url image will be here - https://p-cdn-bucket-7oegqjpvm7id.s3.amazonaws.com/property/photo/9cbdb7227782f16cf8e0860b6aa05e7c_l.jpg

It looks like that is been storing on amazon AS3 .

BUT , it has this other website -

https://www.onthemarket.com/details/4354429/

that is look like that is storing those images in a subdomain -

https://media.onthemarket.com/properties/4354429/505999900/image-0-1024x1024.jpg

What wold be a best approach ? Use amazon as3 to store those images or other host wold be a good idea ? does some one knows the best way to store those images ?

Thanks

0 likes
7 replies
crnkovic's avatar

I think if you're handling resources that are pretty heavy such as a lot of images, the best way is to deliver them through a CDN, thus reducing the load of your server.

If you own a simple company website and need to serve some CSS or JS, and a couple of images, different server for hosting assets is overkill.

However, if your website will host a lot of heavy assets (every resource will contain a gallery of images, thumbnails, different sizes, etc.), then delivering them via the CDN is well optimized solution.

Somebody correct me if I'm wrong.

1 like
topvillas's avatar

If the images are already hosted somewhere then why not just store the image URLs?

crnkovic's avatar

@topvillas This is fine solution until you come across the image that is hosted on a garbage server and never loads on your page, or the image gets deleted, etc.

topvillas's avatar

You can run a queue worker periodically to check the URLs.

Besides, the images are for real estate. How long do you think they're going to be hanging around?

murilo's avatar
Level 10

It will be a real estate website , that will have many users . They will add images galleries , It will have to many image galleries , like thousands , my question is-

  • Do I store those images in the same server that is stored the website ?
  • Or do I store in a cloud server , like amazon as3 ?
  • What is the benefit of I store those images in amazon As3 ?
crnkovic's avatar

Store them on your server until you have the need to migrate to the cloud. Don't pay x amounts of dollars if you don't need to. Store them on your server until you start gaining content and users and your server can't handle it no more.

The benefit is, as I already said, reducing the load of your server.

bik001's avatar

Hey guys, I've read a good conversation about the image storage solution. What about the videos? does this solution apply to a website with over 100 videos and high-resolution images (on the same cloud server)?

Please or to participate in this conversation.