Y
Y
yischyk2022-02-06 20:54:41
ubuntu
yischyk, 2022-02-06 20:54:41

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.jpgor 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

1 answer(s)
A
Alexey Cheremisin, 2022-02-06
@yischyk

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 question

Ask a Question

731 491 924 answers to any question