Push technology

The technology push is a form of communication through internet in which the send request originates on the server , as opposed to technology pull , in which the request originates from the client .

Summary

[ hide ]

  • 1 General use
  • 2 Technologies
    • 1 HTTP server push
    • 2 Java pushlet
    • 3 Long polling
    • 4 Other technologies
  • 3 Push notification
  • 4 See also
  • 5 References
  • 6 External links

General use

Push services are often based on tailored information preferences. That is, a publisher / subscriber model. A customer must subscribe to several information channels. When new content is available on one of these channels, the server must send the information to the user.

The conference synchronized and instant messaging are typical examples of such services push . Chat messages and sometimes files are sent to the user as soon as they are received by the messaging system. Decentralized P2P programs (like WASTE ) and centralized ones (like IRC or Jabber ) allow you to push files. That is, the sender initiates the data transfer, rather than the recipient.

The e – mail is a push system: the protocol SMTP on which it is based, is a push protocol (see Push e – mail ). However, the last step: from the email server to the user’s desktop uses a pull protocol such as POP3 or IMAP . Modern email clients make this step seem instantaneous (they make use of periodic queries to the mail server, looking for new messages). The IMAP protocol includes the IDLE command , which allows the server to notify the client when new mail has arrived. The BlackBerry original was the first popular example of push technology in a wireless context.

Another popular example of push technology on the Internet was the PointCast Network , which gained popularity in the 1990s. It was responsible for sharing and storing data. Both Netscape and Microsoft integrated it into their programs during the browser wars , but it was replaced later in the 2000s by RSS (a pull technology).

Other uses of web applications that make use of push technology include the distribution of market data (inventories), online messaging / chat systems ( webchat ), auctions, online games and casinos, sports results, console monitoring and networks .

Technologies

HTTP server push

HTTP server push (known as HTTP streaming) is a mechanism for sending data from a web server to a web browser . HTTP server push can be done through many mechanisms.

Generally the web server does not finish the response after the data has been sent to the client. The web server leaves the channel open so that if an event occurs, it can be sent immediately to one or many clients. Otherwise, the data should be queued until the next request from the client is received. Many web servers offer this functionality through CGI (for example NPH scripts in Apache ).

Another mechanism is related to a special type called MIMEmultipart/x-mixed-replace , which was introduced by Netscape in 1995 . Web browsers should interpret it as a change in the document when the server publishes a new version to the client. [1] [2] Today it continues to be supported by Firefox , Opera and Safari , but is traditionally ignored by Microsoft . [3] It can be applied to HTML documents , but for broadcasting images in applications with a webcam .

The WHATWG has produced a draft of a Web Applications 1.0 specification [4] that publishes content to the client using push technology. On 1 September of the 2006 , the Opera browser implemented this experimental technology in a feature called “Server-Sent Events.” [5] [6]

Java pushlet

A pushlet is a technique originally developed for web applications on Java , although the same techniques can be used in other web frameworks. In this technique, the server takes advantage of persistent HTTP connections and leaves the response to the client “open” (that is, it does not terminate it), leaving the browser in a continuous “loading” state at the moment the initial page should. have been completed. The server, then, periodically uses javascript routines to update the content of the page, thus achieving the ability to push. Using this technique, the client does not need appletsJava or other plug-ins to maintain an open connection to the server. Clients can be automatically notified of new events, posted by the server. [7] [8] A major disadvantage of this method, however, is the loss of control that the server has over expiration times. A page refresh is always necessary if the page expires or the browser is closed.

Long polling

Long polling is a variation of the traditional polling technique and allows you to emulate information placed from a server to a client in a similar way to normal polling . However, if the server does not have information available to the client, instead of sending an empty response, the server saves the request and waits for some information to be available. Once the information is available (or after a set time), a complete response is sent to the customer. Then the client will normally make a re-request for information to the server, so that it always has a request waiting, which can be used to respond to an event.

Long polling is not in itself a push technology, but it can be used under circumstances where a true push is not possible.

Other technologies

The term Comet has been used to describe push technologies applied to web applications with AJAX . It is a global term for a combination of web technologies such as HTTP server push and long polling .

Push notification

The Push Notifications are messages sent directly to mobile devices (smartphones and / or tablets) with operating system iOS , Android , Blackberry and / or Windows Phone .

Push notifications help independent developers and app owners keep their users informed. By implementing them, you can interact with the people who downloaded an application and send them messages directly to their mobile devices.

The best example to have as a reference is WhatsApp : when they send us a message by this means, the “notice” that appears is a push notification.

 

Leave a Comment

Scroll to Top