X
X
Xcopy2014-09-09 23:09:38
MySQL
Xcopy, 2014-09-09 23:09:38

How is a constant request for new messages/notifications implemented by clients from the server database?

Hey!
We are writing a dating service for mobile operating systems. MySQL + Django backend.
At any time, the user can receive a message about which he will be notified by a push message (as in any applications a la VK, Facebook, etc.).
I don't quite understand how it's implemented... Does
each client request new messages from the server once a minute (or so)?
It would seem otherwise! But do tens of millions of smartphone users every minute (or so :) ) send a request to the Facebook server to find out if there is a new message for them?
It makes my head spin...
Maybe Facebook can somehow send new messages to customers?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
X
Xcopy, 2014-09-11
@perminovma

Thank you all!
As a result, I began to use Google Cloud Messaging + django module django-gcm

A
Alexander Taratin, 2014-09-09
@Taraflex

www.google.com/search?q=websocket&oq=websocket&sou...
or
https://www.google.com/search?q=websocket&oq=webso...

@
@mgyk, 2014-09-09
_

It can be even easier through Server Sent Events www.w3schools.com/html/html5_serversentevents.asp
Since you don't need communication in both directions and works over http/https

S
s1dney, 2014-09-10
@s1dney

Here is such a wonderful article about push and about pythontyts .

C
CloudMonster, 2014-09-10
@CloudMonster

peerjs.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question