并发论坛服务器使用什么模式?
我需要编写一个留言板应用程序,服务器应该能够同时为多个客户端提供服务。目前我的默认选择是使用反应堆模式(因为它是我学习和知道的唯一一种),但我想知道是否还有其他/更好的选择。
此外,欢迎提出合适模式的开源实现的建议。
需要澄清的是,我并不是在询问 http 服务器。目前该应用程序与 http 无关。
这个问题严格来说是关于设计模式的。
谢谢。
I need to write a message board application and the server should be able to service several clients simultaneously. At the moment my default choice is to use the reactor pattern (since it's the only one i learnt and know) but i was wondering if there are other/better options.
Also, suggestions of open source implementations of suitable patterns will be welcome.
Just to be clear, I am not asking about an http server. At the moment the application has nothing to do with http.
The question is strictly about design patterns.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了前摄器之外,没有找到有关服务器其他设计模式的太多信息,但我不确定它是否适合我的需求。我确实找到了一个 Java 客户端/服务器编程框架,它叫做 Jboss netty,它正是我正在寻找的。感谢所有试图提供帮助的人。
JBoss netty: http://www.jboss.org/netty
Didn't find much info about other design patters for a server except proactor but i'm not sure if it suits my needs. I did find a framework for client/server programming on Java, it's called Jboss netty and it's pretty much what i was looking for. Thanks to everyone who tried to help.
JBoss netty: http://www.jboss.org/netty