K
K
Konstantin2016-07-22 12:00:30
PHP
Konstantin, 2016-07-22 12:00:30

How to store pictures/videos on the server?

I'm wondering how large sites organize file storage?
For example vkontakte.
Do they use some kind of file storage or is everything stored in folders?
How to store files correctly so that they can be easily used on the site itself and inserted into html players?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Chudnovsky, 2016-07-22
@Frankenstine

Do they use some kind of file storage or is everything stored in folders?

Incorrect question. Are there no folders in the file storages? These are also computers. And they also have file systems. No one in their right mind would store millions of files in unstructured storage. Searching among millions of files for what you need will be unreasonably long.

S
Stanislav, 2016-07-22
@Stasgar

Use separate file servers.

A
Alexander, 2016-07-22
@ded_kulibin

Storage
The engine is designed to store user data - photos, videos, audio, documents. By storing different content in a single file and indexing into offset memory, Storage does this better than the classic approach of storing individual files in the file system.

Source: https://habrahabr.ru/company/vkontakte/blog/214877/
VK store everything in one file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question