Photo storage for web applications

Possible duplicate:
Custom images - database and file system storage

Hello! Where should I store photos for Facebook-like apps? locally on the server in a folder or upload them to a database? I am not going to make this application commercial.

+3
source share
2 answers

Store images in the file system (folders) and save the path in the database.


EDIT:

Found an interesting article on how Facebook handles image storage:

Facebook: Needle in a Haystack: Effectively Store Billion Photos

Some facts from the above article:

  • Facts about photography:
    • Total photos 6.5B
      • 4 5 ( 30B)
      • 475 .
        • CDN (Akamai Limelight)
        • 200k /
      • 100 /
    • netapp filers
+3

, . , , .. . ,/home/username/appfiles/ . , image_location:/home/username/appfiles/image_file_name.

, , - , , , .

0

Source: https://habr.com/ru/post/1782169/


All Articles