Newbie Q: One user with many resources vs many users with a resource each

Hello,

I am a newbie to Jabber. It seems a user can have numerous (possibly unlimited) resources and can send receive messages among its resources. If this is correct, for my very specialized client application that doesn’'t require authentication, it may be helpful for me to have a single user with a large number (thousands or more) of resources communicating among themselves.

  1. Does it (wildfire) work the way I am describing?

  2. Is the message passing performance among large number of users (with a single resource each) essentially same as a single user with large number of resources?

Thanks in advance.

Regards,

Vinay Agarwal

Hi,

I wonder why foo@bar/a should send a message to foo@bar/b but this works with Wildfire. I didn’'t test it with 1000 resources but it should work fine (except that the cache is limited to 1000 identifiers, so you may want to patch the code or use only 998 different resources (foo and bar are the 2 to reach 1000).

I have no idea about the performance.

LG

LG,

Thanks for answering. But I need a further clarification.

  1. Does the cache you mention relate to resources of a user or all user-resource combinations?

  2. If a user logs in from resources more than the size of the cache (e.g. 2000), would all excess resources (and their sessions) be lost?

Regards,

Vinay

Hi,

the cache contains node, domain and resource identifiers (node@domain/resource) and it’‘s size is 1000. It’‘s used to verify the identifiers more quickly, so the “only” thing you’'ll see is a significant performance drop as the verification process (stringprep) takes long compared to the cache lookup.

I did recently create JM-855 to improve the cache as it has a little bug and to address the 1000 item issue.

LG

Wildfire an excellent product with a very helpful community. I appreciate all the help.