M
M
ML2017-01-16 19:00:29
Highload
ML, 2017-01-16 19:00:29

Why is snapster from vk so fast?

The question itself is rather strange, but for the second hour I'm testing the download speed of the web version of the snapster photo application ( https://snapster.io ).
And download speed, its is about 100-250ms.
After studying its network.
All files are taken from the cache (from memory cache). And the return of the document itself (Other) is about 40-70ms (gzip).
Document returns PHP/3.9558.
But this is not PHP, but kPHP, as I understand it. https://en.wikipedia.org/wiki/KPHP .
At the very guess:
1. The fact that the application is based on the main vk servers, but it does not have a large load.
So they give 100% of the resources.
2. kPHP does some magic.
Until nothing else comes to mind.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-01-16
@Sanasol

Because you have to work very hard to make an application with 3-5 functions slow.
Moreover, the main content of the photo, and not some "computing processes".
And the server in a normal request only gives a piece of layout: view-source: https://snapster.io/room-1
But Ajax requests are far from being so fast.
this is the "merit" of the browser, not the developers of the site.
In general, the service did not fall to anyone at all: https://snapster.io/room-1

1. The fact that the application is based on the main vk servers, and it does not have a large load.
So they give 100% of the resources.

But how should this affect the speed of the application? This is not a project on a hosting for 50 rubles, it has all the resources "its own", and not some part.
Naturally, it is on VK servers, moreover, it most likely uses a little more than the full functionality / infrastructure / VK API to work. It is enough to see links to photos, authorization through VK, etc.
In general, if 100-250ms is magic for you, then you should look at your code, and not at the magical work of kPHP or magic VK servers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question