简体   繁体   English

android / ios聊天应用服务器端Java实现

[英]android/ios chat application server side implementation in java

I want to create a server side implementation where multiple clients (android or ios ) can make chat on events which they are part of , which server side implementation is preferred for same , Can anyone suggest me the framework , currently i have implemented multi threaded socket programming at server, server listen on particular port for same. 我想创建一个服务器端实现,其中多个客户端(android或ios)可以在它们属于的事件上进行聊天,该服务器端实现是首选的实现,任何人都可以向我建议该框架,目前我已经实现了多线程套接字在服务器上编程,服务器在特定端口上侦听相同的内容。

I want application to work for thousands of users at the same time , Is there any open source chat framework available ? 我希望应用程序可同时为数千个用户工作,是否有可用的开源聊天框架?

One of the best frameworks to work with many clients is Netty : 与许多客户合作的最佳框架之一是Netty

http://netty.io/ http://netty.io/

It is a NIO framework, which simplifies the development of large scalable applications. 它是一个NIO框架,可简化大型可扩展应用程序的开发。 It provides a lot of protocol implementations out of the box, and allows you to develop your own protocols in case you need those. 它提供了许多现成的协议实现,并允许您在需要时开发自己的协议。 In case of a chat application, this is a good option. 如果是聊天应用程序,这是一个不错的选择。

If you are already looking for a pre-implemented chat server, this is not it. 如果您已经在寻找预先实现的聊天服务器,不是吗。 But Netty framework can be used for that easily. 但是Netty框架可以轻松地用于此目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM