Ajax technology has existed for a while, and the Development motivation has been recognized by people. More and more web sites are considering using Ajax for design, and developers are beginning to limit Ajax capabilities. With the emergence of social networks and collaborative reports, a new set of requirements emerged. If another user changes any activity that a user is observing, the user wants to be notified. If if dynamic data, such as stock price, is displayed on a Web site, all users must immediately receive a notification about the change.
These scenarios are a type of question called "server push. Generally, the server is a central entity, and the server will first receive notifications about any changes that have occurred. The server is responsible for notifying all connected clients of such changes. Unfortunately, HTTP is a standard protocol for client-server communication. It is stateless and, in a sense, one-way. All communication in the HTTP scenario must be initiated by the client until the end of the server. However, the requirements in the scenario we mentioned are totally different. For server push, the server needs to initiate communications and send data to the client. No configuration for HTTP protocol, Web Site ApplicationProgramDevelopers use a unique method to bypass these problems. For example, in polling, the client will contact the server at a fixed (or configurable) interval to check whether new updates are available. In most cases, these round robin is purely a waste, so the server does not have any updates. This method does not have no cost. It has two major problems.
Considering these two problems, polling is not the best method for enterprise applications that require key and real-time server updates. In this articleArticle. Each alternative method has its own highlights in some scenarios. I will describe these scenarios and demonstrate a set of UIS that require real-time server pushing.