Why is long connection inappropriate? As long as the design is reasonable, the cost of maintaining a single connection is very low. In addition, the server is built through a cluster, so speed and stability can be guaranteed.
1. Long-term rotation training, pay attention to the amount of concurrency 2. Rotation training, which consumes high resources and affects server performance 3. Use non-Tcp WebSocket protocol
SSE server-side push technology
Why is long connection inappropriate?
As long as the design is reasonable, the cost of maintaining a single connection is very low. In addition, the server is built through a cluster, so speed and stability can be guaranteed.
1. Long-term rotation training, pay attention to the amount of concurrency
2. Rotation training, which consumes high resources and affects server performance
3. Use non-Tcp WebSocket protocol
http://www.cnblogs.com/imstud...