1

我正在研究如何在我的应用程序中实现 Comet。我知道对于每个请求,客户端和服务器之间应该有一个开放的连接。不假设在我的应用程序中我有 10 个请求(将数据从服务器推送到客户端),而我只有 10 个在线用户,现在我应该在客户端和服务器之间打开 100 个(10*10)连接。可以吗?它没有任何性能问题吗?

4

1 回答 1

0

With Comet or with web sockets, you would have one connection open between each user and each server. You can then send multiple requests across the one connection.

So, for 10 users, your server would have 10 connections (one for each user).

于 2012-04-22T13:58:40.047 回答