Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
bilalkhan #1
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
Subject: XMPP BIG IQ VS SMALL IQ
I am wondering about the performance of the xmpp server, their are many scenario which one is better?


if we have a loop which traverse over 500 times it add 500child in iq and we send that as xml to the client?

vs

if we have the same above scenarios and we convert our iq to JSON and then send,

Transmission time would be decreased?


Bigger iq takes alot of time during transfer ?
This post was edited on 2017-01-13, 10:52 by bilalkhan.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Many people always assume that Xml is too verbose and big compared to JSON. But it usually does not matter. Tls and XMPP support compression, like GZip compression in HTTP. So only the compressed data is passing the wire. Xml and Json should both compress to the same.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS