To interconnect a real-time communication website with an APP (Android and IOS), you can send a message to the APP on the website in a timely manner.
What technology is better to use? please give me some advice.
Reply to discussion (solution)
You can check the workerman PHP socket framework in the backend of php instant messaging development.
There are examples, which are relatively simple
Php real-time communication is still insufficient. Long connections are required and high concurrency is required. From these two convenience considerations, it has little to do with the specific code implementation (except you use the heartbeat method for communication or persistent connection implementation), mainly depending on the configuration and selection of server deployment.
PC is okay, but how is the cost calculated if the mobile device maintains a persistent connection?
What is the practical significance of silver?
Php writes the database to the database,
Use the APP to regularly read the website database,
The update time can be adjusted to reduce power consumption and reduce traffic usage,
Php real-time communication is still insufficient. Long connections are required and high concurrency is required. From these two convenience considerations, it has little to do with the specific code implementation (except you use the heartbeat method for communication or persistent connection implementation), mainly depending on the configuration and selection of server deployment.
Currently, there are few users who do not consider performance, that is, they do not know how to do it.
PC is okay, but how is the cost calculated if the mobile device maintains a persistent connection?
What is the practical significance of silver?
Does the persistent connection cost of a mobile device mean traffic.
QQ does not seem to use much traffic.
Php writes the database to the database,
Use the APP to regularly read the website database,
The update time can be adjusted to reduce power consumption and reduce traffic usage,
This is not a timely communication.
If the interval delay is over seconds, this function is useless.