Wrox Programmer Forums
|
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2012, 06:39 AM
Authorized User
 
Join Date: Nov 2012
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default XMPP performance on using common jid

Hi Metajack,

First of all many thanks for your help through this forum.

I have one question , if 100 people or more share two common jid's like([email protected],[email protected]) and start conversation at the same time may be from one machine or different machine then what will be the impact on performance issue.

I have a very very simple public chat application so I do not want to go for room creation etc... on xmpp admin console, what I want to do it using two common jid's.

Please provide your valuable suggestion on this.

Thanks

Last edited by sudhansu; November 22nd, 2012 at 08:09 AM..
 
Old November 22nd, 2012, 01:30 PM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

It's not a common use case to abuse JIDs like that, so you can imagine the server's won't be tuned for it. As far as the XMPP protocol itself goes, it might be more chatty than you'd like because servers are required to reflect presence to all resources for a JID. So if a resource comes online, all the other JIDs get notified. If it changes presence, all the other JIDs get notified. This may or may not be a problem for your use case.

There's no reason you can't use MUC in a simple chat application. The one from the book is a reasonable example of this.
 
Old November 22nd, 2012, 03:10 PM
Authorized User
 
Join Date: Nov 2012
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Metajack,

I am sorry, I am not getting this so probably you are saying that my use case for public chat will slow down the chat application.

Thanks

Last edited by sudhansu; November 23rd, 2012 at 08:11 AM..
 
Old November 24th, 2012, 03:20 AM
Authorized User
 
Join Date: Nov 2012
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Metajack,

I am confused Please suggest if my above use case will slowdown the chat application.

Thanks
 
Old November 26th, 2012, 12:41 AM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

I have no data to base the conclusion on, but my feeling is that it will cause a lot of extra network traffic for all the presence broadcasts. Whether this is extra data or something you'd have done anyway is application specific. The only thing you can do is try and see and measure whether the performance is acceptable.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Establishing XMPP connection badinar BOOK: Professional XMPP Programming with JavaScript and jQuery 0 January 20th, 2011 06:27 PM
XMPP server authentication badinar BOOK: Professional XMPP Programming with JavaScript and jQuery 1 January 17th, 2011 01:50 PM
Bare JID & too many resources tiracu BOOK: Professional XMPP Programming with JavaScript and jQuery 1 September 21st, 2010 06:39 PM
What about NoSQL over xmpp? flossy BOOK: Professional XMPP Programming with JavaScript and jQuery 2 June 28th, 2010 02:22 PM
Common question, not so common answer? flyin ADO.NET 5 March 24th, 2004 06:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.