F
F
fintank2015-04-22 18:53:34
JSON
fintank, 2015-04-22 18:53:34

Why does Yandex-suggest work via AJAX and not via websocket?

The websocket is now supported in 99% of cases, less data would go through the websocket at times, especially if you use a binary protocol. And they drive back and forth kilobytes of JSON for each keystroke. Why not WS if it is available to the client?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Max, 2015-04-22
@AloneCoder

Let's not skimp on matches

M
mamkaololosha, 2015-04-22
@mamkaololosha

Yandex is a huge company with a bunch of projectors. It is this service that 7 students can write in some far corner of the Moscow office. If they have json somewhere deep, then no one will rewrite half of the infrastructure for these 7 students. Yandex has not been a startup for a long time, but a factory where people from one office may not know anything about third-party projects.

M
Moxa, 2015-04-22
@Moxa

Do not confuse the data transfer protocol and data format, json is quite minimalistic, not every binary format will take up less space

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question