开发者

Java MultiServer Chat

I would like to make a chat server in java, but I do开发者_Go百科n't know if it's a good idea, because I can't understand what is the maximum of the users of which can handle...

I'm using NIO


I don't know your stance on third-party products, but Jabber is always an option and has been tried and tested by some of the industry's biggest sites. It's an XMPP-compliant server and can handle things like clustering, load-balancing, etc.


A typical IO or NIO server can handle between 1K and 10K concurrent connections with Java 6. NIO doesn't make as much difference to the maximum connections as it did with java 1.4. Assuming that the chat is light weight you should be able to reach 10K on a modest server.

If you just need 1K connections, I would use IO as this tends to be simpler to use and will do the job.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜