First of all, if the number of users online exceeds a certain level, it is difficult for you to push. At this time, you can pull it. Pull it when the user logs in. It is impossible for users to log in at the same time. There is no extreme concurrency situation in pulling at this time. The pull should be in the cache. Pushing can be done when a certain base of users are online at the same time, such as three thousand. If you push once, the amount of long links maintained by a single machine is not large. If there are too many, tens or even hundreds of millions of users will not be able to push. You can choose to temporarily pull appropriately.
First of all, if the number of users online exceeds a certain level, it is difficult for you to push. At this time, you can pull it. Pull it when the user logs in. It is impossible for users to log in at the same time. There is no extreme concurrency situation in pulling at this time. The pull should be in the cache. Pushing can be done when a certain base of users are online at the same time, such as three thousand. If you push once, the amount of long links maintained by a single machine is not large. If there are too many, tens or even hundreds of millions of users will not be able to push. You can choose to temporarily pull appropriately.
It is recommended to read this:
https://www.keakon.net/2015/1...
http://blog.lovemydeer.com/20...