what difference between MQTT and XMPP?

2,174 views
Skip to first unread message

Phuc Tran

unread,
Sep 30, 2015, 3:29:13 AM9/30/15
to MQTT
hi all,

I'm a new one. I'm working with mobile apps. I don't understand much about MQTT and XMPP.
please tell me know what difference between MQTT and XMPP? when will we use MQTT, XMPP? please share me any interaction model between MQTT and XMPP
thank you for any response.

Paul Fremantle

unread,
Sep 30, 2015, 8:21:03 AM9/30/15
to mq...@googlegroups.com
Hi

The protocols are very different. 

Here are a few comparison points:

1) MQTT is a pure pub/sub protocol. XMPP does pub/sub as an optional addon.
2) MQTT is a very compact, low-bandwidth protocol. XMPP is a verbose XML based protocol.
3) XMPP has many extensible features (presence, queues, pub/sub, etc). MQTT expects you to implement those yourself.
4) The only similarity I can really see is that both protocols allow pushing messages out to clients over firewalls!

Paul

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at http://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.



--
Paul Fremantle
Part-time PhD student - School of Computing
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
Co-Founder, WSO2
Apache Member and Committer
07740 199 729

ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)

unread,
Sep 30, 2015, 9:48:33 AM9/30/15
to mq...@googlegroups.com

Hi,
Just curious ... how are the protocols achieving 'over the firewall' communication ?

Sent from tablet. Pardon brevity, grammar mistakes or typos.

Phuc Tran

unread,
Sep 30, 2015, 9:44:44 PM9/30/15
to MQTT
Hi Paul,

could you please tell me know when we use MQTT and when we XMPP? I'm confusing between them when I create mobile app.

THanks,
Phuc

Paul Fremantle

unread,
Oct 1, 2015, 5:37:20 AM10/1/15
to mq...@googlegroups.com
Regarding over the firewall, all I mean is that you can push data to a client when the client is behind a firewall, because the client initiates the conversation. This is true of almost any protocol except for HTTP. This is why WebSockets was invented.

Paul

Paul Fremantle

unread,
Oct 1, 2015, 5:38:05 AM10/1/15
to mq...@googlegroups.com
I would use MQTT for any small, low power device or situation where bandwidth is an issue. XMPP is great for rich clients that need many different communications patterns.

Paul

Phuc Tran

unread,
Oct 22, 2015, 3:41:12 AM10/22/15
to MQTT
As my understanding until now, the main difference between MQTT and XMPP is push-notification of MQTT, XMPP can not do this. that why we must use MQTT.

Paul Fremantle

unread,
Oct 22, 2015, 4:01:15 AM10/22/15
to mq...@googlegroups.com
Phuc

XMPP does do push notifications: http://xmpp.org/extensions/xep-0357.html

Paul
Reply all
Reply to author
Forward
0 new messages