苹果推送服务器推送延迟_什么是服务器推送

苹果推送服务器推送延迟

什么是服务器推送? (What Is Server Push?)

The Server Push mode is a client-server communication in which the dialogue is initiated by the server. This technique is therefore opposed to operating “traditional” web transactions where the customer opens the dialogue, and it pulls the information (pull).

服务器推送模式是客户端-服务器通信,其中对话由服务器启动。 因此,该技术与操作“传统” Web交易相反,在这种情况下,客户打开对话,并拉动信息(拉动)。

服务器推送–说明 (Server Push – Description)

To enable its operation, the push technique requires prior authorization from the customer on the subscription model. The customer subscribes to the service whenever new information is available, it is sent by the server.

为了实现其操作,推送技术需要客户在订阅模型上的事先授权。 只要有新信息可用,客户就订阅该服务,该信息由服务器发送。

Applications such as video conferencing or instant messaging are great examples of using this technique: once the central server receives a message (or any other type of data) from one of the participants, the sends to others. The IRC and P2P networks operate on the same principle.

诸如视频会议或即时消息之类的应用程序就是使用该技术的绝佳示例:中央服务器一旦从一个参与者接收到消息(或任何其他类型的数据),就将其发送给其他参与者。 IRC和P2P网络的工作原理相同。

SMTP email works on the principle of server push, although part of the transaction is complete in pull mode (IMAP and POP3). The modern mail clients simulate push by querying the server frequently on the possible arrival of new mail. Note however that the IMAP natively supports push through the IDLE command.

SMTP电子邮件按照服务器推送的原理工作,尽管部分事务在拉模式(IMAP和POP3)下完成。 现代邮件客户端通过在新邮件可能到达时频繁查询服务器来模拟推送。 但是请注意,IMAP本机支持IDLE命令的推送。

技术-HTTP服务器推送 (Techniques — HTTP server push)

The HTTP server push (sometimes called HTTP streaming) is the name given to the technique applied to push HTTP. Several methods can lead to a push server, the most common being to prevent the server to close the transaction. The client-server connection remains open and, thereby instantly update the data related to customers and avoids creating queues on the server side can be expensive. This feature is available on the Apache server via CGI.

HTTP服务器推送(有时称为HTTP流)是为推送HTTP所应用的技术赋予的名称。 有几种方法可以导致推送服务器,最常见的方法是阻止服务器关闭事务。 客户端-服务器连接保持打开状态,从而立即更新与客户有关的数据,并避免在服务器端创建队列可能会很昂贵。 可通过CGI在Apache服务器上使用此功能。

Another possibility is to make the push to use the header Mime multipart / x-mixed-replace, established by the Netscape Navigator browser in 1995. Although most browsers are able to use this header, Microsoft still has no plans to give its browser this technique.

另一种可能性是推动使用标题Mime multipart / x-mixed-replace,该标题由Netscape Navigator浏览器于1995年建立。尽管大多数浏览器都可以使用此标题,但是Microsoft仍没有计划为其浏览器提供此技术。 。

The WHATWG is currently working on the standardization of this technique: the Event Server Sent which, for now, is implemented (in part) as the only browser Opera. Unlike the model developed by Netscape, the event feels server is based on the creation of new Mime type text / event-stream, the data will be used directly through the DOM tree.

WHATWG当前正在对该技术进行标准化:发送的事件服务器(目前已部分实现)作为唯一的浏览器Opera。 与Netscape开发的模型不同,事件感觉服务器基于新的Mime类型文本/事件流的创建,数据将直接通过DOM树使用。

Java Pushlet (Java Pushlet)

The Java Pushlet (the 2-word is created from the push and applet) is a technique developed for web applications in Java, although it is now used in other frameworks. Here, the server operates using persistent connections (see also section on HTTP 1.1). As with other methods, the server does not end the dialogue with his client and the latter half mast, leaving the mode of loading and sending regular small JavaScript instructions to refresh the page.

Java Pushlet(由push和applet创建的2个单词)是为Java中的Web应用程序开发的一项技术,尽管现在它已在其他框架中使用。 在这里,服务器使用持久性连接进行操作(另请参见HTTP 1.1部分)。 与其他方法一样,服务器不会结束与客户端和后半部分桅杆的对话,而是保留加载和发送常规小型JavaScript指令以刷新页面的模式。

The advantage of this method lies in the fact that the customer does not need any applet or plugin to keep its connection open. However, this method suffers from a serious drawback which lies in the timeout allowed in the browser, which involves a manual refresh the page.

这种方法的优点在于,客户不需要任何小程序或插件即可保持其连接打开。 但是,这种方法有一个严重的缺点,那就是浏览器允许超时,这需要手动刷新页面。

Study: From Wikipedia, the free encyclopedia. The text is available under the Creative Commons.

研究:来自维基百科,免费的百科全书。 该文本可在“ 知识共享”下找到

翻译自: https://www.eukhost.com/blog/webhosting/what-is-server-push/

苹果推送服务器推送延迟

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值