为少数客户端实施服务器端推送 [英] Implementing a server side push for a small number of clients

查看:92
本文介绍了为少数客户端实施服务器端推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于正在使用的Web应用程序,我有以下要求:

For an web application I am working on I have the following requirements:


  1. 客户端需要能够通过Web登录

  2. 登录后,他们将能够

    • 更改配置(正常请求/响应)

    • 将能够接收服务器发送的警报(服务器端推送)

现在,问题是如何实施警报。我最初想到使用某种长轮询方法(Comet),但是由于客户数量肯定会限制在5-10位,因此我现在正在考虑采用一种更简单的方法。

Now, the question is how to implement the alarms. I first thought of using some long polling approach (Comet), but as the amount of clients will definitely belimited to 5-10, I'm now thinking to go with a simpler approach.

我有哪些选择?

推荐答案

5-10个客户端可以吗?我只是让他们轮询服务器。无需为此过度设计。

5-10 clients? I would just have them poll the server. No need to over engineer this.

这篇关于为少数客户端实施服务器端推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆