Want to implement real-time communication

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.