Answer the question
In order to leave comments, you need to log in
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
Thank you all!
As a result, I began to use Google Cloud Messaging + django module django-gcm
www.google.com/search?q=websocket&oq=websocket&sou...
or
https://www.google.com/search?q=websocket&oq=webso...
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question