M
M
MaxFreedom2016-06-08 20:50:51
Node.js
MaxFreedom, 2016-06-08 20:50:51

Who knows how the instant messaging system works between users on dating sites, for example, in 2005?

Hey! Guys, I have such a question, in our time, Node JS, WebSocket, and something similar, modern are recommended to implement a messaging system between users. But Node JS is really a new technology that not all hosts support now. I am interested in the following: How did messaging systems work on dating sites before, approximately, 2005-2009, what technology were they based on? Indeed, to implement the exchange of messages, it was necessary not only to send a message, but also to constantly check whether there are new messages for the user. If, now, use ajax requests with setInterval, for example, 3 seconds, then with the accumulation of a large number of users, the server will be "demolished" (500 users = 500 calls to the server every 3 seconds). Or how to implement server-initiated checking for new messages without Node JS? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Sergey, 2016-06-08
Protko @Fesor

Not all hosts support

For starters, all these dating sites weren't using shared hosting in 2005 either.
In fact, it is enough to look at Vkontakte. They used long polling in the 200x as they do today. There is also just polling, but this comes out in terms of server loads that are heavy.

R
Rou1997, 2016-06-08
@Rou1997

long polling.

R
RubaXa, 2016-06-08
@RubaXa

In addition to Long polling, there was also Flash / rtmp, mamba itself and many other dating sites used it.
Yes, and Long polling was also special, it's an endless iframe. The server simply did not close the connection and, as new data appeared, gave something like

<script>printMessage(userId, messageData)</script>
<script>updateUserList(array)</script>

UPD . In fact, even then, using Flash / rtmp and LocalConnection, they made master / slave on the client, so as not to load the server with connections from each tab. Even now, this is rarely seen.

A
Alexey, 2016-06-09
@MAKAPOH

We have already written about long polling here, I will not repeat it. As for what was used instead of node. For example, for python there is a twisted library which is probably 15 years old. I don’t know about other languages.

P
polyakovyevgeniy, 2016-06-10
@polyakovyevgeniy

You can use a very good SignalR library

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question