📜 ⬆️ ⬇️

Excavations build photohosting VK

I like this website and it is a pleasure to study it (architecture). True today, I discovered that I did not like it at all. And the essence, in fact, in the following:

CEO VK Pavel Durov On January 26, when writing a command to the repost , the importance of VK's photo hosting site was 80 times higher !

The meaning of this publication was my personal research, the results of which prove the fact of overstatement of real information and reveal some technical features of building photo-hosting VK.

It all started with the fact that I decided to practically calculate how many photos are currently added to VK. The result struck, only ~ 280 million, but not 25 billion about which Paul writes.
')
image

It is calculated simply by adding one photo first, then a couple more in different places, for a correct calculation. Photos in communities, public and private pages belong to the same table in the VK database. Previously deleted identifiers are reused, in other words, assigned to newly added photos, so we get the figure of 278394369 photos added to VK at 21:20 February 13, 2012

On servers (cs *****. Vk.com/) because of the fear of fragmentation of hard drives, of course there are many more files, and there are only as many photos as there really are. The figure is public and visible in the URL.

This could have completed the study, but one more interesting fact came to light.

Having played with the built-in viewer, I noticed one important detail. When adding, not only the photo itself with a number of thumbnails is saved, but also 4 options for turning it and all its thumbnails as well. For example: 90 ° , 180 ° and 270 ° .

Experienced to find out the prefixes:
x_ - thumbnail <= 604 pixels wide
y_ - thumbnail <= 807 pixels wide
z_ - thumbnail <= 1280 pixels wide
w_ - the original (when adding photos 1600x1200, 1920x1080, 5000x3328, 10000x6656 for some reason was not created)

Identify the purpose of the 8-digit hexadecimal number has not yet succeeded. However, I know for sure that this is not part of md5. Proof on php.

<?php echo md5_file('http://cs10887.vk.com/u10855725/-7/y_4a568d3d.jpg'); echo md5_file('http://cs10887.vk.com/u10855725/-7/y_fed4ec80.jpg'); echo md5_file('http://cs10887.vk.com/u10855725/-7/y_fa62b721.jpg'); echo md5_file('http://cs10887.vk.com/u10855725/-7/y_114336cf.jpg'); ?> 


Total: 1 photo added by you is equal 16 (at a posting on a wall - even more) to files on the VK server. Consequently, Paul’s words about 25 billion photo files, including all the miniatures, may not be exaggerated, but not the photos themselves, which is important because he decided to compare VK with specialized photo services: Flickr, Picasa and Photobucket, and also taken together . It’s just there that the counter displays only (unique) uploaded photos, not files, because their number will be many times larger and then VK 25 billion will generally fade against N trillion.

There can be no talk of any quality photo hosting in VK. If we recall that VKontakte for a long time, until June 2010 , kept all the photos only 604-pixel (prefix: x_) by thumbnails (by the way, Paul also distinguished himself ), then this comparison is not that it is incorrect and is not the top of the guide VK basic work of specialized photo services and counters uploaded images to them.

I also conclude that VK no longer saves the original photo, and everything added is now reduced to 1280x1024 pixels and if the file has the extension PNG or GIF converts to JPG. It is noteworthy that the information about the image (EXIF) when added, if it was recorded, is erased. For what purpose?

Please do not take this publication as a critic of VK. I have great respect for the development team and for Paul himself. My personal research did not agree with the public data. I would like to know what I was wrong or what were the reasons for the VK leadership, in order to overstate the numbers (to show my incompetence)? Exalt and brag? Well, excuse me, did not work.

Total for 2006–2010 VKontakte added ~ 205 million, and in 2011 ~ 70 million photos.

Bonus vk.com runs on nginx / 1.0.11 . You can find out by adding to the URL of any page a trailing slash, plus, minus, any other character, even a comma or a comma, and you will see 404 errors, or you can be even simpler, like this: vk.com/ .

VK user, Seryozha Prelovsky .

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


All Articles