Comet VS Ajax polling

后端 未结 3 700
夕颜
夕颜 2020-12-08 23:48

I need to create a chat like facebook chat.

With Comet I need more memory to keep the connection.

With Ajax polling there is a latency problem if I send requ

3条回答
  •  生来不讨喜
    2020-12-09 00:35

    @Vasil: "you can keep millions of opened connection"

    Take a look to this problem

    And regarding the false superiority of NIO over IO.

    The iobound article just shows IO outperforms NIO and yes IO goes out of memory before NIO (by the way, the author has not tried to reduce the stack memory with a lower value).

提交回复
热议问题