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.