Answer the question
In order to leave comments, you need to log in
How to organize the storage of files on the server?
There is a web project that collects data. I plan to scale it to 2-3 servers.
Each server has a php script that actually collects some data and sends media files to a specially created folder on this server.
How secure would it be to store these files on the current server? How profitable and optimized?
Perhaps you should look towards ready-made solutions (such as NextCloud). As far as I know, there are still storages from Goolge, Microsoft, AWS, IBM.
What is the best thing to do in this situation? It may be worth saving the files not just in one folder images
, but divided into subfolders of the type images/00/00/01/image.jpg
or even use the BLOB format in the database) someone already has experience, thanks!)
Answer the question
In order to leave comments, you need to log in
If there are really a lot of files, and especially pictures, then look towards seaweedfs. Just it can be stretched to all servers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question