Answer the question
In order to leave comments, you need to log in
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
Not all hosts support
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>
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question