[JDEV] The information of users in "jserver"

Kang-pen Chen b86059 at ee.ntu.edu.tw
Thu Aug 31 03:00:27 CDT 2000


Hi:
   I saw the source codes of the jabber-transport.
I found the user data (password, roster) was stored
in "xml" format.  And each user used 1 xml file.

   I think there will be a problem.  If the number of
users increases to 100000, there will be 100000 files
in the /usr/local/var/jspool directory.  The speed will thus 
become slower.  And I think the number of files in a directory has
a upper-limit.  If the number of users increases beyond the limit 
, there will be some problems.

   I suggest that the user data can be stored in a 
database system, such as MySQL.  On the other hand,we don't need to store it
in XML format.  XML format is convenient for data exchange between
2 peers.  But in this case, the user data is stored in the local machine.  
Therefore, we can simply use a database system and have some tables to store the password, roster, group, etc.  It will increase the speed and prevent
the too-many-user problem. 

Sincerely,
Kang-pen Chen
National Taiwan Univ.
EE Dept. 




More information about the JDev mailing list