长轮询是一种轮询技术,其中服务器延迟完成HTTP请求,直至已经为客户机准备好了一个更新信息或发生超时。
Long polling is a polling technique in which the server will delay completing the HTTP response until either an update is ready for the client or a timeout occurs.
该技术的另一种方案就是长轮询,可以避免这两个问题。
An alternative to this technique is long polling, which can avoid both these problems.
这些情况发生时长轮询是个减轻服务器负载挺有趣的技术。
Long polling is an interesting technique to decrease the load on the server in these types of scenarios.
应用推荐