如何实现群聊/留言板手机应用程序?

发布于 2024-10-02 23:25:52 字数 385 浏览 3 评论 0原文

我正在尝试编写一个 iPhone 群聊/消息板应用程序,它将有一个后端组件。我希望用户注册我们的系统并开始在聊天室/留言板上发布消息。这些留言板可以有两个以上的人,必须支持实时通知,并且也应该可以从任何其他客户端(例如网络)访问。

我偶然发现了 http://code.google.com/p/xmppframework/ 。我意识到 XMPP 对于我们的需求来说是一个非常有吸引力的提议,但我非常担心基础设施的复杂性和规模问题。此外,XMPP 可以满足我的需求。看起来,XMPP 可能是我痛苦中快乐的唯一选择,但我想看看各位专家对此有何评论。

有什么想法吗?

谢谢,

I am trying to write a iPhone group chatting/message-board app which will have a backend component. I expect users to register with our system and start posting messages on chatrooms/message-boards. These message-boards can have more than 2 individuals, must support real time notifications and should be accessible from any other clients (like web) as well.

I stumbled upon http://code.google.com/p/xmppframework/ . I realize that XMPP is a very attractive proposition for our needs but I am seriously worried about the infrastructure complexities and scale issues. Besides, XMPP has way too much to offer for my needs. Looks like, XMPP might be the only choice for my pleasure in pain, but I wanted to see what you experts have to say on this.

Any thoughts?

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只想待在家 2024-10-09 23:25:52

我的建议是:无论您选择哪种协议,都不要尝试发明自己的协议。选择 XMPP,或者如果您能找到更有吸引力的替代方案,请使用它。特别是如果已经有一个不错的框架供您使用的话。为什么 ?因为一个刚进入某个领域的开发人员很少比一群有经验的人聪明;-) 通过使用已建立的协议来利用其他人的经验,并利用现有的框架来避免编码错误和投入大量时间再次解决已经解决的问题。

话虽这么说,XMPP 已得到广泛部署,因此如果您以后计划为其他平台编写其他客户端或希望让第三方客户端连接到您的服务器,XMPP 将是一个不错的选择。

My advice is: whichever protocol you're choosing, do not try to invent your own protocol. Go for XMPP or if you can find an alternative which you find more compelling, use that. Especially if there's already a nice framework for you to use. Why ? Because a single developer new to a field is seldom smarter than a bunch of people with experience ;-) Make use of other peoples' experience by using an established protocol, and make use of existing frameworks to avoid coding mistakes and investing a lot of time to solve a problem yet again that was already solved.

That being said, XMPP is widely deployed and thus would make for a good choice if you later plan to write additional clients for other platforms or want to have third-party clients connect to your server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文