简体   繁体   English

如何在IM应用程序(如GTalk,Skype等)中管理在线用户

[英]How to manage online users in IM applications such as GTalk, Skype etc

Do they keep an online user list in a database and update it with every login and logout event, and run queries for online friends? 他们是否将在线用户列表保存在数据库中,并在每次登录和注销事件时进行更新,并为在线朋友运行查询?

What about scalability? 那么可伸缩性呢?

Are there better solutions? 有更好的解决方案吗?

If you try to either store presence in a traditional database, or poll for changes to anything, you're going to have a tough time scaling your presence system. 如果您尝试将状态存储在传统数据库中,或者轮询任何内容的更改,那么将很难扩展您的状态系统。 Start with one of the open source XMPP servers , pull it apart, and see how it works. 从一台开源XMPP服务器开始 ,将其拆开,看看它是如何工作的。 Each one of them scales differently, but at least you'll understand more about where you need to start. 它们中的每一个都有不同的缩放比例,但是至少您会了解更多有关从何开始的知识。

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

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