What is a good design scheme for the web system to push a message to all users?

Source: Internet
Author: User
The web system pushes a message to all users, like Sina Weibo pushes a message to all users. how to design the message queue web system to push a message to all users, how to design a message queue to push a message to users like Sina Weibo

Reply content:

How to design a message queue when the web system pushes a message to all users, such as a message sent to users on Sina Weibo?

Does the web server push data to the client (browser? If yes, there are two solutions: one is the client polling at a certain time, and the other is the WebSocket technology.

Https://github.com/walkor/web-msg-sender.
The result is to send messages to all online users in real time.

Http://pusher.com/
You can try this service. The basic technology is as mentioned in @ jinlong feng.

It can be determined that if websocket is supported, websocket is not supported, only polling is supported.

Are you talking about mobile terminals? Baidu cloud push is ready for use.

Easy to move to the mobile end, cloud push can be used,
No good solution is found on the web end, or knowledge is preferred.

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.