binary based xmpp server? -


helo, i'm working on mobile game needs realtime communication client server.

usually i'll implement tcp socket server , use private binary protocol enable bidirectional communication, , looking xmpp server ejabberd based on standard. xml in way it's redundant , inefficient, mobile app means more traffic , memory consumption.

  1. is must xmpp use xml?
  2. is there xmpp implementation uses binary low level data format instead of using xml? (or shouldn't choose xmpp , start other standard or technology.)
  3. any strategy reduce overhead of sending complex data object (not big file object) using xmpp?

xml required xmpp specification, there no binary implementations. indeed contain more overhead, have keep in mind problem xmpp designed solve - active chat connection can expected transmit maybe 1 message per second.

as google talk api: use non-xml protocol client - google server connections. when send message in gmail client, request body contains bunch of post data:

count=1&ofs=16&req0_type=m&req0_to=my.friend%40gmail.com&req0_id=6a8466cbc59cbb0c_0&req0_text=test&req0_chatstate=active&req0_iconset=classic&req0__sc=c 

that part not xmpp. server accepts request job of creating , sending out xmpp requests. xmpp still in xml, use different protocol between client , google server.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -